News for hackers. Stuff that matters.
Re:"Why is the Rust compiler so slow?" by jstanley on Friday June 27, 2025 @07:14AM (#44395833)
> Go has sub-second build times even on massive code-bases.

Unless you use sqlite, in which case your build takes a million years.

Re:"Why is the Rust compiler so slow?" by Groxx on Friday June 27, 2025 @09:03AM (#44396492)
Yeah, I deal with multiple Go projects that take a couple minutes to link the final binary, much less build all the intermediates.

Compilation speed depends on what you do with a language. "Fast" is not an absolute, and for most people it depends heavily on community habits. Rust habits tend to favor extreme optimizability and/or extreme compile-time guarantees, and that's obviously going to be slower than simpler code.

Re:"Why is the Rust compiler so slow?" by infogulch on Friday June 27, 2025 @04:11PM (#44399849)
Try https://github.com/ncruces/go-sqlite3 it runs sqlite in WASM with wazero, a pure Go WASM runtime, so it builds without any CGo required. Most of the benchmarks are within a few % of the performance of mattn/go-sqlite3.