News for hackers. Stuff that matters.
Re:What part of Rust compilation is the bottleneck? by KingOfCoders on Saturday March 16, 2024 @05:46AM (#39724520)
I wonder why we do not split up compilation more - especially for web developer. Rust does this a little with "check", C with "-O".

I want fast compilation for my dev cycle or for unit tests, I want slow compilation with optimizations, escape analysis, correctness etc. for production (the distinction between a compiler and linter is also not clear, some compiles do what linters do in other languages).

Re:What part of Rust compilation is the bottleneck? by jokethrowaway on Saturday March 16, 2024 @05:55AM (#39724555)
We do, you have profile configuration for dev or for release

You can get pretty big differences in terms of compile speed / binary size

Re:What part of Rust compilation is the bottleneck? by IshKebab on Saturday March 16, 2024 @11:17AM (#39726655)
Giving up entirely on the compile time of "performance" builds can be bad too though, e.g. for people writing games, audio software, etc.
Re:What part of Rust compilation is the bottleneck? by bluGill on Saturday March 16, 2024 @01:21PM (#39727711)
Only if you need to test the full game. If you can unit test algorithms and learn something then fast builds matter.