r/programming • • 1d ago

Python on the Backend is Dead

https://chrlschn.dev/blog/2026/11/python-on-the-backend-is-dead/
0 Upvotes

52 comments sorted by

57

u/MoreRespectForQA 1d ago edited 1d ago

Seen about a million articles like this over the last 15 years. They used to complain about the GIL until that went away, but the level to which people cared about even that was massively overstated.

"X is dead" articles are played out. Lame clickbait that advertises the lack of thoughtfulness inside the article.

38

u/funkbass796 1d ago edited 1d ago

Are you saying “X is dead” is dead?

12

u/yikes_42069 1d ago

No. ""X is dead" is dead" is dead

7

u/tooclosetocall82 1d ago

X is dead. Wayland is the future.

4

u/MoreRespectForQA 1d ago

Sadly I'm pretty sure even in 2030 there will still some X features which are still on Wayland's roadmap.

3

u/sisyphus 1d ago

Or not on the roadmap because your compositor should do it or some shit (still on that roadmap, maybe)

1

u/knightcrusader 10h ago

Jokes aside, I hope so. I really need a real Windows-like RDP experience on Linux and I think Wayland is required to make that happen.

5

u/olearyboy 1d ago

There’s no such thing as electrons ! Click here to see what people are using instead…

-3

u/c-digs 1d ago

Would love to understand why you think the points in the post are invalid. Python is both more resource intensive (requiring more infra spend) and lacking in static types (requiring more "discovery tokens").

In a world where humans are no longer writing code, then languages and runtimes with tradeoffs but built for human convenience are going to make teams re-evaluate the tradeoffs (performance, cost).

Python was never a language that was built and optimized for high concurrency backend servers. It will continue to thrive in its niche, but building net new backends in Python seems like it would be a mistake at this juncture.

3

u/Noxitu 18h ago

You are overestimating how much AI will impact this. As you said, Python was never optimized for this use case - and yet it thrived not in its niche, but the most successful cases. It was always a tradeoff, and AI is not really that significant in its context.

Because writing code was not the main bottleneck for successful companies.

1

u/c-digs 17h ago

You're right that writing code isn't the main bottleneck, but Anthropic's 70% efficiency gain on compute is the difference between 1000 nodes and 3333 nodes.  Python becomes an operational tax even, considering 10 nodes vs 33, that is paid in perpetuity.

1

u/Noxitu 16h ago

But it was always the case - and in fact 70% figure doesn't sound that impressive in context of Python to Rust/C replacement. But put this into perspective of how much compute Anthropic actually uses. This is probably smaller relative difference than difference on Windows when you reboot after random update.

Noticable on any kind of budget of course. But far from putting a language in the "dead" category.

2

u/Exepony 12h ago edited 12h ago

Yes, but in the past the Python tax was justified by the code being easier to write for humans, which translated into higher velocity, easier hiring and onboarding, etc. In this brave new future we're being sold where humans don't write, or more importantly, read code and at best are relegated to writing specs and co-writing tests and other infrastructure verifying that the end product follows said specs, there's nothing to justify the performance penalty, is there? Especially if Rust turns out to be easier for models to write due to more compiler handholding.

19

u/damagednoob 1d ago

In other news, "No, it isn't"

Python's philosophy has always been, if you need the speed, drop to C. It's just that Rust is a better C.

-4

u/c-digs 1d ago

Why do that when everything could be C or Rust?

The Python layer only mattered for human convenience, right?

4

u/sisyphus 1d ago

It's still a human inconvenience to read Rust compared to Python.

4

u/max123246 1d ago

I disagree imo. I have to audit way less in a statically typed language compared to Python because so much of the information is on my screen in text rather than only visible during execution of the program

It's way more difficult to review python and actually have confidence it's correct

-2

u/c-digs 1d ago

I see no point in disagreeing, but it only matters assuming human review.

Versus optimizing for agents and operational cost.

3

u/sisyphus 1d ago

If you're fully vibe coding and no human is going to read or understand the code maybe just start every project by showing the agent the plan and letting it pick the language then, why are you interfering with its choices at all?

1

u/c-digs 1d ago

Certainly can if the operator lets the agent know the important selection criteria.

The key argument I make here is that the selection criteria we are used to has changed.b Human operability should no longer be the primary criteria.

1

u/sisyphus 1d ago

Okay but then all the scaling talk seems like a distraction things are good for models along many axes like how much code is in their training data or available for reference; how many libraries exist so I don't have to reimplement things which is now a direct cost; how fast the compilation cycle is allowing my agent to iterate as quickly as possible instead of waiting on compile times; how terse the code is saving me tokens; and so on.

If anything scaling is only going to become less important over time since the median number of users of any software can only decrease as people gain the ability to vibe their own custom versions of all this software that does exactly what they want.

3

u/damagednoob 1d ago

I'm not saying that Python on the backend will never go away, just that calling it dead now is premature. A programming language is not self-contained, it exists in an ecosystem. 

There's no way I would trust an AI to develop a website framework from scratch in Go or Rust. I would trust it to leverage Django, Rails or Laravel for that purpose. Until Rust has the library ecosystem that Python has, there will still be a place for it, for now.

14

u/ConnaitLesRisques 1d ago

Sure, it’s dead for people who want to larp having big boi scalability problems.

Looking forward to seeing the same people who deployed balls-out Kubernetes for their shitty internal CRUD app moving the backend to Rust.

3

u/RoadsideCookie 1d ago

As you scale the individual components performance stop mattering as much, until it starts mattering again. 

People who usually say "Python is bad for backend" are usually not the ones who reach a point where Python is the true bottleneck.

3

u/jward 1d ago

My stance has always been that if django/python ever becomes the bottleneck then the app has succeeded beyond our wildest dreams. At that point surely the revenue/investment/funding will be great enough to pay for more hardware and a potential rewrite.

2

u/sisyphus 1d ago

lol the k8s psychosis was insane I remember people really posting about it was good actually to use it for their personal blog or some shit.

0

u/c-digs 1d ago

Anthropic saw a 70% savings in compute. Even at moderate scale, that's 10 nodes vs 33 nodes.

5

u/ConnaitLesRisques 1d ago

I use Claude Code daily: i have no reason to believe that app was well engineered in the first place.

13

u/_AACO 1d ago

Python is dead! Long live Python!

22

u/scragz 1d ago

damn I better tell this django code I'm editing right now.

1

u/amakai 1d ago

And... It's dead.

1

u/Bowgentle 1d ago

Well, yes, it’s Django.

10

u/Mordiken 1d ago

The Google-scale fallacy: Engineering a service to cope with 100000 requests/second when all that's needed is a system that's able to handle 10000 requests/day.

2

u/Active_Name5021 1d ago

The website I made that me and 3 friends use can handle 100,000 requests a second.

You never know how many friends you'll end up making in the future, so it's better to be safe than sorry.

1

u/Mordiken 15h ago

Most static websites are limited only by the infra's ability to handle requests/s because every virtually every request is a cahce hit, and at that point the only limiting factor is your ability to get the HTML out the cache and to the wire.

But that's not engineering things to be "google scale", that's a succession or common sense decisions empowering each-other.

1

u/Active_Name5021 13h ago

It wasn't a static website, it was a news aggregator -- so let's say it was semi-static

2

u/MatthPMP 21h ago

It happens the other way too, where performance is completely ignored until someone notices that it's become a problem.

That said, language choice still doesn't matter most of the time for backend development and problems will come from bad architecture and/or bad DB usage first.

A Rust microservice written by idiots will choke on IO just the same.

2

u/masterlafontaine 1d ago

Most apps are IO bound, waiting to APIs or both. While he brings good arguments, most apps are not running simulators on the backend.

-2

u/c-digs 1d ago

While a request is waiting on I/O, it is consuming resources (port, memory). Especially if the I/O is long window, it simply puts more resource pressure on the server.

4

