Rewrite It in Rust? I'm Betting on JavaScript
I opened the Laravel blog and found Rust
On December 1st I opened the Laravel blog expecting the usual: a new Artisan command, maybe a nice Cloud feature. Instead I got Introducing Laravel Rust.
Not a package. Not a bridge. The whole framework. Routing, validation, models, queues, mail, broadcasting, Inertia, all in Rust, built on Axum and Tokio. Taylor Otwell calls it “Laravel reimagined in idiomatic Rust” and says it’s “not a blind port”. It’s in beta, and he says it’s already near feature parity with the PHP version.
The next day, Laravel Go came out. Also in beta.
Laravel. The PHP framework. The one that made a lot of us like PHP again.
My first reaction was to check the date to make sure it wasn’t April 1st. It wasn’t.
Everybody is rewriting everything
It’s not only Laravel. Look at the last twelve months:
- TypeScript shipped version 7 in July, and the compiler is now written in Go. Microsoft calls it “a 10x faster native port”.
- Vite 8 came out in March with Rolldown, a Rust bundler, replacing both esbuild and Rollup. They claim builds up to 10-30x faster.
- Microsoft: Galen Hunt, a distinguished engineer there, wrote on LinkedIn that his goal is to “eliminate every line of C and C++ from Microsoft by 2030”, with AI doing the translation to Rust. Their “North Star” is “1 engineer, 1 month, 1 million lines of code”. After the internet went crazy, he clarified that it’s a research project and that Windows is not being rewritten in Rust with AI. Still. Somebody said it out loud.
- Spatie, the people behind half of the Laravel packages you have installed, moved Freek’s blog to Laravel Rust on launch day and ported Media Library, Permission and Query Builder too.
“Rewrite it in Rust” used to be a meme. Now it’s a roadmap.
Why now? AI, obviously
Rewrites used to be the most dangerous thing you could do to a project. Joel Spolsky wrote a whole famous essay in 2000 saying you should never do it. Netscape tried it and lost years.
What changed is that the boring part of a rewrite, translating thousands of lines one by one, is now the part AI does best.
And nobody is hiding it. Taylor says in his letter to the community that he made “heavy use of cloud agents”, and that they “made it possible to reimagine Laravel in two months instead of fifteen years.” Freek writes: “We used AI to write the Rust ports. But we gave it PHP implementations, documentation, and tests we’d spent years refining.” Galen Hunt’s plan literally says “AI and Algorithms”.
To be fair to Freek, that second sentence is the important one. The AI didn’t design anything. It translated years of human work into another language. That’s why it worked.
But it also means the cost of a rewrite dropped to almost nothing. And when something gets cheap, people do it a lot, whether it makes sense or not.
The reason Laravel gives is the weird part
This is the line from the Laravel Rust announcement that I keep reading again:
Laravel Rust is built with the forward-looking perspective that humans will increasingly neither write nor manually read application code at scale.
So the idea is: agents will write the code, nobody will read it, so you want the strictest compiler possible as a guardrail. Rust’s compiler yells at the agent before the bug reaches production.
I get the logic. But think about what it says. If humans don’t read the code anymore, then the language stops being for humans. And the language that was designed to be nice for humans, which is basically the whole pitch of Laravel and PHP, loses its point.
I’m not sure I want to work in that world. And I’m not sure it’s the world we’re actually going to get.
The numbers are real, but read them carefully
Laravel published a benchmark and it’s honestly a good post, with the repo open so you can check it. On the same Laravel Cloud instance:
| Requests/second | Cold build on Cloud (median) | |
|---|---|---|
| Laravel Rust | 1,774 | 3m 1s |
| Laravel Go | 1,294 | 1m 4s |
| Laravel PHP | 97 | 27s |
That’s where the “18x faster” headline comes from. At a steady 50 requests per second, PHP peaked at 52.4% CPU and Rust at 4.2%. Impressive.
Now some context:
- The test app is a small Twitter clone (“chirps”) with 200 chirps and 10 authors in the database. Most real apps spend their time waiting on the database or some API, not doing work in the framework.
- 97 requests per second on a 4 GiB instance is a lot of traffic for most projects. My blog will never see that. Your client’s dentist website will never see that.
- The cold build goes from 27 seconds to 3 minutes. Every deploy. That’s the price of the Rust compiler, and it’s in the same post.
So yes, if you’re running something huge and your server bill hurts, this is great news. For the other 95% of Laravel apps, PHP was never the bottleneck.
Taylor seems to know this too. In the letter he says: “Laravel PHP is not going anywhere, and it is not entering maintenance mode.” Good.
Here’s my unpopular opinion
Everybody is talking about Rust and Go. I think the language of the next ten years is JavaScript. Well, JavaScript and its typed cousin TypeScript.
Some reasons.
1. Look at what got rewritten. TypeScript compiler, Vite, Rolldown, Oxc, Biome, Turbopack. These Rust and Go projects exist to make JavaScript development faster. Nobody is moving their app off JavaScript. They’re moving the tooling under it so JavaScript developers wait less. That’s not Rust winning. That’s Rust working for JavaScript.
2. AI already picked a side. GitHub’s Octoverse 2025 report says TypeScript overtook Python and JavaScript in August 2025 to become the most used language on GitHub, by number of contributors. And look at the reason GitHub gives: developers are moving to typed languages “that make agent-assisted coding more reliable in production”. That’s the exact same argument Laravel uses for Rust. Except TypeScript already won it, with millions of developers, and you don’t wait three minutes for a build.
3. The AI tools themselves run on JavaScript. Claude Code, the agent probably writing half of these Rust ports, is a TypeScript app. It ships as a Bun executable, and Anthropic liked that setup so much that it bought Bun in December 2025. (Bun itself is written in Zig, I know. See point 1.)
4. People actually use it. In the Stack Overflow 2025 survey, 66% of respondents use JavaScript and 43.6% use TypeScript. Go is at 16.4%, Rust at 14.8%. Rust is again the most admired language, and it deserves that. Admired and used are different things though. I admire people who run marathons.
5. It runs everywhere. The browser, the server, the edge, mobile with React Native, desktop with Electron and Tauri frontends, even inside databases. Rust compiles to WebAssembly, and that’s cool, but it still needs JavaScript to load it in the page.
6. Readable code still matters. I don’t believe in the “nobody will read the code” future. Somebody reads it when production is down at 3am. Somebody reviews the PR. If agents write the code and humans review it, you want the language the most humans can read. That’s JavaScript, by a lot.
Where I’m wrong (probably)
I’m a web developer. Of course I think JavaScript is the answer. Take this with salt.
Rust is great for what it was made for: browsers, operating systems, databases, anything where memory bugs turn into security bugs. Microsoft has good reasons to want less C++. Go is great for network services and CLIs, and it’s the reason my tsc is fast now.
And maybe Laravel is right and I’m the dinosaur. Maybe in five years nobody reads code, the compiler is the reviewer, and choosing a language is like choosing a file format. Taylor’s letter literally says it: “Programming languages are an implementation detail of that philosophy.”
But if the language is really just an implementation detail, then you don’t need to rewrite anything. You just keep the one that works.
What I actually think is happening
I’ve written before about the frontend framework circus, where a new framework comes out every week. AI just gave the circus a bigger tent. Now it’s not only new frameworks, it’s old frameworks in new languages, because rewriting costs two months of agent time instead of two years of humans.
Some of these rewrites will be great. TypeScript 7 already is. Some will be abandoned in a year when the hype moves to the next language. And most apps will keep running on boring PHP, boring Python and boring JavaScript, because they work and nobody wants to rewrite them, not even with AI.
I’ll try Laravel Rust, for sure. I’m curious. But I’m not rewriting anything.
My money is still on JavaScript. It has survived jQuery, Angular 1, the framework wars, left-pad and a hundred “JavaScript is dead” posts. It’ll survive Rust too.
References
Laravel
- Introducing Laravel Rust - Taylor Otwell, December 1, 2026
- Introducing Laravel Go - Taylor Otwell, December 2, 2026
- A letter to the Laravel community - Taylor Otwell, December 1, 2026
- Laravel Rust benchmark - Sam Rose, December 1, 2026 (updated with Laravel Go on December 3)
- Benchmark repository
- This blog now runs on Laravel Rust - Freek Van der Herten, December 1, 2026
The other rewrites
- Announcing TypeScript 7.0 - Microsoft, July 8, 2026
- Vite 8.0 is out! - March 12, 2026
- Announcing Rolldown 1.0 - VoidZero, May 7, 2026
- Microsoft wants to replace its entire C and C++ codebase - The Register, December 24, 2025
- Microsoft is not rewriting Windows in Rust - Computerworld
JavaScript and TypeScript
- Octoverse 2025: AI leads TypeScript to #1 - GitHub, October 28, 2025
- Stack Overflow Developer Survey 2025: Technology
- Anthropic acquires Bun as Claude Code reaches $1B milestone - Anthropic, December 2025
Old but still relevant
- Things You Should Never Do, Part I - Joel Spolsky, 2000