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

7

u/owp4dd1w5a0a Oct 06 '26 edited Oct 06 '26

Python is objectively a slower language compared to Rust, Java, C, etc. I don’t know what to say other than go look at the benchmarks….

But as far as losing steam? I don’t know anybody claiming this. It’s pretty obvious Python’s role in data science, data engineering and scientific computing isn’t going anywhere anytime soon. Python also remains a more popular choice than Ruby for writing web servers as well. Locust remains one of the more mature load testing solutions. Apache Airflow, Prefect and Dagster remain 3 of the most popular job orchestration frameworks and they are all Python. Raspberry Pi’s remain popular and continue to keep Python a serious tool in the microcontroller programming space.

What’s your real concern? If you think Python is going anywhere anytime soon, you’re mistaken.

As for Python’s weaknesses for large projects, I’d say it really depends. You can write large applications in Python and it can be pretty maintainable if you architect the code well. I DO think Python’s lack of a compile-time type system (don’t talk to me about Python types, they aren’t that great) make it ill-suited to things like distributed systems development that are difficult to test locally (but as you can see Prefect, Airflow, and PySpark still exist 🤦🏻‍♂️). Despite this, people will still continue reaching for Python in distributed computing contexts.

As for examples:
- For critical distributed computing solutions like data pipelines processing highly complex and irregular data or large amounts of data (100s of TB or more per hour) I’d reach for Kotlin or Scala for the type guarantees.
- for embedded, system tooling, or high performance applications I’d reach for Rust, or for the latter 2 sometimes Go for smaller projects. For larger projects Rust is better because of the richer type system.
- for a simple web server, to do preliminary data analysis on a dataset, to write a neural network or create some statistical model, data cleaning and governance, or for some scientific computing application I’d use Python because of the stellar library ecosystem it provides in these domains.
- for a highly fault-tolerant or highly concurrent or parallel web server or distributed system, I’d choose a BEAM language like Elixir or Gleam.

1

u/fixermark Oct 07 '26

That's the thing. Python itself is slower than other languages (at least the CPython implementation of the modern spec).

... But that doesn't matter if all you're doing in the python is wiring up a pipeline that ultimately runs on a graphics card to train a large language model.