upvote
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.

reply
That's your claim, their view on performance in the post seems to be that they can get most of the available gains without switching languages, and switching languages has such a high cost the remainder wouldn't be worth it. Probably correct, at least in my experience.
reply
I think you might be confused. I'm not trying to put any words in the author's mouth. I'm just trying to say that developers generally (including in this post) should be more open about what "good enough" performance means.

Yes, I am making a normative claim on what the author should say, but I'm not disputing anything they have said. Also, the author never claimed this.

     > they can get most of the available gains without switching languages,
This is because this is wrong, and the author probably knows that. The post describes some improvement in performance, but nowhere is it claimed that "most" of the available gains are achieved. This is because "available" includes oxlint, and on a bad day oxlint is 50x faster than ESLint.
reply
They pretty directly claim in the "The performance question" section that JavaScript is not an obstacle to good performance. If you're arguing against the straw man that they're claiming performance is good enough, not much to talk about there because they don't. To be clear, my team did switch to oxfmt for performance reasons, and I don't enjoy TS and the associated ecosystem, and generally I would push the whole thing into the sea if I could. I still think the author is correct that a rewrite is not necessary to improve eslint performance. Some analysis and profiling, refactoring of the systemic problems, upstream work to fix Node, adoption of WASM or native modules for the remaining hot spots, just basic performance work.
reply
They said they see a pretty clear path to ~10% improvements. rust-based alternatives are often ~95–98% improvements.

A rewrite is not necessary to improve performance, but I do not believe that a pure JS implementation is going to get within 5x slower than rust (which would still be a 90% improvement!)

reply
Actually, they pretty directly claim the opposite: JavaScript is an obstacle to good performance. Look at what they have said - it all basically boils down "V8 is amazingly fast, but idiomatic JS is still slow". What they claim is that they can possibly cross this obstacle, despite the language standing in their way.
reply
There’s a whole section entitled “The performance question”, which includes this:

> As an ESLint user, you shouldn’t care what language ESLint is written in so long as it gets the job done in a reasonable amount of time.

But the issue is being raised because people feel that it’s not getting the job done in a reasonable amount of time. This isn’t an unfounded position: Oxlint demonstrates that (most of) of the job can be done orders of magnitude faster.

There’s also this:

> Here’s the thing: JavaScript isn’t actually slow. V8 is ridiculously fast and compiles JavaScript into machine code.

Which is kind of beside the point. The point is how fast the tool executes. That section mentions one unreleased performance increase of 9-10%, but some comments here claim speeds up to 1600x faster for Oxlint. (Oxlint itself claims 50 - 100x.) That changes the baseline for “reasonable”.

I’m not saying ESLint should be rewritten. The author’s points about the dev team are valid. What that means in practice is that another project is likely to eventually replace ESLint, and that process has started already.

I’m also not saying that the author shouldn’t express his perspective. But what he’s expressed in this respect seems a bit like denial.

reply