News for hackers. Stuff that matters.
Re:Rome will be written in Rust by junon on Tuesday September 21, 2021 @08:56PM (#28611950)
First let me say I really dislike Rust. Personal preference.

However, having worked with Node for almost 10 years now, with a number of bundlers, most in Javascript but some in other languages, Javascript tools rarely win the performance race.

We switched our medium-sized app from Rollup (Javascript) to ESBuild (Rust). Our build times went from 5-15 minutes, to just under 1 second - with full feature parity.

I'm sure a lot of this boils down to algorithms and whatnot, sure. But I still would like to think it's in part the language choice, too.

Re:Rome will be written in Rust by acdibble on Wednesday September 22, 2021 @10:06AM (#28616442)
Probably just a typo due to the topic of the thread, but esbuild is written in Go.
Re:Rome will be written in Rust by junon on Wednesday September 22, 2021 @02:22PM (#28619842)
Yes, got it mixed up in my head :)
Re:Rome will be written in Rust by mastrsushi on Tuesday September 21, 2021 @11:10PM (#28612743)
But how much do those type of performance benefits matter to JS tools like a linter?

The only positive they’re getting out of a native compiler language is unnoticeable performance boosts.

Re:Rome will be written in Rust by junon on Wednesday September 22, 2021 @05:59AM (#28614647)
> But how much do those type of performance benefits matter to JS tools like a linter?

A lot, I don't see how this is really a question.

> The only positive they’re getting out of a native compiler language is unnoticeable performance boosts.

5 minutes to 1 second of build time for the same features isn't what I'd call "unnoticeable".

Re:Rome will be written in Rust by Shish2k on Wednesday September 22, 2021 @04:14AM (#28614106)
Spotting lint problems in real time as I type is way more useful than spotting them after I submit a pull request and wait 10 minutes for the CI system to kick in :)
Re:Rome will be written in Rust by pdimitar on Wednesday September 22, 2021 @09:21PM (#28624196)
Did you just call going from 5 minutes waiting to 1 second near-instant finish "an unnoticeable performance boost"?

lol if so. :D