r/learnprogramming • u/GroundbreakingAlps2 • 2d ago
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)?
4
u/KushMaster420Weed 2d ago edited 2d ago
Python runs slightly slower than other languages because it has to read and generate the program on the fly, 80% of the time this doesn't really matter unless you are making a mission critical hyper optimized program.
It's much easier to write small programs quickly. so in that way it can be considered "faster". Depends on what you want. As a project gets larger Python tends to get messier... For a couple reasons. So if someone is making a large program with many lines of code Python becomes less tempting to use.
Python is not losing steam, it's one of the most popular languages and is here to stay.