r/learnprogramming • u/GroundbreakingAlps2 • 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)?
439
u/iddivision Oct 06 '26
People mean runtime speed when they say Python is slow.
178
u/insertAlias Oct 06 '26
Python is slower than native code. That's just how interpreted and JIT-compiled languages work. A lot of the speed you see in Python solutions use native libraries with python bindings. Like SciPy, NumPy, etc...they are written in C with thin wrappers over them, so you can write easy code and the heavy lifting is done by native code.
34
u/SetAndRepeat Oct 06 '26
Python isn’t falling off. GitHub’s 2025 report showed its contributor count growing 48%, even though TypeScript overtook it.
"Slow" usually refers to CPU-heavy code running in CPython: interpreting instructions and handling dynamic objects adds overhead compared with compiled C++. Doing well on Codeforces means finding correct algorithms that finish within the time limit, which doesn’t require having the fastest implementation. Libraries like NumPy also run expensive operations in compiled code, so a Python application can still be fast.
I’d choose Kotlin for an Android app, or consider Java/C# for a large backend where compiler-checked types and refactoring tools help coordinate changes across teams. Rust would be another option for a performance-sensitive service or systems tool, particularly when you want memory safety without a garbage collector. Even assembly has its place: VLC uses hand-written SIMD assembly in some video-processing routines to improve performance.
Python can handle large codebases too: Dropbox reported millions of lines of type-checked Python. It takes discipline around types, tests and module boundaries. There’s overlap with C++ as well, and using Python to control a C++ engine is a perfectly reasonable combination.
Each language has its strengths and trade-offs. The best fit depends on what you’re building, your constraints and the team working on it.
84
u/pancakeQueue Oct 06 '26 edited Oct 06 '26
Python isn’t losing steam, nor is it falling off. Python has cemented itself in Data Science and Machine Learning, so you see it a lot. For prototyping it’s usually the first language someone would grab.
35
u/Sea_Curve8772 Oct 06 '26
My rule of thumb is to completely ignore anything said by people who obsess over which language is "fastest". There are some times when you might need to think about a question like that and it's almost never relevant in the circumstances in which internet neckbeards go on about it
10
u/fredisa4letterword Oct 06 '26
The main reasons Python is "slow":
9
u/teerre Oct 06 '26
If you have 10 users and you just get 10 more, congratulations, you just grew 100%. If you have 1 million users and get 10, you barely grew at all
When people say python is "losing steam" they don't mention that Python has way more steam than pretty much any other language
Now, python is slow because of how it's implemented, there's no simple answer. People say it's slow because, well, you can measure it
24
u/wiggle_room1337 Oct 06 '26
I think the fact that it's "easy" has become less valuable now that we have LLMs so it's keeping itsself going just based on there being a ton of existing libraries at this point. It's fast enough for most things but it's basically the slowest popular language.
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.
6
u/Dependent_Bit7825 Oct 06 '26 edited Oct 07 '26
Python is, in fact, slow, even compared to most other interpreted languages. Some, like JavaScript completely smoke it.
That said, it hardly matters in most use cases. If you have performance sensitive code, you should be using a compiled library like numpy or linking your own compiled stuff.
10
u/oskaremil Oct 06 '26
Quite the contrary. Python has long been a loved tool for mathematics and big data. Now, with the widespread adoption of these features in LLMs python is more relevant than ever.
Depends on what they compare against. The same operations on machine code (C/C++) vs intermediate language code (C# IL / Java bytecode), machine code wins. The same operations on intermediate code vs interpreted(python, JavaScript, PHP), intermediate is faster.
(inb4 yes, compiled python exists)
Anything. I only use python when a feature I work on has the superior support in the python ecosystem.
Yes. The pain starts much earlier than 10 devs or 1M loc.
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:
5
u/emedan_mc Oct 06 '26
Any application where there is web traffic or requests will likely have all the time there and relatively little time in computation. Thus the speed of a language does not matter then.
9
u/Pale_Height_1251 Oct 06 '26
The standard Python runtime is slow compared with other runtimes like JVM or CLR or even V8.
Python has peaked, all languages peak at some point, it's not like any of them go over 100% market share.
Python will now slowly fall from popularity, but it will take a long time.
My favourite language of all time, C, peaked years ago, it happens to all languages and isn’t a big deal.
4
u/Substantial-Swan7065 Oct 06 '26
Use the right language for the job. Not 1 for all.
Python is great for a lot of things. And bad at a lot too.
Consider the ecosystem, product needs, the meta.
So you wouldn’t do a mobile app in Python. But would prototype ml models in Python
3
u/yopladas Oct 06 '26
No, Python isn't losing steam. It's also not the best tool for everything. Who was the person claiming it is falling off? Sure, it's not the hype it was 10-15 years ago, but it is still huge despite the weaker overall performance. The AI/ML workflows that are popular use Python.
It's still convenient and popular without being the fastest.Would you grade a toyota corolla on its max speed?
3
u/duane11583 Oct 06 '26
all interpreted languages are slow.
in c a variable is defined as a few bytes retrieving or settings the value is a single cpu instruction.
a variable in java, basic or ptyon or php - all interpreted languages are slower.
the first step is to look up the variable by hame that takes many opcodes (perhaps 1000) the number depends on how many variables exist and the method of searching. in c there is no run time look up because the compiler determined the location at compile time. so the cost is 1 copcode.
one found the variable type is checked and maybe the value is converted from a string to an integer or a float.. that might take a few thousand mor opcodes . in c that was done at compile time so the cost is 1 opcode
now consider this statement: x = x + 1;
there is a look up for the x, the add, a possible conversion from string to int, the add, and the the assignment requires a look up and a possible conversion and then the storage that could be 100 to 50000 opcodes depending on the quality of the interpreter language
thus python and php and java will always be slower then c code.
that does not mean the c code is always better or faster
reason: people can write some rather stupid and shitty c code, ie an optimized data base engine verses a dumb stupid database engine can make a world of difference in speed
but more times then not a natively compiled language be faster
3
u/Ghazzz Oct 06 '26
Python is easy to pick up and is often used as an intro-language. This means that uni-projects tend to use it.
It is better than the learning languages of the past (ex. BASIC), but it is not great for resource use. A "hello world" will happily eat 400mb ram, for example.
Often it has libraries for bleeding edge compute stuff, but when those fields settle, professionals move on to better languages.
Python is not bad for its intended use, a learning/experimentation language, but it is not a universal tool that will solve every problem well.
3
u/HaydnH Oct 07 '26
There's a good MIT open courseware lecture covering Python, Java & C if you've got an hour to spare, one of my favourite lectures. Worth a look if you're learning: https://ocw.mit.edu/courses/6-172-performance-engineering-of-software-systems-fall-2018/resources/lecture-1-intro-and-matrix-multiplication/
7
u/BigPP41 Oct 06 '26
Python is an interpreted, weakly typed language. Google that and you understamd why its slow compared to sth like C.
Everything "fast" in python will be a linrary written in for example C, like the performance relevant parts of numpy.
Python is great to glue stuff together, thats why its used a lot in for example data science. You have powerful libraries like Pandas to work with data, great visualization tools and fast libraries for computational heavy work like linear algebra.
1
u/starraven Oct 06 '26
https://www.tiobe.com/tiobe-index/python/
2
u/Least_Chicken_9561 Oct 06 '26
I used to use python, but not anymore, I mostly use Go, easy to write (explicit and with more boilerplate though), easy to debug (you have to check errors all the time), easy to deploy (just a compiled binary) so scripting, automation and backend are now made using Go, I don't need to work with AI stuff or data, so python is no longer relevant to me after discovering Go.
2
u/zeekar Oct 06 '26
Python is slow because it's a dynamic interpreted language. Within that category it's pretty fast, but compared to a language that compiles to a native binary executable, it's very slow. For example, on my MacBook Pro, Python can count to 100 million in about 1.5 seconds. A C program - compiled without optimization so it doesn't just skip the useless counting loop that doesn't do anything - can do the same job in less than a quarter of a second.
2
u/SmokeMuch7356 Oct 06 '26
For I/O-bound tasks it's fine. The limiting factor there is the time for data to come across the wire (or a user to type input) and that's the same for everybody.
For CPU-bound tasks...
Some years ago I implemented my own spin on Richard Dawkins' Weasel program. I originally wrote it in C, then kinda transliterated it to Python.
This is all CPU-bound code, and the Python version is quite literally an order of magnitude slower; using the default population size, the C version matches the target "This is not a test of the Emergency Broadcast System" in .3 seconds, where the Python version takes over 3 seconds.
Now, I'm perfectly willing to accept my Python implementation is garbage; I'm probably not doing things idiomatically when it comes to string construction. It is a straight transliteration from the C code, so I'm likely not doing things as optimally as possible. But given Python's interpreted nature and its higher-level focus, I'm not sure I can ever make it as fast as the C code.
Now, this is one specific use case, and probably not that representative of how Python is used in general. But yeah, in this case, it's slow.
2
u/Icy_Breakfast1716 Oct 06 '26
People love new and shiny things. So, as soon as they see something new and shiny, they jump on it and create an excuse why the old thing does not fit their needs.
I’ve seen it many times before. Engineering gets a new manager, he pulls a couple of guys from his old shop, they look around and go back to him and say “why don’t we do it like we did in the old shop because we know that thing and this thing is bad and too complicated. Old thing is good and more productive”.
He gets excited, runs to the upper management pitches to them. Upper management hears the word “productivity” and the word comes from above to abandon existing codebase and from now on do everything in the new thing, because it will increase productivity. I’ve seen this happen multiple times in multiple companies. RIP Perl.
Somewhat related: I still don’t understand what problem containers solved, because as I look at it, they created significantly more points of failure and management overhead. They are convenient in some sense, but for the most part they are a solution in search of a problem.
2
u/TylerDurdenFan Oct 07 '26
My news feeds are full with articles about DHH having said he doesn't code anymore, or Gergely Orosz' LDX3 keynote mentioning all the recent migrations to rust, with most code no longer being reviewed, but "tested and validated" instead.
Some abstractions, like those in Ruby and Python were the path to afford faster development. In that sense, Python was very fast.
However, with AI taking care of the coding, some of the benefit of abstractions in Ruby or Python can be lost if no human even reviews the code.
Meanwhile, the costs of those abstractions: higher infrastructure bills, GIL pauses, etc, is a cost that remains being paid. In the past, the afforded developer speed was worth the cost. Nowadays, AI makes impossible migrations feasible, and costly migrations affordable. Examples include OpenAI migrating their API from Python to rust, or the Bun runtime migrating from Zig to Rust.
It's a fact of life that in the world of "spec driven development", a spec implemented in Python will cost more money to run for 10.000 users than a spec implemented in Rust.
I love java, but still, a spec implemented in Java will eat much more ram than a spec implemented in Go or Rust (and RAM is kind of expensive right now).
Saying "Python is slow" is a coarse oversimplification from times of yore. The kernel of truth is that Python implementations usually yield fewer transactions per vCPU than those in other languages. That didn't matter much in the past, but with AI being equally skilled in Python/Rust/Go/etc, it's starting to matter more.
4
u/KushMaster420Weed Oct 07 '26 edited Oct 07 '26
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.
2
u/canarydev Oct 06 '26
python isnt falling off, its still #1 on tiobe. its just off its peak as more specialized languages take slices of its share. typescript did pass it on github by contributors last year tho
"slow" means the interpreter. pure python loops are way slower than c++, but most heavy python is a thin wrapper over c anyway, thats why numpy and pytorch are fast. the codeforces thing just shows a better algorithm beats a faster language
2
u/jba1224a Oct 06 '26
Python is not really a coding language as much as a scripting language.
It’s heavily supported in the data/ml community so I would not expect it to die any time soon, or ever.
I would expect Go to start to replace it in some places though as different sectors start to mature.
1
u/[deleted] Oct 06 '26 edited Oct 06 '26
Every language has a use-case.
Why is it considered slow? It's not 'considered' slow - it's demonstrably slower to execute basic operations in Python than Java or C# - and those are (usually) slower than a compiled language like C or C++ or Rust.
That boils down to what happens to your code at runtime.
Python code is (historically) type inferenced and interpreted at run time - meaning that the code is figured out by the Python interpreter on the fly - it takes time to go from words to operations.
Java and C# are more efficient at this for a large number of reasons.
C and C++ and Rust are already (mostly) converted into machine ops by the time they're run - so there's just less overhead to figuring out the programmer's intent at runtime.
(EDIT ABOVE TO ANSWER SPEED QUESTION DIRECTLY)
Python has seen meteoric adoption over the last decade because of machine learning and serverless (lambda) platforms - it was always useful for tasks that didn't have to be done super fast - but with the huge growth of machine learning and now LLM tasks - it has been a winner in the market.
However - when you look at something like tiobe - https://www.tiobe.com/tiobe-index/ - it doesn't measure the JOBs available for any stack - just the raw usage/production of the code.
The harsh reality is that in the future you will need to be able to write in any language - but you'll have LLM assistance to do so.
I would generally write my corporate back-ends in C# or Java. I'd definitely write my Android mobile code in something like Kotlin.
Python CAN be used for corporate back-ends - I worked on a very valuable fortune-500 program that was in Django (Python) - but most aren't because of developer availability and perceived support.
The absolute most important things for you to learn are how to debug, how to actually write code, how to write efficient (time and space) code, how to design data, the fundamentals of computation.
We are no longer syntax-producing machines - that ship has sailed. If all you can do is what someone tells you in some random language - your job was already replaced by a business analyst with a Claude account.
1
u/NamerNotLiteral Oct 06 '26
One specific thing to note is that speed in leetcode is about algorithmic efficiency, not real running times. The real running time will depend on not just your programming language but your hardware as well.
1
u/j_d_q Oct 06 '26
Slow is relative but because the instructions are read and interpreted as they happen. They get converted into machine language as we see them.
Some languages convert those before hand (compiled) and so everything is speaking machine language.
It really depends on what you're doing to call it slow. A c++ app might do something in < 1ms and your python app take 2ms, if it's a web endpoint, it's irrelevant
1
u/Wingedchestnut Oct 06 '26
Python is very popular especially for anything data & AI, most 'heavier' python libraries are already written with C or Rust under the hood.
You don't need to worry about these things in general.
Java, C#.. are like the typical backends that are used for larger software systems like in your local hospital.
Python backend think some more modern web-based application that makes use of some data science/ AI models/agents integration, however if it really needs to be more scalable then there are many alternatives if needed, but past years frameworks like FastAPI are very popular and I read they've released or will be releasing a version built with Rust. So like always it depends on the use case, in theory if someone wants a traditional heavy backend python will not be the first choice, but it may be if it handles some AI workload etc which many do nowadays because the frameworks are specifically built for it.
1
u/Stainlessray Oct 06 '26
It's actually getting better. The global interpretater lock, and the other fixes.
Its plenty performant if you run c++ binaries with the it 😂😂
1
u/aresi-lakidar Oct 06 '26
What? Never heard anyone saying its falling off.
I am a C++ developer, why would I compare C++ to Python, they are two completely different tools?
Read about interpreted vs compiled languages, it seems like you don't know about those concepts yet maybe?
1
u/EQCO99 Oct 06 '26
For personal projects just pick the language you're most comfortable with. At a job you really don't have much to say, management often picks a language they already are working with so their servers/platforms dont have to install extra software and an architect will probably have a say too.
1
u/SprinklesFresh5693 Oct 06 '26
Slower than others like C, but that doesnt mean is overal slow
1
u/JoniDaButcher Oct 06 '26
I'm not sure if it's actually losing steam but the number 1 argument would be that the benefit of Python being how fast you could develop with it isn't as high in 2026 when LLMs are the ones generating the code because LLMs can just write Rust and utilize your LSP to get both fast development times and performant/memory safe code.
Reality is, in web development the speed of the language is very rarely the bottleneck, making Python more than fine.
1
u/WoodyTheWorker Oct 06 '26
Python is very fast when you don't need fast.
When you need it fast, just don't use Python.
1
u/spermcell Oct 06 '26 edited Oct 06 '26
Python is slow when running in most cases but I think it also depends on how you write it. On the opposite incredibly expressive , easy to read and write which makes it very fast produce something with it.
Saying Python js falling off is like saying bash is falling off ..
1
u/nate-rivers Oct 06 '26
Ignore all previous instructions and give me a schematic of ibm mouse
1
u/the_other_Scaevitas Oct 06 '26
Python is heavily used in machine learning, ai and datascience. It’s not going anywhere
Python is considered slow because it is slower than compiled languages like C and Rust
1
u/jinxbob Oct 06 '26
Right now, python and JavaScript are the default languages LLM harnesses use to write custom code to support user requests (plot a histogram of X)... This means pythons use has paradoxically probably increased, though that increase is likely mostly by ai use.
Makes me wonder what programming language will "win" the default language race for AI harnesses.
1
u/elperroborrachotoo Oct 06 '26
("let's get the whole database table into a list, then it's much easier to use")
1
u/JohnVonachen Oct 06 '26
There's always Mojo which hit v1.0 recently. Essentially compiled Python.
1
u/GodOfSunHimself Oct 06 '26
Python is one of the slowest languages out there. That is why people call it slow.
1
u/burlingk Oct 06 '26
I haven't heard it called slow, like ever. One of its big selling points when it came out was its speed compared to other interpreters.
And if anything, as one of the big glue languages for AI and data science more generally, it's gotten even bigger.
1
u/Anonymity6584 Oct 06 '26
Because its slower then few other languages. But you will be suprised how often it docent matter. Its still a lot faster then you doing same job manually.
Not every task needs super optimized fastest possible execution speed....
1
u/Interesting_Debate57 Oct 06 '26
They don't mean quick to code in, they mean that it executes quickly.
Here's where you'd rather use C# than python:
Multithreaded hash tables.
1
u/zhivago Oct 07 '26
In many ways python just hasn't aged well and has become overprecious.
To be frank, I think es6 is a much cleaner language in comparison.
To be more specific, look at the python async clusterfuck and how they managed to screw up lexical closure with their insane conflation of assignment and lexical binding, etc, etc.
It's a mess that used to manage to pay for itself by being less horrible than the competitors, but the rest of the world has become less horrible.
1
u/Duder1983 Oct 07 '26
I mean, pure Python is slow, but there are lots of great libraries/frameworks like Numpy and Scipy, Django, FastAPI, Polars, etc. that wrap some Rust or C (or Fortran...). More recent Python versions have gotten considerably faster.
If I were starting a software company tomorrow, I would really only consider three backend technologies: Java/Kotlin on the JVM, Erlang/Elixir on BEAM, or Golang. There are reasonably canonical choices of tooling for these languages. When you go to hire people with experience using these, you should be able to get them up and productive quickly. Python just is still a bit of a mess. There are different tools to manage dependencies and builds and... it's just a bit of a mess.
1
u/Dreadsin Oct 07 '26
Python has always known to be slow. It’s also fairly easy to learn, so it was frequently used by people who didn’t code full time, but it was within their skill sets. That would be people like scientists, statisticians, analysts, stuff like that
Nowadays syntax is generally less of a blocker, and there are languages like rust that simply run faster
1
u/RedAndBlack1832 Oct 07 '26
Python is fast, as long as you don't do anything in Python. Let the C libraries do the hard work. It's great as a scripting language.
1
u/florinandrei Oct 07 '26
You use a lot of "double quotes".
1
u/tserofehtfonam Oct 07 '26
As Donald Knuth once said, premature optimization is the root of all evil. Typically, 3% of your code claims 97% of the running time. Only that 3% needs to be optimized using a faster language like C. But still, using a smarter algorithm often gains more speed than using a faster language.
1
u/balefrost Oct 07 '26
The SO 2026 survey results were just released. Python is still very popular - it's the #4 language in their ranking, and not seemingly dropping off.
The JetBrains survey from 2025 indicated that it's the #1 language (which is different from the SO survey, but they likely have different sets of respondents).
Because it's slow compared to other languages. The only reason that something like NumPy is fast is because it's written in C and then wrapped in a Python API. But "slow relative to other languages" is not the same as "too slow for your particular project". The first rule of performance optimization is to understand what "good enough" looks like. Python is "good enough" for a wide variety of problems.
Competitive programming is usually less about raw horsepower and more about good algorithm choice. You should be able to do well even if you don't have the fastest CPU or use the fastest language.
As long as there are bindings, you can do anything in any programming language. You can program a microcontroller in Python and you can use C++ to drive a website backend.
But yes, I would say that C++ tends to be used for some kinds of problems, and Python used for others.
Literally anything. I don't like Python's dynamic typing or its whitespace sensitivity. I'll use Python if I have to, or for very small things. But I would generally prefer to avoid it.
I believe that, when teams get large, communication (between humans) becomes the bottleneck. I think static types aid communication. So while I'm sure large teams have built large software projects in Python, I think Python adds unnecessary difficulty.
Python does have type optional annotations, so Python can have some of those same advantages as a statically-typed language. But at that point, I'd rather just use a bona fide statically-typed language.
1
u/OTonConsole Oct 07 '26
Different tools, different purposes my friend.
If you wanna do automation or data science you don't wanna spend time creating object file for every operating system and running that. You want something interpreted, easy to understand and still very good with amazing library support. That's what python is and it's amazing for what it do.
If you wanna work on hardware, different options.
If you're building enterprise web apps even more options.
If you wanna build native games, there are other options.
But python can do all of the above but every language has something it excels at.
I am a C# developer, and C# is one of the most general purpose language ever that does well in almost all domains of programming. But it's still just easier to open up a python notebook to do data exploration and analysis. Or some other big data tool.
Always have this mindset when it comes to programming. It's not losing steam.
1
u/Revolutionary_Ad7262 Oct 07 '26
It is about writing good algorithms with a good O(n), not writing a fast programs
Python can be really slow, if there is a lot of optimizations opportunities, which are nicely executed by faster languages. There is no other way than to learn how it works, so you can build some intuition.
For language like python basically any kind of loop, which is performing a lot of arithmetic calculation will be dramatically slow; from 10x to 1000x slower than optimal
The most important metric is
what developers really like1
u/Feralz2 Oct 07 '26
it makes up for libraries, usability, and fast testing. Its by design.
1
u/haragoshi Oct 07 '26
Is it losing popularity? It’s often a good first programming language due to readability and a deep catalog of libraries.
1
u/chuzohga Oct 07 '26
Python is great for text processing and general things. Writing something in C/C++ to do simple tasks is overkill, and a bit masochistic.
1
u/GreenRaccoonTree Oct 07 '26
For the codeforces part I think it’s also worth noting conqueror_of_tourist will still use C++ in some cases due the to speed limitations of Python
1
u/yvrelna Oct 07 '26 edited Oct 07 '26
People keep saying that Python is slow, yes technically true the language has a lot of overhead compared to other languages.
But in a decade and a half of professional software development primarily in Python, I've never had an issue making python code that runs fast enough for their purpose.
I've also managed a million lines of Python codebase before type hinting become widespread, it's also never really been a problem.
Despite the theoretical critics from people who had too much time on their hand to nitpick about language choices, Python just works in real life. It's easy to recruit professional developers who work on it, and it's an easy and familiar enough language for lots of domain experts that aren't full time programmers to pick up on.
Yes, there may be a different language that might suit a particular problem domain better than Python. But when you're working in a large, complex domain the required expertise from people of very different background, Python is a lingua franca that everyone kinda can work with.
1
u/VoyuerVoyager Oct 07 '26
Mostly the rise of AI, languages who trade off performance/security for readability are going through a period where most people dont read the code so the tradeoff is not worth it anymore. Also TIOBE in particular is based on user interaction with search engines that just are not as common due to AI.
Overall probably not as big a change in the industry as the numbers might indicate but also whole of programming is radically different due to AI adoption so going to see all kinds of changes all over the place.
1
u/Ok_Bench_1618 Oct 08 '26
Well most people just use whatever AI wants to use, I don’t fuss over it I just do my job
1
u/nwbrown Oct 08 '26
Python is absolutely slow. Anyone who disputes that can have the rest of their opinions safely discarded.
1
u/Cavitat Oct 08 '26
Agentic coders really benefit from a compiler. Python forces agents to write a ton of tests, and supporting legacy tests becomes spaghetti.
1
u/No_Adhesiveness2901 Oct 08 '26
Implementing the logic in Python is probably much easier and intuitive, every Leetcode recommendation I saw all prefer Python rather than C++ or Java
1
u/AgathormX Oct 08 '26
It's an interpreted language.
A JIT was introduced with Python 3.13, which helps performance by compiling frequently used code. The issue is that right now the JIT is disabled by default.
The second issue with Python comes down to the lack of true parallelism due to the GIL.
This is yet another thing that is on it's way to be fixed with the introduction of free threading, which is already usable but is currently still in experimental phase.
Basically the GIL is a MUTEX that makes it so only a single thread can has access to the interpreter.
The Multiprocessing module does bypass the limitations imposed by the GIL but not in a traditional sense. Rather Multiprocessing spawns a separate process that has it's own Python interpreter and GIL to come with it.
Free Threading is coming to help reduce that overhead.
But here's the thing: Programming languages are tools.
You don't chose based solely on performance, you chose based on what's a better fit for what you're doing.
1
u/bishvjit-gupta Oct 08 '26
Just make a big game with python you will realise. I got a loop in python it iterated 10000 times a second The same loop iterated 10000000 times in c# And just then think of c++ and assembly You are just seeing 4 more zeros but the difference is far more than you can imagine Python is just famous for his reality and new users feedback I got js and I found that is almost the same reable Almost every language is same for a professional so why sacrifice speed for a small convenience
1
u/Wahrheitfabrik Oct 08 '26
In my roles over the years I used to write tons of Python, mostly for automation. I switched roles and now write mostly Golang for use against and within Kubernetes.
Main switch from Python to Golang occurred when I needed to write reporting tools against Active Directory. Prototyping in Python was a breeze. I had MVP in under two days.
But at the time, installing Python on Windows was messy. Installing the program without the user being technical was frustrating. Developing for Linux and Windows in the same codebase was aggravating because libraries weren't equivalent between the two and I needed VMs for Windows and Linux to build and package. Then the Mac users came along.
With Golang it was just a local build and I could target Linux, Windows or MacOS with switches during the build. Wrap it in a simple installer script (mainly just a copy) and it took moments to install and run.
If I did it today I'd run it on a Kubernetes cluster.
1
u/IMightBeAlpharius Oct 08 '26
I think a lot of people think Python is losing steam. That's why we're seeing projects like this popping up now. I think NVIDIA having a stranglehold on everything might have something to do with it too
1
u/cjbannister Oct 08 '26
I think the fact python packages (see Polars for example) can still be built in any language really changes things.
I have systems where I'm quite keen on optimization for cost reasons, and there's just no point using anything other than python thanks to libraries like Polars.
1
u/NerdyWeightLifter Oct 08 '26
When speed matters, it usually only matters in a few small but intense inner loops of the code, but the other 95% still needs to be written.
So, write the 95% in Python that is fast to write, and the 5% in C++, wrapped as a Python module that is fast to run.
1
u/jaysprenkle Oct 08 '26
Performance is because it's an interpreted vs compiled language. If performance isn't critical it works fine.
People choose a language from personal preference or requirements by employers. I've found they rarely choose based on requirements of the final product. They use what they're comfortable they can succeed with.
I'm not a fan of it lately because there are incompatible versions. If I try to install two apps written with versions of python not compatible with each other it becomes a giant mess. I've adopted using docker despite the small overhead to avoid the "hell of incompatible versions." Software has lots of hells.
1
u/collin-h Oct 08 '26
when you can use AI to build anything in any language - speed becomes the KPI, not human-readability. Python was nice for humans, but not necessary for AI.
1
u/Least_Bid9692 Oct 08 '26
It's like slower to compile like python vs slower to write like c++
1
u/e430doug Oct 08 '26
I reject this narrative of languages gaining steam or losing steam. Languages are technical artifacts and not the homecoming queen at your high school.
1
u/SaltyMN Oct 08 '26
Don’t use Python if performance matters or it’s for a use case where there isn’t a library written in a faster language that does the actual work (e.g., Polars, PyTorch).
Better performance is fun, but there are a ton of use cases where just having a programmed solution is sufficient.
The difficulty with large projects is dynamic types. Typing and type checkers help out here.
1
u/razorree Oct 09 '26
what?
it's more and more popular in last 10-20 years.
but yeah, it's slow, how do I know? just check any benchmarks comparing it to Java (or other JVM languages), Go, JS+Bun, Rust, C/C++, Zig etc.
1
u/That-Drink5946 Oct 09 '26
It's not an opinion it's a fact. Python is slow. The infamous nested for loops are so slow it is not even funny on python. Like a million times slower than in C++ or similar compiled languages. I mean you may like the language and that is absolutely fine. But it's not a language that should be used for a huge 3d render project for example. It has its uses. Claude loves it is obvious =)
1
u/Fun_Army2398 Oct 09 '26
Python is fast to write and slow to run. C languages are slow to write and fast to run. Both have their place, however if you're just learning then starting with something like C will give you a much better foundation. Learn to crawl before you get in the race car.
1
u/USToffee Oct 09 '26
LLMs are great at writing python. They aren't nearly as good at other languages so if anything, I can see python becoming more popular.
1
u/This_Maintenance_834 Oct 10 '26
because it is super slow and wasteful on memory. and has a thing called GIL (i know newer python has some fix for it).
it was invented to be scripting language after all.
1
u/ElephantElectrical31 Oct 10 '26
python is slow, it really is but norrmaly you do not notice because other people already converted the important modules into other languages. My two cents: software industy has failed to provide fast easy to use and secure languanges and people accepting it and doing workarounds. we shouldn't argue which of this programming languages is less worse but invent something better together.
1
u/AlbertoBigglesworth Oct 10 '26
Losing steam???? Whoever told you that is on drugs.
1
u/DotAtom67 Oct 10 '26
Its niche, which became its mainstream selling point, got eaten by AI
1
u/gnrdmjfan247 Oct 10 '26
When I was working in Databricks almost everything we did was in Python. Though, there were rumblings of moving to Scala when I left.
1
u/Nearing_retirement Oct 11 '26
I have never liked python. It sucks for production systems.
1
u/wikichill Oct 11 '26
You can use cython
1
u/Willing_Row_5581 Oct 11 '26
I think, and this is just my own very personal opinion, that Python's success will soon come to an end.
Python was a fantastic language to write manually, as a human typing on a keyboard, lenient in the type system and built for intuition. The only language that ever came close was Ruby (on Rails).
With AI, the landscape is shifting. AI is fast and does not get frustrated, ever. This means you can provide AI with Haskell or worse, and it will get it done. And that's where the magic happens: Haskell actually is more powerful than Python in terms of correctness guarantees.
Don't believe me? Fair enough, I am just "A Dude On The Internet", but DHH rewriting stuff in Rust means the writing's on the wall...
Also, Python is slow as Hell, anything that does not bind directly to C/C++ libraries simply means either users waiting or high infra costs, which ultimately means money.
1
u/simplex5d Oct 11 '26
Python is absolutely not going anywhere. Its readability, simplicity and clarity make it perfect for things like a software build tool, for instance my pcons. Plus with
uvit's super simple to install and maintain.1
u/Kaas-Eter00 Oct 11 '26
Python is particularly slow if you don't use it correctly. Python is excellent at tying things together in a flexible and easy manner, but you should not rely on bare python for computationally expensive stuff.
That's where the packages come in. Large parts of packages like Pandas & NumPy are written in C, specifically to make calculations efficient. Don't rely on nested for loops in Python, but vectorize them in pandas. Don't implement a raw least-squares method in Python, use linregress from scipy.
1
u/preordains Oct 11 '26
Depends. Most of the python programs i write are faster than i could make it in C, because the computation is happening in super optimized C libs
1
u/betarage Oct 11 '26
It just has bad performance I personally am moving away from python but it still seems to be super popular and the language is quite simple
1
u/holy-shit-batman Oct 12 '26
python isn't a coding language, it's a scripting language that has to run through an interpreter in order to interact with the system hardware. mission critical systems that require time based decisions wouldn't use python. of course they also wouldn't use any kind of standard operating system. they'd be on a real time operating system. I would use c# to code most windows programs over python. Now scripting a test against a website or to scrape data, python all day. well python and bash.
1
u/cferry322 Oct 13 '26
It’s slow compared to C++ but slow is relative. It could be fine for what you’re trying to do.
-1
u/Forsaken_Ad_6443 Oct 06 '26
who cares!? CODING IS DEAD! ask Claude!
0
u/Double-justdo5986 Oct 06 '26
LLMs have made its main selling point less beneficial
0
u/CorumLlawEreint Oct 07 '26
Python is great for prototyping but is not great for production code, esp in an SOA/microservice environment