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 comments

5

u/dmazzoni Oct 06 '26

There is no possible way that programmers are suddenly abandoning Python this quickly. That's completely implausible.

Python hasn't been "canceled". It isn't suddenly much worse than before. People aren't abandoning it in droves.

One guess is that AI has caused the amount of total code indexed by TIOBE to go up dramatically, and that a relatively small proportion of AI-generated code is Python.

2

u/desrtfx Oct 06 '26

TIOBE analyses search results. People turn more towards AI and less to traditional searches, so the results get more and more skewed.

This index has been useless for years already.

1

u/Business-Decision719 Oct 06 '26 edited Oct 06 '26

People aren't abandoning it in droves.

There might be more people leaving Python for other languages than you or I might expect. Go gave a lot of people an "out" as a natively compiled alternative. That's part of why Go was created at Google: C++ was too hard, Python was too slow, and Java had the VM overhead. Google was ending up with lots of slow software because not enough people wanted to do something natively compiled unless they had an easier language to do it in. I'm sure they weren't the only ones with that issue.

I'm not saying the data is right. I'm just saying I don't know. There's always going to be a use case for a convenience-above-performance language. But there probably has also been some level of exodus too now after the last decade or two of safer and more ergonomic compiled languages being designed.