> I’ve been asked this question multiple times over the last couple of years
Speaking as a member of the Rust project: please don't pester the maintainers of projects you use about rewriting their projects in Rust. If you're a friend or colleague of theirs, or you're paying them for an appropriate level of support, by all means have a conversation. Otherwise, if you're a user of their project, please don't.
It's awesome when projects move to Rust. It's not awesome when people get harangued with "RIIR!".
Oxlint is a high-performance linter for JavaScript and TypeScript built on the Oxc compiler stack.
Oxc: The Oxidation Compiler is a collection of high-performance tools for JavaScript and TypeScript written in Rust.
For people that run a lot of eslint in pipelines, for us switching to oxlint saved around 150h of compute time per week in our runners.
Slow linting is not just a nuisance but also a real cost. FWIW the new ts compiler was around 600h runtime saved per month. And we're only a small team.
Moved to Oxlint and Oxfmt, am really happy with it! Doesn't have every feature of ESLint and Prettier, but that was inconsequential because I wanted to get at least 80% there but with much better performance, and it lived up to that.
biome too, I've been using it for years after removing eslint from one of the projects and seeing about a thousand packages gone (IIRC).
Removed it from every other project I have any control over right after that.
biome supports all important rules and is probably 100× faster at least. Has its own dependencies of course, but statically linked native code is easier to swallow somehow.
Oxlint supports most of eslint's plugin API and you can actually lift any rules from eslint that are still missing and vendor them and use them as plugins.
Even if you find a gap where a plugin isn't supported, vibe coding an eslint/oxlint plugin for anything you need takes a few minutes at this point.
The main gap right now is there are no type-aware plugins, but as a stopgap you can vibe code a tiny custom linter on top of the new TypeScript and reap most of the speed benefits now, then port to oxlint once type-aware is ready.
Oxlint's JS plugin API doesn't get you significant speed benefits over ESLint, since it is, after all, interpreting JS. For example I pulled out our @eslint/compat to only run in CI, because the plugin was taking significantly more than the rest of our lint run combined.
Native would be nice, but we are running oxlint with about 10 rules lifted wholesale from eslint plus 4 other custom rules plus an entire custom linter built on top of typescript directly for a set of custom type rules.
Our whole lint step with both oxlint and our custom type linter still costs 1/60 what it used to under eslint.
So, yeah, it's not as fast as it could be in theory, but it's still way better than eslint.
The right way to solve this is to take nodejs into the current decade. A formatter and linter should be shipped with Node to end the debate. We should build our projects, not our runtimes.
This is fine, and the developer is free to do as they wish, but I really dislike it when the argument to a slow program is that “it’s fast enough”.
Yes, at some point there are diminishing returns, and yes, “reasonable” speed is usually good enough, but that’s not the point.
A faster program is a better program. If you don’t want to make the program better in that way, fine, but we shouldn’t pretend that it’s not in fact better.
When you choose not to make your program faster, you are choosing to leave it worse. Sometimes that’s okay, but it’s always worse, and we should freely face that head on.
My problem isn’t with what’s said, but with what’s left out.
“We want to leave our program worse, because we’re okay with that for now.”
To be perfectly clear, the above position is often a completely valid choice made by developers, and I’m not saying you should never make this call. (Though, the leagues of ESLint users complaining about speed might make one reconsider.)
My issue is that many developers skirt around this. I think one should freely admit that the program is worse, and that that’s all it’s going to be for now, rather than make excuses.
Even if the excuses are valid (which in this post they appear to be, for the author cites personal health problems), we ought to be more open about this sort of thing.
If, all else equal, a program is faster, then it's objectively better. You can even achieve the old level of speed by running the new program and sleeping!
In this specific case, there are other tradeoffs, which the person you are replying to did not talk about.
The "all else equal" part of what I said is, pardon my slop, load-bearing.
This is the assumption that makes the original comment valid, that's what caaqil is trying to point out. If you're making a program faster by introducing hacks, then it's not necessarily better anymore
I don't really understand why the parent is being downvoted so much (the condescending tone sure, i get that) but your program can be faster while not fully adhering to the spec but that doesn't make it objectively better.
I keep seeing this sort of pattern with a lot of Rust rewrites, which are started in good faith, but just the tag of Rust and 10x faster shouldn't be the only metric on which we judge it. Correctness and adherence to the specification is also highly important.
Not only that, but the configuration is a nightmare. Try to lint a project with Typescript and React. The amount of plugins and configs needed is ridiculous. The recent configuration format change definitely did not help either.
This is very true, I used to do everything with the Airbnb rules, but then that happened and I just left things with what came with the framework or slapped on standard instead.
It makes me really sad but I think you’re right. Someone will fork ESLint in Rust using some AI tokens and everyone in the JS/TS ecosystem (who, in my experience, is super willing to jump to the next brightest thing) will switch to it and all the human effort put into it (as the link mentions it’s mostly/solely volunteeers) will be forgotten or at the very least not acknowledged near enough as it should be.
Like with many things AI, the end result will likely be better, but I find it very sad anyways.
I think this has always been the case with Open Source, though. It's largely a thankless enterprise run by volunteers. (See XKCD 2347.) People tend to move on to the new hotness pretty quickly.
Man, after the guy who was maintaining heretic unalived himself I feel like that should be a warning call to everyone to just chill... I am still sad about it.
Very refreshing post from Nicholas, super grateful and thankful for his contributions and ESLint!
There are humans behind things, even with AI they don't run unsupervised or fully autonomous today. Even if they did, a human's wallet would be behind it.
There's no free lunch folks, be grateful for what you have and think hard for what you wish for. Not everything is urgent.
With no ill intent: do you use "unalive" ironically, or should I take its appearance on HN as an indication that the term is gaining genuine legitimacy?
There is no such necessity on HN though, and it seems unlikely to me that someone would assume otherwise. So even if it started out of neccesity, I'm curious whether it's being used here because the English spoken in some circles has evolved to include "unalive" without irony or neccesity.
Hm... it just occurred to me that it actually makes a lot of sense to keep the human level, less capable, but still valuable, dev at human speeds with the most expressive formal language (may be JS, may be Haskell if u want), and then occasionally translate all into Rust, including back-porting. For s.o. who owns both projects, as in leading them, he may be in position to get the benefits from both worlds.
Dogfooding has perks for sure, but even the TypeScript team determined that it wasn't worth the 10x performance hit dogfooding necessitated.
ESLint's performance hit is even worse (we got >60x improvements when switching to oxlint) and from what I can see the benefits of dogfooding aren't as many as they were for a whole language with a Turing-complete type system.
I guess I'm suggesting that if eslint is sticking with JS in order to dogfood they may find that their market share dwindles as people more and more find that their lint step is a bottleneck in making fast changes with agents, and dogfooding as a nice theory doesn't keep people from switching.
That's fine as long as that's an intentional choice on their part.
IMO its reasonable but not the end of the discussion by itself. I think their points about the existing developers being largely JS devs is also reasonable. Moreover I think the existence of oxlint is also a fine reason to not move to rust. OSS allows for different projects to have different approaches and philosophies. Personally, I'd almost never use JS anywhere I didn't absolutely have to, but that's just me.
That's a valid point: eslint devs themselves are currently JS devs and presumably don't want to hop languages just for this. I think it's more that "the linter should be written in the language" is no longer a compelling reason by itself. 5 years ago I'd have said that Python package managers should be written in Python instead of bringing a whole other language in. Now I don't hold that opinion.
I wrote them as brackets to guide grouping, not parentheticals. (They’re not intended to be a standard linguistics format or anything either.)
(And I don’t want to bog down the original comment too much, so I’ll take this opportunity to amend that there are really 3+ valid bracketings, but the most obvious 2 – the one I highlighted and “I think X given Y” – are equivalent in meaning.)
For this tool speed is entirely the wrong point of focus.
1. While the tool may not be as fast as possible it is reasonably fast and certainly enough given that it’s a dev tool and not a part of consumer end services.
2. Security and size are much greater problems that require overwhelmingly less labor to accomplish. ESLint has too many dependencies at too great a nested depth. This really blows out the size of the application far beyond its initial footprint and completely opens it to the various exploits that come from malicious dependency injection.
3. ESLint cannot be rewritten into another language without solving for the prior concern first.
I agree that ESLint's dependency problems are really bad and a higher priority for them to fix, but I think you're downplaying speed far too much, at least after the advent of AI.
Linting is more important now than ever, and on my laptop it now gets run easily 50+ times on a typical workday.
The difference between a 2 minute lint and a 2 second lint, on 50 lint runs per day, is the difference between 1.6 hours just spent linting versus 1.6 minutes spent on linting.
And that's before we get to the fact that oxlint's memory usage is so low relative to ESLint that I can actually do something else while oxlint runs in the background, where ESLint would regularly force me to stop what I was doing while it ran!
Lint corrections are largely trivial compared to things like enhancements or refactors. As a result I save linting as the final step before merging branches. I get the same result with far less time spent.
I mean this entirely earnestly, not intending to start a language war here.
As someone who has programmed in Go for years, it’s always surprising to hear what’s going on outside of my bubble.
It’s very surprising to me that you have to actually make arguments to persuade people that multi minute lint steps aren’t a good developer experience.
And that the standard tooling in the most popular language in the world still has this problem.
I’m not rooting for the volunteers working on ESlint to get displaced. In fact, I’m obviously very concerned about the displacement of human developers. But if it is possible to speed up the tooling with AI, it really calls into question what they’ve been doing for the past few decades as every other tool and language has seen the writing on the wall and optimized…
The GitHub post seemed to sort of recognize the gravity of the problem, and that ESLint might get replaced.
Only a little bit, though. Because then it went into obvious debunked arguments like “JavaScript is just as fast as Rust because of V8 engine optimizations”, which we know isn’t true. It’s also weird that AI wasn’t mentioned at all, and Astral’s Python linter wasn’t mentioned. Both feel like important developments that basically disprove most of their points.
What does that even mean? The "people who pay the bills" pay developers (and/or agents). Decreasing development time in this case saves real money by decreasing developer wait time and CI spend.
It's fine for ESLint to stay JS, but oxlint is the way forward. With agents running in multiple worktrees, you need to squeeze everything you can from the tooling.
However, lint tools sit in a middle ground where speed matters: the linter doesn’t catch compile errors; the compiler does that; the linter is not a unit or functional test.
The linter serves multiple purposes related to codebase maintenance: catching minor gotchas, enforcing best practices (at the code level), enforcing code style, and catching random project constraints (like disallowing certain imports).
And you run them all the time: automatically in an editor, when working with an agent, on CI/CD. In all these situations, a small speed gain has a lot of impact.
My hot take: perhaps we can give the agent a list of rules in plain text, and the agent builds the code to check them once, using some native framework, to produce a highly project-specific, optimized CLI. If you need to add a rule, you can make the agent regenerate the CLI.
So tools like eslint become the small pieces of a code validation framework.
My feeling is that we actually underutilize linters because they're so slow that extending them too much hurts. Switching to better linters should allow us to catch more, sooner.
In the TypeScript world the linter pairs with the type system to give you a toolkit for writing custom static analysis rules that can prove that certain types of bugs simply can't exist in any code, even new code, without anyone having to remember to write a new test for such-and-such an edge case on a new feature.
TS plus lints can catch far, far more than most people credit them with, and with agents running amok in our codebases that's an extremely valuable resource to have.
Fast lints mean that I can use that tool with relative impunity rather than hemming and hawing about whether it's worth an extra 10 seconds on an already-too-long lint step.
> Ecosystem turbulence. If we make it a goal that we need to support all existing ESLint ecosystem packages then that will take a lot of work before a new version can ship. Shipping without this would produce a curiosity rather than a usable tool. Of course, we could decide not to support existing packages, which brings its own challenges.
Surprising that they mention this topic without even a reference to the v9 release. I understand the need to have a public catch-all response to the "why not Rust?" questioners, but reading the v9 retrospective it's clear that the team has no ambitions for anything that would cause another ecosystem shakeup.
Idk considering we get like 1 once a decade CVE every week now, mostly due to using tech that doesn't have secure memory access, it kinda makes sense to switch shit to Rust.
I wouldn't call them evangelists. These are mostly toxic trolls that mindlessly parrot around tired cliches they themselves do not understand and feel entitled to bully people doing actual work.
See how those types are talking about memory safety in a thread about rewriting JavaScript command line tools in Rust. Remarkable stuff.
As I see it, there is a group of people building up Rust to be an outstanding tool, and then there are these types. Doing nothing, knowing nothing. Achieving nothing, but feeling entitled to bully others for doing their work. Some people work hard to lift Rust up, but this abject Rust mob is hell bent on tearing it all down.
Rust is a hard no-go if vibecoding. Hard hard no-go. The abysmal compile times + how resource heavy the compiler itself is makes agentic development extremely taxing. You can easily max out (CPU and mem usage wise) even a very powerful workstation.
Also LLMs are now intelligent enough that with linting/sanitizing they can write C that's equally as safe as Rust. The last time an LLM actually generated a clear UAF or OOB read/write was during the Opus 4.8 days.
Sure, nobody has time, everyone is a volunteer, nevermind the $100k/year being donated to eslint.
The rest reads like a bunch of excuses. It's clear that linting via rust is very much possible, you're only lacking intent. Which is perfectly fine, but at least be honest.
A good way forward would be for oxlint to reach 100% and for it to be merged into eslint's repo. But of course that would hurt OP's feelings.
Someone enjoys cooking Japanese food. Then some bunch of commenters tells him what he needs to do is manage a bunch of robot cooks cooking Italian food, and he better like it. But it'll all still be volunteer work. As to his enjoyment, who cares?
I can see OP's viewpoints, why change my life to something worse to satisfy a bunch of commenters? If the people with hard-on for Rust want it, then they should just do it themselves, or donate to the people who want to do it.
If you want to know why they "don't want to" you could read the article. You're calling them dishonest, but it doesn't look like you even read what they had to say (well, you ignored it all and didn't engage with it, which is effectively the same thing). The one thing you did engage with is their point about the time it would take... but do you really think it would take trivial amounts of time to convert the team and project to rust? Silly.
This whole post sounds like a cope. A linter that is slow serves only one purpose: a money sink for users. No time, dogfooding etc all just BS. If the reason is "we don't care if this tool is useful for the ecosystem, we just want to figure out problems and solutions in Javascript "...that's a valid reason.
ESLint can stay in JS while rust based alternatives will gain more and more ground until people forget about eslint.
> When someone asks, “why don’t you rewrite ESLint in Rust?” what they’re really asking is, “why can’t ESLint be faster?” […] People have equated Rust with fast executables, so instead of asking the real question, they jump directly to what they believe is the solution. Rust is fast, ESLint is not, therefore ESLint built on Rust is the answer.
I’ve never heard this framed in this way and this is, in fact, a very powerful argument. Rust code benefits from memory safety, from the compile-time guarantees that make it easier for AI agents to write and maintain it… but at the end of the day many people like Rust mostly because it facilitates building more performant software.
I wonder if the vast majority of that performance boost could be obtained if efforts were directed towards improving programs in their own language, like the ESLint team is doing, rather than going straight for a full-on rewrite in Rust. My nagging suspicion is that this is very much possible, as seen for instance in VS Code pushing the boundaries of Electron apps. But that does require some effort.
> I wonder if the vast majority of that performance boost could be obtained if efforts were directed towards improving programs in their own language, like the ESLint team is doing, rather than going straight for a full-on rewrite in Rust. My nagging suspicion is that this is very much possible, as seen for instance in VS Code pushing the boundaries of Electron apps. But that does require some effort.
I just don't think so, personally. You just really don't have to try when it comes to things like 0 allocation in Rust, and when you do put in effort it's for things like explicit SIMD. For something like typescript you have to put in a lot of effort for 0 allocations and then something like explicit SIMD just isn't really on the table.
In Rust I have real threads, I can manage IO, etc.
I'm sure you can push these languages and runtimes very far but there just are limits.
I've seen this so many times. Even with binaries or services that people say spend 90% of time in IO, I've sped them up with naive ports to Rust. Why? Because IO in Rust is going to be faster - freeing up your event loop by reducing contention will reduce latency, reducing allocations will reduce latency, control over task allocation will reduce latency, etc. I've just seen it too many times where "it's just a dumb pipe between services, language doesn't matter" turns out to be "language bound".
I'm sure they will improve performance by optimizing their use of the language but it's just not going to compete with a rust implementation.
IME Rust is easier way to reach perf improvements & has higher ceiling, & this goes back to rewriting a cardgame engine pre-AI (both engine in wasm & server from node)
I'd spent years tuning for JITs & it was so nice to not have to worry about their fickle nature
But I also don't think people should think they're helping by opening issues rambling about RIIR. It's up to the project leads & don't worry they know about Rust. Rewrites are not something for flyby PRs to implement
When people use the term "memory safety" they almost always mean "unless you use the memory unsafe escape hatches that basically all languages provide".
As if not a lot of Rust marketing was based on blurring exactly the distinction between "completely eliminates all memory safety issue" (Safe Rust) and "competed with C/C++ as a system programming language" (Rust including its unsafe part).
Even comparing to C++ it’s a huge improvement, because all of C++ is unsafe. Unsafe rust, even in codebases that utilize it, is a small minority of the code.
This "all C++ is unsafe" is similarly exaggerated Rust marketing claim. It is logically equivalent to "all Rust code is unsafe because it may contain unsafe" and nonsense for the same reason. The only claim you can make is that it is easier to screen for the unsafe parts because it is marked more clearly. I would agree with this much more limited statement.
> This "all C++ is unsafe" is similarly exaggerated Rust marketing claim
It really isn't, and because I have no doubt you made this assertion genuinely that is itself a problem for their language.
C++ APIs with broad - and thus actually safe - contracts are very rare. Most of the time what we'll find is that there were a few "obvious" assumptions narrowing a seemingly wide contract, an iterator that's assumed to be non-null, a parameter that's expected to be in bounds, or to have this or that desirable property - and if it doesn't while Rust would reject the program alas in C++ it's just Undefined Behaviour so too bad you lose.
The quintessential example is sorting. Maybe we've got a billion Doodads and we sort them. What happens if our sort order is incoherent nonsense, either because our type doesn't actually have a total order or because we provided an explicit ordering rule which was not coherent? In Rust the answer is that this remains safe, since there was no coherent order we can't really say that the Doodads are now "sorted", but the same billion Doodads are there. In C++ that's Undefined Behaviour. Anything could happen. In the real world maybe some of the C++ Doodads are corrupted, or duplicated, or the total number of Doodads changes, maybe arbitrary code is executed, it's a horror show.
The fact is that in practice Rust essentially eliminates all memory safety issues. You can describe that however you want, but most people are perfectly happy with "Rust is memory safe", and you know what they mean when they say it.
In practice Rust does not eliminate all memory safety issues. So it depends what you mean by "essentially". And then the question is what you compare it to. It is certainly much better than average C++ code.
> Our historical data for C and C++ shows a density of closer to 1,000 memory safety vulnerabilities per MLOC. Our Rust code is currently tracking at a density orders of magnitude lower: a more than 1000x reduction.
This is an extreme, all or nothing response. JavaScript tooling written in Rust is and has been very successful at saving teams lots of money and lots of time.
This perfectly exemplifies many open source projects. Maintainers say they work on what's fun and interesting in their spare time, while users have limited expectations, knowing they consume something free.
Then there's some funded tooling that just completely wipes the floor and people switch. At the end of the day, I care most about tooling that works — I'd rather use free Windows than TempleOS.
Speaking as a member of the Rust project: please don't pester the maintainers of projects you use about rewriting their projects in Rust. If you're a friend or colleague of theirs, or you're paying them for an appropriate level of support, by all means have a conversation. Otherwise, if you're a user of their project, please don't.
It's awesome when projects move to Rust. It's not awesome when people get harangued with "RIIR!".
Slow linting is not just a nuisance but also a real cost. FWIW the new ts compiler was around 600h runtime saved per month. And we're only a small team.
- macbook pro: 50s => ~30ms
- ci server: 3m => ~6s
(edit: 30ms, not 3)
Removed it from every other project I have any control over right after that.
biome supports all important rules and is probably 100× faster at least. Has its own dependencies of course, but statically linked native code is easier to swallow somehow.
https://biomejs.dev/
Even if you find a gap where a plugin isn't supported, vibe coding an eslint/oxlint plugin for anything you need takes a few minutes at this point.
The main gap right now is there are no type-aware plugins, but as a stopgap you can vibe code a tiny custom linter on top of the new TypeScript and reap most of the speed benefits now, then port to oxlint once type-aware is ready.
You are also correct that it has built in rules that are type aware.
I wish Oxlint had a native plugin API!
Our whole lint step with both oxlint and our custom type linter still costs 1/60 what it used to under eslint.
So, yeah, it's not as fast as it could be in theory, but it's still way better than eslint.
Yes, at some point there are diminishing returns, and yes, “reasonable” speed is usually good enough, but that’s not the point.
A faster program is a better program. If you don’t want to make the program better in that way, fine, but we shouldn’t pretend that it’s not in fact better.
When you choose not to make your program faster, you are choosing to leave it worse. Sometimes that’s okay, but it’s always worse, and we should freely face that head on.
Where are they saying that? Their only answer to the performance question is "maybe it can be fast enough", not "it's fast enough".
“We want to leave our program worse, because we’re okay with that for now.”
To be perfectly clear, the above position is often a completely valid choice made by developers, and I’m not saying you should never make this call. (Though, the leagues of ESLint users complaining about speed might make one reconsider.)
My issue is that many developers skirt around this. I think one should freely admit that the program is worse, and that that’s all it’s going to be for now, rather than make excuses.
Even if the excuses are valid (which in this post they appear to be, for the author cites personal health problems), we ought to be more open about this sort of thing.
Not necessarily.
> If you don’t want to make the program better in that way, fine, but we shouldn’t pretend that it’s not in fact better.
No, see above.
> When you choose not to make your program faster, you are choosing to leave it worse.
Not really.
> Sometimes that’s okay, but it’s always worse
Nope. You're circularly making the same point several times and the whole thing collapses when one refuses to concede the first false premise.
In this specific case, there are other tradeoffs, which the person you are replying to did not talk about.
The "all else equal" part of what I said is, pardon my slop, load-bearing.
This is the assumption that makes the original comment valid, that's what caaqil is trying to point out. If you're making a program faster by introducing hacks, then it's not necessarily better anymore
I keep seeing this sort of pattern with a lot of Rust rewrites, which are started in good faith, but just the tag of Rust and 10x faster shouldn't be the only metric on which we judge it. Correctness and adherence to the specification is also highly important.
Everyone will move on if they don’t move with the times.
Like with many things AI, the end result will likely be better, but I find it very sad anyways.
It came out how many years ago, and only lints like what, a quarter of what ES Lint can?
Not saying you are wrong but ... be wary of "this replacement is the future, everyone jump on board today" thinking.
Very refreshing post from Nicholas, super grateful and thankful for his contributions and ESLint!
There are humans behind things, even with AI they don't run unsupervised or fully autonomous today. Even if they did, a human's wallet would be behind it.
There's no free lunch folks, be grateful for what you have and think hard for what you wish for. Not everything is urgent.
https://phys.org/news/2023-04-algospeak-version-linguistic-s...
https://nplp.pl/en/artykul/aesopian-language/
ESLint's performance hit is even worse (we got >60x improvements when switching to oxlint) and from what I can see the benefits of dogfooding aren't as many as they were for a whole language with a Turing-complete type system.
I guess I'm suggesting that if eslint is sticking with JS in order to dogfood they may find that their market share dwindles as people more and more find that their lint step is a bottleneck in making fast changes with agents, and dogfooding as a nice theory doesn't keep people from switching.
That's fine as long as that's an intentional choice on their part.
> I think ([the idea that {dogfooding is a core reason to stay in js}] is very reasonable given the nature of the tool).
(And I don’t want to bog down the original comment too much, so I’ll take this opportunity to amend that there are really 3+ valid bracketings, but the most obvious 2 – the one I highlighted and “I think X given Y” – are equivalent in meaning.)
1. While the tool may not be as fast as possible it is reasonably fast and certainly enough given that it’s a dev tool and not a part of consumer end services.
2. Security and size are much greater problems that require overwhelmingly less labor to accomplish. ESLint has too many dependencies at too great a nested depth. This really blows out the size of the application far beyond its initial footprint and completely opens it to the various exploits that come from malicious dependency injection.
3. ESLint cannot be rewritten into another language without solving for the prior concern first.
Linting is more important now than ever, and on my laptop it now gets run easily 50+ times on a typical workday.
The difference between a 2 minute lint and a 2 second lint, on 50 lint runs per day, is the difference between 1.6 hours just spent linting versus 1.6 minutes spent on linting.
And that's before we get to the fact that oxlint's memory usage is so low relative to ESLint that I can actually do something else while oxlint runs in the background, where ESLint would regularly force me to stop what I was doing while it ran!
As someone who has programmed in Go for years, it’s always surprising to hear what’s going on outside of my bubble.
It’s very surprising to me that you have to actually make arguments to persuade people that multi minute lint steps aren’t a good developer experience.
And that the standard tooling in the most popular language in the world still has this problem.
I’m not rooting for the volunteers working on ESlint to get displaced. In fact, I’m obviously very concerned about the displacement of human developers. But if it is possible to speed up the tooling with AI, it really calls into question what they’ve been doing for the past few decades as every other tool and language has seen the writing on the wall and optimized…
The GitHub post seemed to sort of recognize the gravity of the problem, and that ESLint might get replaced.
Only a little bit, though. Because then it went into obvious debunked arguments like “JavaScript is just as fast as Rust because of V8 engine optimizations”, which we know isn’t true. It’s also weird that AI wasn’t mentioned at all, and Astral’s Python linter wasn’t mentioned. Both feel like important developments that basically disprove most of their points.
> given that it’s a dev tool
So devs don't deserve fast tools?
Rust alternative will be faster...
And rewriting from one language to the other using LLMs becomes easier and easier with every new model release...
Hence we got Biome.
Moved all my websites to use it.
However, lint tools sit in a middle ground where speed matters: the linter doesn’t catch compile errors; the compiler does that; the linter is not a unit or functional test.
The linter serves multiple purposes related to codebase maintenance: catching minor gotchas, enforcing best practices (at the code level), enforcing code style, and catching random project constraints (like disallowing certain imports).
And you run them all the time: automatically in an editor, when working with an agent, on CI/CD. In all these situations, a small speed gain has a lot of impact.
My hot take: perhaps we can give the agent a list of rules in plain text, and the agent builds the code to check them once, using some native framework, to produce a highly project-specific, optimized CLI. If you need to add a rule, you can make the agent regenerate the CLI.
So tools like eslint become the small pieces of a code validation framework.
In the TypeScript world the linter pairs with the type system to give you a toolkit for writing custom static analysis rules that can prove that certain types of bugs simply can't exist in any code, even new code, without anyone having to remember to write a new test for such-and-such an edge case on a new feature.
TS plus lints can catch far, far more than most people credit them with, and with agents running amok in our codebases that's an extremely valuable resource to have.
Fast lints mean that I can use that tool with relative impunity rather than hemming and hawing about whether it's worth an extra 10 seconds on an already-too-long lint step.
Surprising that they mention this topic without even a reference to the v9 release. I understand the need to have a public catch-all response to the "why not Rust?" questioners, but reading the v9 retrospective it's clear that the team has no ambitions for anything that would cause another ecosystem shakeup.
https://eslint.org/blog/2025/05/eslint-v9.0.0-retrospective/
Not rewriting ESLint in Rust has already produced >1 Rust-based JavaScript linters and that number will likely continue to increase.
Therefore both parties’ needs are best served by not rewriting.
If ESLint were written in C that'd be a compelling (ish) argument.
But ESLint is written in Javascript, and doesn't suffer from memory access issues at this layer.
Now if you'd said, "Let's re-write V8 in rust", then you'd have a reason to argue for memory safety.
I wouldn't call them evangelists. These are mostly toxic trolls that mindlessly parrot around tired cliches they themselves do not understand and feel entitled to bully people doing actual work.
See how those types are talking about memory safety in a thread about rewriting JavaScript command line tools in Rust. Remarkable stuff.
As I see it, there is a group of people building up Rust to be an outstanding tool, and then there are these types. Doing nothing, knowing nothing. Achieving nothing, but feeling entitled to bully others for doing their work. Some people work hard to lift Rust up, but this abject Rust mob is hell bent on tearing it all down.
Worst part about Rust is vibe coders using Rust, while hating the language.
Also LLMs are now intelligent enough that with linting/sanitizing they can write C that's equally as safe as Rust. The last time an LLM actually generated a clear UAF or OOB read/write was during the Opus 4.8 days.
The rest reads like a bunch of excuses. It's clear that linting via rust is very much possible, you're only lacking intent. Which is perfectly fine, but at least be honest.
A good way forward would be for oxlint to reach 100% and for it to be merged into eslint's repo. But of course that would hurt OP's feelings.
https://en.wikipedia.org/wiki/Offshoring
I can see OP's viewpoints, why change my life to something worse to satisfy a bunch of commenters? If the people with hard-on for Rust want it, then they should just do it themselves, or donate to the people who want to do it.
"No time" is bs. "I don't want to" is nowhere to be found in the post.
The time is one
ESLint can stay in JS while rust based alternatives will gain more and more ground until people forget about eslint.
I’ve never heard this framed in this way and this is, in fact, a very powerful argument. Rust code benefits from memory safety, from the compile-time guarantees that make it easier for AI agents to write and maintain it… but at the end of the day many people like Rust mostly because it facilitates building more performant software.
I wonder if the vast majority of that performance boost could be obtained if efforts were directed towards improving programs in their own language, like the ESLint team is doing, rather than going straight for a full-on rewrite in Rust. My nagging suspicion is that this is very much possible, as seen for instance in VS Code pushing the boundaries of Electron apps. But that does require some effort.
I just don't think so, personally. You just really don't have to try when it comes to things like 0 allocation in Rust, and when you do put in effort it's for things like explicit SIMD. For something like typescript you have to put in a lot of effort for 0 allocations and then something like explicit SIMD just isn't really on the table.
In Rust I have real threads, I can manage IO, etc.
I'm sure you can push these languages and runtimes very far but there just are limits.
I've seen this so many times. Even with binaries or services that people say spend 90% of time in IO, I've sped them up with naive ports to Rust. Why? Because IO in Rust is going to be faster - freeing up your event loop by reducing contention will reduce latency, reducing allocations will reduce latency, control over task allocation will reduce latency, etc. I've just seen it too many times where "it's just a dumb pipe between services, language doesn't matter" turns out to be "language bound".
I'm sure they will improve performance by optimizing their use of the language but it's just not going to compete with a rust implementation.
I'd spent years tuning for JITs & it was so nice to not have to worry about their fickle nature
But I also don't think people should think they're helping by opening issues rambling about RIIR. It's up to the project leads & don't worry they know about Rust. Rewrites are not something for flyby PRs to implement
Rust is not "safe" as you think unless there is no "unsafe", no FFI, no link to C library and libc.
For example, Java is memory safe but the recent Java4Shell happen because it uses unsafe code to handle base64.
But you knew that. Don't nit pick.
It really isn't, and because I have no doubt you made this assertion genuinely that is itself a problem for their language.
C++ APIs with broad - and thus actually safe - contracts are very rare. Most of the time what we'll find is that there were a few "obvious" assumptions narrowing a seemingly wide contract, an iterator that's assumed to be non-null, a parameter that's expected to be in bounds, or to have this or that desirable property - and if it doesn't while Rust would reject the program alas in C++ it's just Undefined Behaviour so too bad you lose.
The quintessential example is sorting. Maybe we've got a billion Doodads and we sort them. What happens if our sort order is incoherent nonsense, either because our type doesn't actually have a total order or because we provided an explicit ordering rule which was not coherent? In Rust the answer is that this remains safe, since there was no coherent order we can't really say that the Doodads are now "sorted", but the same billion Doodads are there. In C++ that's Undefined Behaviour. Anything could happen. In the real world maybe some of the C++ Doodads are corrupted, or duplicated, or the total number of Doodads changes, maybe arbitrary code is executed, it's a horror show.
> Our historical data for C and C++ shows a density of closer to 1,000 memory safety vulnerabilities per MLOC. Our Rust code is currently tracking at a density orders of magnitude lower: a more than 1000x reduction.
https://blog.google/security/rust-in-android-move-fast-fix-t...
I await your tediously predictable "1000x reduction isn't eliminated" response.
That just doesn't make sense.
If you want to benefit Rust, switch to Rust for backend and switch to Rust for frontend (wasm).
That makes a lot more sense.
Then there's some funded tooling that just completely wipes the floor and people switch. At the end of the day, I care most about tooling that works — I'd rather use free Windows than TempleOS.