u/Gremlation 1d ago

The crux of the problem is that Python is not a particularly efficient language and runtime to operate at scale.

Anthropic states it directly in the opening of their research blog post Migrating our Messages API to Rust

From early 2024 to fall 2026, API traffic grew roughly 1,800 times. Rust would allow us to use far less CPU per request.

It’s damning; teams building for production backend systems that are going to handle high volumes will pay not only a significant overhead on the infrastructure capacity, but also deliver poor performance at high throughput. Suggesting Python for building production backends for any greenfield projects in 2027 will be seen as a mistake through hindsight and, I suspect, lead to more rewrites.

This argument makes a very common mistake that means it's ridiculously out of touch.

Very few developers will ever work on a system that explodes 1,800x. The vast majority of developers do not work at one of the most valuable companies in the world. The vast majority of developers work on small teams in small businesses with small traffic. Extrapolating from what Anthropic needs to do to manage ridiculously high growth and applying that to the rest of the world that absolutely does not need to do anything like this is ridiculous.

4

u/GoTheFuckToBed 1d ago

the image from 2017 is yikes, thats like skipping 10 years of improvement

2

u/autopoiesies 1d ago

I remember thinking things like Django/Flask were already outdated back in 2016 when Angular and Node.js were the flashy new things

2

u/Hatchie_47 1d ago

Future of code may not be human written, but still needs to be human maintained, reviewed and understood. If you want to move tu Rust despite having no developers experienced in Rust because “AI will write the code” you are in for a nasty surprise!

Reminds me back in my last work when “relational databases are dead” era was on. Despite having a team of 10 Postgres developers in the company this team of Java developers decided to create a new product with different NoSQL storage despite non of them having any experience with it. 3 months into production they had a massive incident which resulting in finding a very expensive outside company that actually knew the NoSQL technology they were using and came fast to fix their mess. Turns out the maintainers actually need to understand the techstack they are using…

1

u/Rare_Coffee_130 1d ago

is dead again?

1

u/No-Ear843 13h ago

That's strange, I was thinking the exact opposite.

1

u/Litra 1d ago

braindead take

1

u/2hands10fingers 1d ago

Laughs in consulting agency

-2

u/sisyphus 1d ago

With AI tools and agents producing larger volumes of code and features than ever, it only makes sense that reliability is more critical. And… that is where typed languages win the debate. Not because untyped languages are “bad,” but because types catch the exact class of surprises that AI-generated code can sometimes introduce.

My experience has been that this is an article of faith that is in practice completely false. LLMs are very happy to type all your Python code for one thing. For another thing, the only thing I've been hearing all the time for the last 20 years of type system weenies yelling about Haskell/Rust &c is that they eliminate the need to test for a bunch of shit ("a whole class of errors"). But tests are just code and code is now worthless and free and I have an infinitely patient assistant to get me to 100% coverage or whatever I want while I take a nap. Yes they take time to run but it's not like Rust compilation is fast, and the agent can interpret a Python runtime stack trace generated in testing just as easily as compiler output in my experience.

3

u/c-digs 1d ago

Types do not eliminate the need to test; they offer another signal that is -- depending on the mechanism -- cheaper and earlier in the verification cycle.

But it's worth taking in both angles here: types + operational cost. Python loses in both. Now that we don't need humans to write code, optimizing for human code production is perhaps the wrong facet to optimize stack selection for.

2

u/sisyphus 1d ago

Types are always sold as a way of not having to test for a bunch of stuff ("eliminating whole classes of problems"). Why do I care how many tests are needed to cover all the code if I'm not writing, reading or executing them? Why do I care if the agent takes a compiler error or a stack trace as its feedback mechanism while writing the code? Why do I care where in the verification cycle anything happens when I'm not looking at it until it's done? All of those seem to me just as much relics of optimizing for human code production.

1

u/[deleted] 1d ago

[removed] — view removed comment

0

u/programming-ModTeam 1d ago

Please don't accuse people of using LLMs. Just report the post and let us handle it.