News for hackers. Stuff that matters.
Re:Cranelift code generation comes to Rust by heavyset_go on Tuesday March 19, 2024 @08:57PM (#39761925)
As someone who doesn't work in the frontend much, what tools are you talking about?
Re:Cranelift code generation comes to Rust by Tehnix on Tuesday March 26, 2024 @08:58AM (#39827269)
There’s been a recent trend of rewriting tools in Rust with insanes speed gains

- Rspack (webpack compatible)

- Rolldown (rollup compatible)

- Turbopack

- Oxc (linter)

- Biome (linter and more)

- Bun (writing in Zig, does crazy fast bundling)

There’s several parts here that are crucial to Frontend development

For production you need:

- Minificion of source code

- Bundling of modules and source code into either one JS file or split into multiple for lazy loading only the parts you need

- Transforming various unsupported high-level constructs into something older target browsers support

- Typechecking/compiling, or stripping TypeScript if that’s in use

Build times could easily go to 10-20 minutes with older tools.

The development loop also gets hurt, here you’d want the loop from saving your change to seeing it in the UI to be almost instant. Anything else means you’ll have to develop crutch methods to workaround this (imagine moving and styling components only to need to sit and wait during each small incremental change).

Re:Cranelift code generation comes to Rust by heavyset_go on Tuesday April 02, 2024 @11:26PM (#39913324)
Thanks for your informative post!