News for hackers. Stuff that matters.
Re:Why Rust? by 5e92cb50239222b on Tuesday October 18, 2022 @12:38PM (#33250143)
It's pretty fast with modern tooling. Try vite or swc if you have the time and inclination. vite builds one of my large $DAYJOB projects in ~45 seconds (which is insane compared to how webpack performed).

If you don't need vite's extensibility, you can go with 'pure' esbuild and slim down transpilation + minification + bundling to only a few seconds.

https://vitejs.dev

https://github.com/swc-project/swc

https://github.com/evanw/esbuild

Re:Why Rust? by toyg on Wednesday October 19, 2022 @09:28AM (#33261820)
When JS was born, "building" was F5 in a browser. 45 seconds is an eternity in comparison.
Re:Why Rust? by 5e92cb50239222b on Thursday October 20, 2022 @02:34PM (#33278795)
You also couldn't use JS of that time to build anything remotely like modern SPAs. Unlike some Silicon Valley unicorns, we're using SPAs only where they fit, to replace legacy desktop applications. (It's boring intranet stuff, but they make a lot of sense there.) I was a skeptic initially, but it grew on me.