News for hackers. Stuff that matters.
Re:Farm: Fast vite compatible build tool written in Rust by antihero on Saturday June 22, 2024 @09:50AM (#40759149)
Rollup is slow as hell. I’m working with a project where the builds take minutes on an M3 Pro.

I’d like to switch to something like esbuild but it uses a lot of features like aliases so would take some work to translate and the lib is being moved away from anyway. If I can drop something in that speeds it up I’m all for it

Re:Farm: Fast vite compatible build tool written in Rust by nikeee on Saturday June 22, 2024 @09:59AM (#40759210)
The vite authors are working on a roll up rewrite in rust to solve this. So instead of using farm, I'd just wait.
Re:Farm: Fast vite compatible build tool written in Rust by arbol on Saturday June 22, 2024 @05:14PM (#40762271)
Is this rolldown or something else?

https://github.com/rolldown/rolldown

Re:Farm: Fast vite compatible build tool written in Rust by antihero on Sunday June 23, 2024 @05:14AM (#40765935)
Why not try farm though if it means faster builds now?
Re:Farm: Fast vite compatible build tool written in Rust by maccard on Saturday June 22, 2024 @12:33PM (#40760219)
I compile a few hundred thousand lines of c++ in “minutes”… it’s sad to see the state of the ecosystem be actually slower than languages that have a reputation for being slow.
Re:Farm: Fast vite compatible build tool written in Rust by pjmlp on Saturday June 22, 2024 @07:04PM (#40763042)
Indeed.
Re:Farm: Fast vite compatible build tool written in Rust by dgb23 on Sunday June 23, 2024 @04:01AM (#40765562)
Ok, but C++ is a compiled language. Even though compilation speed doesn’t need to be that slow, at least you’re getting something out of it.

JS is interpreted and JITed. The whole point of using it is having a very fast feedback loop.

The tradeoff should be: faster at dev, slower at runtime. There’s something fundamentally wrong if that premise is broken.

Actually it’s insane that we need build steps with any noticeable delay during dev time at all.

Re:Farm: Fast vite compatible build tool written in Rust by erkelost on Sunday June 23, 2024 @08:19AM (#40766887)
you can try use farm,If you are using a relatively simple rollup plugin, there should be no problem. The farm is compatible with rollup plugins.