News for hackers. Stuff that matters.
Re:Language Design: Use 'ident: Type' not 'Type ident' by MaxBarraclough on Saturday May 02, 2020 @06:20AM (#23050788)
Does Rust allow for fast unoptimised builds then? Perhaps I'd missed that.
Re:Language Design: Use 'ident: Type' not 'Type ident' by steveklabnik on Saturday May 02, 2020 @08:01AM (#23051243)
Faster, yes. Still lots to do.
Re:Language Design: Use 'ident: Type' not 'Type ident' by MaxBarraclough on Saturday May 02, 2020 @08:12AM (#23051280)
You're saying LLVM is slow even when generating code without optimisations?
Re:Language Design: Use 'ident: Type' not 'Type ident' by steveklabnik on Saturday May 02, 2020 @08:37AM (#23051392)
Yes.

The thing that will massively speed up rustc is the current re-architecting of it. We’re at the point of “few percent here, few percent there” with the current design. These add up over time, of course, but batch compilers are inherently slower than the newer style ones (after an initial compile).

Re:Language Design: Use 'ident: Type' not 'Type ident' by Ar-Curunir on Sunday May 03, 2020 @07:31PM (#23062768)
To add to Steve’s point, Rust adds more checks during debug (non-release) more, which can makes the IR larger. So it’s not always the case that debug mode is faster to compile (though it generally is)