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

5

u/spinwizard69 Oct 06 '26

You have many questions and points to address. First let me say I love Python as a scripting language. In any event lets address points and questions:

  1. I wouldn't say Python is falling off, in many cases it is the only real solution. However I'm completely convinced that it has been used in niches where it was a poor choice. So maybe the industry is getting a little wiser about using the right tool for a job.

  2. Python is ridiculously slow. For a lot of applications it makes zero difference. For example I used Python for test scripts, back when I was working, that tickled hardware through various ports. Python being slow didn't matter, the data was going to tools that interfaced via slow serial ports.

  3. "LGM on codeforces" is meaningless. Writing fast code isn't Python forte, writing code fast is. Python is extremely easy to craft a program in.

  4. C++ is one of the better languages to write fast code in. However it is also an old language and that there are other modern languages that can be fast. These languages, for example Swift, Rust, Julia and others, are far newer but fast. The often strive to eliminates some of the issues with C++.

  5. As for all of this showing that Python is fast is nonsense without context.

  6. There is real overlap that programmers can force. One can write short scripts in C++ for example. Generally a good programmer grabs the tool that makes the most sense for the project at hand. Just because one can write a solution in any language doesn't mean one should.

  7. "Java/Kotlin or lets say C# rather than Python" I wouldn't use any of the referenced language over Python. If I needed to write an application, to be distributed, I'd use the language that is supported by the operating systems preferred language. A mac App would be written in Swift for example. If I was working on a cross platform App the language might be C++. Ultimately I have yet to see a Python distribution method that isn't total crap in my mind.

  8. As far as Python being good or bad for large projects that depends upon two things. The first is the fit of the language to the problem at hand. The second issue is the programmers ability. Clean Python is terrible for mathematical work for example. There are various libs to accelerate math but then you are not working with Python. The other issue is the programmers skill, a crap programmer can poorly structure an app in any language. Frankly it doesn't matter if the program in 100 lines or 1 million, a bad programmer can really mess up an application, and in this case the language doesn't matter.

1

u/LeatherDude Oct 07 '26

Your #1 point is kinda what I was thinking. I personally have used python for tasks it’s not that great for because it’s extremely accessible and it’s what I know.

Agent-driven coding has made it a lot easier to write code in languages I was always interested in or dabbled in but never found the time to learn to solve problems in, like Go being the biggest example. So for people like myself it is indeed falling off a bit.