ESLint Won't Rewrite in Rust. Should You Rebuild Your MVP?
ESLint's maintainer explained this week why the project won't be rewritten in Rust, and Hacker News couldn't stop talking about it. If you're itching to rebuild your messy MVP from scratch, read his reasons first. Here's a test for when a rewrite is worth it.

Why is a post about ESLint all over Hacker News?
On December 3, Nicholas C. Zakas, the creator and longtime maintainer of ESLint, published a GitHub discussion with a blunt title: "Why not rewrite ESLint in Rust?" By Sunday it had climbed onto the Hacker News front page with more than 200 points.
If you don't write JavaScript, here's the short version. ESLint is the tool millions of developers use to catch mistakes in their code. Newer tools written in Rust, a fast systems language, are much quicker. Oxlint, one of them, claims it linted the Node.js repo in 21 seconds versus 1 minute 43 seconds for ESLint. That's a vendor-run benchmark, so treat it with a pinch of salt, but the gap is real.
So people keep asking the obvious question. Why not just rebuild the whole thing in Rust?
Zakas said no. And his reasons read like a checklist every first-time founder should run before tearing down their own product.
What did Zakas actually say?
His core point is that the question behind "why not rewrite it?" is really "why can't it be faster?" Those aren't the same question, and the second one has cheaper answers.
He listed the reasons a full rewrite doesn't make sense:
- Time. ESLint has no full-time maintainers. The most active people give it about 10 hours a week.
- Skills. The contributors know JavaScript and TypeScript well and like working in them. The pool of Rust contributors is far smaller.
- Dogfooding. ESLint lints its own code. That loop produces a steady stream of bug reports and ideas. A Rust core would lose it.
- The ecosystem. Custom rules, parsers and plugins are all JavaScript. A rewrite would have to run thousands of existing npm packages just to get back to where things are today.
- Identity. New team, untested core, broken plugins. At what point is it still ESLint?
- Energy. After 13 years, he said he can't take on a brand-new project from scratch without stable full-time income behind it.
Then he did something smart. He showed the alternative was already working. A new way of walking the code tree (RFC 156) cut runtime by 9 to 10% on large codebases in his tests, with no rewrite at all.
What does this have to do with your startup?
More than you'd think.
Almost every first-time founder hits a moment, usually three to nine months in, where they look at their MVP and feel a little sick. The code was written in a hurry. Maybe an AI agent wrote half of it. Maybe you picked a no-code tool you've outgrown. The data model doesn't match how customers use the product.
And the fantasy shows up: "If I just rebuild it properly, everything gets easier."
Sometimes that's true. Often it isn't. The rewrite eats two or three months, customers get nothing new, and the shiny version ships with its own fresh set of bugs. Meanwhile a competitor shipped six features.
ESLint is a 13-year-old open-source project, not a seed-stage company. But the constraints Zakas described are the same ones you have, just smaller. Limited hours. A team that knows one stack. Users who depend on how things work today. A product identity you'd be putting at risk.
Why do rewrites go wrong so often?
This argument is old. In April 2000, Joel Spolsky wrote "Things You Should Never Do, Part I," pointing at Netscape. The company decided to rewrite its browser from scratch and went roughly three years between major releases while the market moved on without it. Spolsky called rewriting from scratch the single worst strategic mistake a software company can make.
His reasoning still holds. Ugly old code is often ugly because it's full of fixes. Each weird "if" statement might be a bug someone found in production two years ago. When you throw the code away, you throw those lessons away too.
Here's what that looks like at startup scale:
- You rebuild the signup flow cleanly.
- Three customers can't log in because the old version handled a quirk in Google sign-in you'd forgotten about.
- You spend a week rediscovering a fix you already wrote once.
Multiply that across every part of the product. That's why rewrites almost always take longer than planned. You aren't just writing new code. You're relearning everything the old code knew.
Your AI co-founder is ready when you are.
Foundra turns everything in this article into an actual plan. Validation, customers, pricing, launch. In one place, in your voice, in an afternoon.
Get started→$39/month. Cancel anytime.
So when is a rewrite worth it?
I'm not going to tell you never. That would be lazy advice, and there are real cases where starting over is right.
A rewrite is usually worth considering when at least two of these are true:
- The current stack physically can't do what customers are paying for. Not "it's slow." It can't do it at all.
- You've changed what the product is. You pivoted, and the old code models a business you no longer run.
- The codebase is tiny. If the whole thing is a few thousand lines and two weeks old, just rebuild it. The cost is low.
- Nobody can safely change it. Every small edit breaks three other things, and you have no tests to catch it.
- You have the time and money to go quiet. Be honest about runway here.
Notice what's missing from that list: "the code is embarrassing," "I'd use a cooler language now," and "a developer on Twitter said our framework is dead." Those are feelings, not reasons.
What should you do instead of a full rewrite?
Copy ESLint's playbook. It has three moves.
Fix the specific complaint. People wanted ESLint faster, so Zakas went hunting for the actual slow spots instead of blaming the language. Do the same. If customers say your app is slow, find the three slowest screens. If your bills are too high, find the one query eating 80% of the database time. Specific problems have specific fixes.
Replace one piece at a time. ESLint is testing Rust through native Node.js modules built with napi-rs. Its new TypeScript parser (RFC 153) is being written in both TypeScript and Rust side by side so the team can see whether Rust actually helps. That's the opposite of a big-bang rewrite. You can do this with your product too: move the worst module to a new service, keep everything else running, and compare.
Measure before and after. That 9 to 10% figure matters because it's a number. Pick yours before you start. Page load time, error rate, hours per week spent on support tickets. If the change doesn't move the number, you've learned something cheaply.
Engineers sometimes call this the strangler fig approach, after a vine that slowly grows around a tree until it replaces it. Customers never see the old tree fall.
How do you make the rewrite decision without fooling yourself?
Write it down. Seriously. A rewrite decision made at 1 a.m. after a nasty bug is a mood, not a plan.
Answer these six questions on one page:
- What specific customer problem does the rewrite solve?
- Could a smaller change solve 70% of it?
- How many weeks will it take? Now double that.
- What will customers get from you during those weeks?
- How many months of runway will you have when it's done?
- What number will tell you it worked?
You can do this in a Google Doc, a spreadsheet, or a planning tool like Foundra that keeps your product decisions next to your runway and roadmap. Where you write it matters less than writing it. Once the trade-off sits next to your cash balance, the answer often gets obvious.
And if you still want to rewrite after that? Fine. At least you'll go in with a deadline, a budget and a way to know whether it worked.
Does AI change the rewrite math?
A little. Not as much as people hope.
Zakas mentioned that AI tools are helping produce the Rust version of the new parser. One commenter on the thread predicted AI would handle a full Rust migration by 2027. That comment got downvoted.
AI agents can translate code quickly. They can't easily know which strange edge cases in your old code were deliberate. They also don't remove the other costs: retesting, migrating data, retraining your own brain on a new codebase, and the weeks your customers wait for something new.
So yes, AI makes the typing part of a rewrite cheaper. But typing was never the expensive part.
Key takeaways
- ESLint's maintainer turned down a full Rust rewrite and is improving speed piece by piece instead, with a 9 to 10% gain from one change.
- "Why not rewrite it?" usually means "why can't it be better?" Answer the second question first.
- Old code often holds fixes you've forgotten. Rewrites throw those away.
- Rewrite only when the stack can't do the job, the product changed, or the codebase is tiny.
- Prefer replacing one piece at a time and measuring the result.
- Write the decision down next to your runway before you commit.
FAQ
Should I rewrite my MVP before raising money? Usually not. Investors care about traction and learning speed. A working, ugly product with paying users beats a clean product with none.
How long does a typical startup rewrite take? Longer than planned. Take your estimate and double it, then ask whether you can afford that many weeks without shipping.
What is the strangler fig approach? Replacing a system piece by piece while the old one keeps running, until the new parts have taken over everything.
Is it ever right to start over completely? Yes, when the codebase is very small, the product has pivoted, or the current stack can't do what customers pay for.
Did ESLint rule out Rust entirely? No. It's testing Rust through native modules and a parser built in both TypeScript and Rust, without rewriting the whole project.
Can AI agents do my rewrite for me? They can speed up translating code, but they won't remember why your old code handled odd cases, and you still carry the testing and migration risk.
You just read the theory. Ready to build the thing?
Foundra is your AI co-founder. It turns an idea into a validated business plan, a go-to-market, and your first 10 customers. In an afternoon, not a semester.
$39/month. Cancel anytime. Works in 20 languages.