upvote
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