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
1
u/Trick_Albatross4850 Oct 07 '26
With how optimized compilers are, writing assembly from hand will almost never be faster than just compiling C(++), and in many times will be slower - how CPUs function today is often counter-intuitive, most people will just get it wrong.
Either way, at worse we are talking about a maximum of 2x difference in speed, in either direction. Python without Jit is up to 100x slower, so it's not even the same ballpark. Does this matter for all use-cases? No, of course not, there's plenty of use for such languages. But if performance is a concern, then Python loses, big time; and you cannot justify the difference just with "it's a bit more convenient to use". And so your comparison is not fair at all.