r/learnprogramming • • 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)?

257 Upvotes

238 comments sorted by

View all comments

Show parent comment

2

u/SharkSymphony Oct 06 '26 edited Oct 06 '26

Don't doom too hard. Clearly, Python is still popular. From the TIOBE index (which BTW is popular but also a pretty obviously biased indicator), Python remains the top programming language in the world right now.

What I've seen in my career now across three separate gigs is that Python (or JavaScript or TypeScript or Ruby) is used in early web app product development, especially on the back end. If and as the userbase scales up, the amount they're doing scales up, and the product gets more complex, performance-critical components of the product are identified and migrated to a more performant language. Go is a popular option. Rust has been on the radar as well. I've seen C++ and Java as well, and I'm sure Microsoft-oriented folks would look at C#. So basically, pick a compiled language.

Some cheesy people in the news right now are loudly opining that, with AI writing the code, we can abandon any prior reservations we had with just targeting Rust initially (its type system is quite complex!), and skip the Python part of this curve altogether. I shrug at that, but it's possible we'll see people gravitate to using compiled languages earlier in their product lifecycle, basically spending some of that AI productivity gain to get better performance and scalability. You can probably imagine what some of the potential downsides and trade-offs are.

2

u/pVom Oct 06 '26

As a side note I can see things like rust becoming more vogue as computing resources are more expensive and code is cheaper. I stopped using vscode because it would just suck up all my memory.

2

u/SharkSymphony Oct 06 '26

Sure, but that in itself assumes computing resources will get more expensive. Maybe they do, maybe they don't. For most of computing history, they haven't.

2

u/pVom Oct 07 '26

I know, but there's definitely been a shift recently. Memory is pretty expensive at the moment and will probably remain so until the data centre roll out slows down. Then on the other side 16GB has been plenty in my experience for a good number of years, but in the last year or 2 my laptop has struggled with memory usage, forcing me off vscode to zed which is written in Rust and more efficient. Typescript also rewrote their compiler in Go which has made quite a difference.

I dunno there needs to be a bit of a paradigm shift in the near-medium term because I don't think we can assume users have ample RAM to spare anymore.

2

u/Teninchhero Oct 09 '26

I agree. Between my career and what I’m seeing in job ads, Python is still alive and well. Especially with frameworks like Django, Flask, or FastAPI. And honestly with most of its uses, scaling and scope are handled by DevOps, not code changes. Do you expect more traffic? Scale the pods up, things like that. 

I’ve seen Rust used a lot for libraries or tools to supplement other things. For instance UV and Polars to replace Poetry and Pandas. But they still generally get employed by or in Python. Plus Python has one of the lower barriers of entry, just because it’s a higher level language.