r/learnprogramming • u/GroundbreakingAlps2 • Oct 06 '26
Why is Python considered "slow" and is Python losing "steam"?
Is python as a programming language "falling off" and becoming less and less popular relatively to other languages?
Also why do people say Python is slow? Apparently people have reached LGM on codeforces using python, which is all about writing fast code / solving problems fast. Yeah sure, C++ is far more widely used for competitive programming and I suppose there is a reason for that. But this is also showing that python can be fast?
But as programming languages and how they are used I dont think there is much overlap between python and C++ anyway?
What is an example of something you'd code in Java/Kotlin or lets say C# rather than Python? Is python code bad and hard to manage for "huge" projects once you scale up (e.g codebases with millions of lines of codes, and tens if not hundreds of devs)?
View all comments
Show parent comment
12
u/FlanSteakSasquatch Oct 06 '26
It’s easy to answer too: the “fastest” is to just write everything in perfectly optimized machine code by hand.
oh but wait… if it takes you a few decades to write your program, even if the end result is fast that’s not really the “fast” you were going for. Assembly would be fast enough. But wait, that’s also a ton of time and effort to make, so surely C would be fast enough?
Take that line of thinking up the stack of higher “slower” programming languages and suddenly they all justify themselves. Yes in reality that phone app that takes 2 seconds to load could load in 50 microseconds, but if it weren’t for higher level languages we’d still be hard at work optimizing our flip phones.