Hacker News new | past | comments | ask | show | jobs | submit login

> Rust's compile times are incredibly painful too, and one of the worst offenders is the #1 json library for rust (serde).

Go and Rust sort of took opposite paths in terms of the compiler.

Rust spends the compilation time (for release compiles) to generate the fastest binaries the compiler can emit. The article talks about Go adding things like "A recent improvement was in version 1.17, which passes function arguments and results in registers" that's stuff that compilers like llvm have been doing pretty much at inception (20 years).

Go has optimized for compilation speed with the understanding that "Well, it's probably not CPU time that is REALLY making your software slow".

Go compiles faster and rust compiles faster results.




This is why I think Go could benefit with an LLVM target.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: