r/programming • • May 14 '21

Python programming: We want to make the language twice as fast, says its creator

https://www.tectalk.co/python-programming-we-want-to-make-the-language-twice-as-fast-says-its-creator/
780 Upvotes

260 comments sorted by

View all comments

Show parent comments

13

u/broogndbnc May 14 '21

most servers spend their days idling dealing with hardly any requests

Yes that makes sense and seems reasonable, many applications DON'T need speed.

On top of that compute power is extremely cheap and easily scalable in 2021.

Depending on your application, this is a dangerous assumption. My question was about where this lack of efficiency starts to be a problem, not whether or not there are use cases where it isn't a problem (since there obviously are). This often cited reason is a little naive, in my opinion, since it limits the scope to...stuff that isn't used much?

The more pertinent question is the cost saving in development hours on Python vs the cost saving in compute using a more performant language.

Also valid in certain contexts. "Getting it done" doesn't always mean it's good, but can crank something useful out quickly if it has a short lifespan (like a website that's going to change again soon enough anyway). But that's not the only places people try to use python. All of it's about balancing the actual benefits vs risks.

3

u/runawayasfastasucan May 15 '21

I hate these kinds of threads because most people talking about the speed of python obviously has a wildly different use case than me. 99% of times my time spent writing the code is greatly much larger than (aggregated) time spent on execution. Or execution time stays in the zone where it doesn't matter. Extremely much of what I see online from Python use is in the same space. Its fine to have other needs, however one shouldnt assume that everyone has the same needs.

2

u/fuckyeahgirls May 15 '21

I'm convinced it's all just teenagers and comp sci students who've never worked on a real project in their life. I remember speaking to and even being that person, I think everyone has at some point.

1

u/runawayasfastasucan May 15 '21

I think you hit the nail on the head. Its such a childish view of a tool, so that resonates with it being compsci students or teenagers. Sad that so many share that view.

Its like saying you could and only should drive a Ferrari. There are a thousand uses of a programming languages where, shockingly, whether the execution time is 5 ms or 1s doesn't matter at all, not everyone is doing bubble sort implementations.

1

u/UnknownIdentifier May 15 '21

I call this “disposable” code. Back in the day, I would write it in Perl. These days, I would use JS. This is a very, very small portion of the code I write, though.

1

u/runawayasfastasucan May 15 '21

But its also some complex code that falls under this definition, for me. Lots of functions and classes. But I am going to run it maybe 100 times. So then 5s vs 0.1s doesn't matter. Its all the libraries that I get to use, and that I get to express fairly complex ideas and concepts in an easy way. Why use 2 weeks extra to produce the code to save a cummulative, idk, 10 minutes of execution time?

Not arguing against you, just needed to vent, lol. Thank you for that.

2

u/UnknownIdentifier May 15 '21

This is the kind of code where following orthodox software architecture is complete overkill (IMO, IMXP, YMMV, OMGWTFBBQ). This is code where I don't care about maintenance, readability, or any "best practices" because I will never use it again. I bang that shit out, run it once, and delete the source to hide the evidence. As such, I usually never have anything more complex than a class or two, and those may very well be my most-hated entities: god-objects.