upvote
So you optimise for one thing and one thing only: speed. The maintainer's post lays out the many reasons why they think it's a balance of a bunch of factors. A faster program is NOT per default a better program. That's the whole point of his post.
reply
Nobody, including the person you're replying to, is advocating for optimizing for one and only one thing.

Please don't argue against arguments you made up in your head. It's not productive.

reply
The person you're defending is more guilty of this than the person you're admonishing. It's a mostly reasonable interpretation of the response, given the context of the original post.
reply
> I really dislike it when the argument to a slow program is that “it’s fast enough”

Where are they saying that? Their only answer to the performance question is "maybe it can be fast enough", not "it's fast enough".

reply
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
> A faster program is a better program.

Not always

There are tradeoffs

reply
Some of the Google engineers have given talks about this. Because Software Engineering includes maintenance - it's not just one shot vibe coding - it's much wiser to retain the code which was easier to understand alongside the faster code after writing code that delivers better performance at a price of readability.

One reason is in the short term code doesn't rot as badly as documentation. A written description of algorithm foo may not be updated when somebody tweaks the tricky ARM SIMD inside foo_fast. But if a unit test verifies that foo_fast and foo_slow calculate the same values, when foo_fast is modified without the equivalent change to foo_slow there's a good chance that's caught because it fails the tests.

In the long term fast_foo might stop being fast, especially in relative terms. Quake III Arena's Fast inverse square root routine is clever in 1999 and for a few years after that it was still genuinely the fast (though incomprehensible) way to calculate the inverse square root. But today that's no longer true. You can still write that Quake III routine - you can even write it in more readable and entirely safe Rust no problem, and it won't be slower than machine code from 1999 ripped out of your Quake III binary - but you shouldn't because today it can't compete with just asking your CPU to actually calculate the inverse square root, which is no trouble on modern hardware.

reply
> 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”.

Reading the discussion of Oxlint in this thread, and assuming the claims about the speed improvement are accurate (up to 1600x faster!), the open source market will take care of this: people will switch tools.

reply
> A faster program is a better program.

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.

reply
Unless the point of the program is at some point to not be fast, then yes, the same program, faster, is always better.

In the real world sometimes it is not wise to make the tradeoffs required for more speed, but the tradeoffs the post describes are not about the engineering bottlenecks, but rather developer effort. In those cases, faster is a choice between better or not.

Hence why I am brash enough to use the proud "always". For the same program, as in, the same outputs, faster is always better.

reply
No, its a choice between different kinds of better. Developer effort spent on making it faster is developer effort spent on not making it better in a different way.
reply
deleted
reply
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.

reply
> If, all else equal, a program is faster

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

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

reply
They’re downvoted because they basically just said “nuh uh” in a condescending tone which isn’t conductive to conversation.
reply
> If, all else equal

If P=NP, I can sell you a timeshare in the newly furnished Mars colony and have you dancing with Princess Diana in the evening.

reply
There are always trade-offs, but it is (especially when many users complain about performance) conceivable that most programs could be made faster with more engineering effort.

Sometimes it's the right choice to not make those trade-offs for speed alone, and I make that clear in my original reply, but in the case of ESLint, it is completely feasible to make the program faster with zero trade-offs; the developers just don't want to put in the effort for that, as the post describes. That's okay too, but I'm arguing we ought to be open about that, rather than skirting around it.

reply