Year after year, people keep saying this or things like it. But it's worth remembering that it is not the compiler that makes your code fast, but how you structure your data transformations that makes code fast. In 2014, Mike Acton taught us that the best compiler optimisations can only account for 1-10% of the performance optimisation problem space. "The vast majority of [performance] problems, are problems the compiler cannot reason about." https://youtu.be/rX0ItVEVjHc?t=2097
Re-ordering of reads and writes is not really the problem either, even if we assume that one could automatically safely reorder reads and writes arbitrarily to yield significant optimisations. Fundamentally, the compiler does not know the semantics of your data and the relationships between pieces of data and the logic of their transformations. Knowledge of your specific problem and the specific data you are transforming yields the majority of the powerful optimisation opportunities. Similarly, a garbage collector doesn't know the meaning of your data or your algorithms.
> Is that really true in all cases though?
Consider: Given a set of data, if a compiler or garbage collector understood the data sufficiently, then there would be no need for you to exist to write the program, because the compiler could simply write the data transformations itself and generate the program.
However, one is encouraged to do experiments for oneself. Concrete profiling data, not abstract theory, is what matters when evaluating cost-benefit of any approach.
"The less you intend to do about something, the more you have to talk about it." However this maxim is not applicable here because compile times actually have been improving.
There is definitely a marketing angle to these posts. Rust has a reputation for slow compilation, and one of my goals is to show that (a) people working on Rust care about compile times, and (b) improvements are being made.
I'll let you judge whether the marketing is backed by actual substance. It's a long-running blog post series, here are links to all the posts.
* https://blog.mozilla.org/nnethercote/2016/10/14/how-to-speed...
* https://blog.mozilla.org/nnethercote/2016/11/23/how-to-speed...
* https://blog.mozilla.org/nnethercote/2018/04/30/how-to-speed...
* https://blog.mozilla.org/nnethercote/2018/06/05/how-to-speed...
* https://blog.mozilla.org/nnethercote/2018/11/06/how-to-speed...
* https://blog.mozilla.org/nnethercote/2019/07/17/how-to-speed...
* https://blog.mozilla.org/nnethercote/2019/07/25/the-rust-com...
* https://blog.mozilla.org/nnethercote/2019/10/11/how-to-speed...
* https://blog.mozilla.org/nnethercote/2019/12/11/how-to-speed...
* https://blog.mozilla.org/nnethercote/2020/04/24/how-to-speed...
* https://blog.mozilla.org/nnethercote/2020/08/05/how-to-speed...
EDIT: I just saw that alilleybrinker already linked to all these and more below: https://news.ycombinator.com/item?id=24061346
I know the Rust contributors are doing their best, and that this blog post is not writing a marketing ploy, but in the end, the result is what matters.
My take on this is that I am fine with compile times as long as some effort is being done to keep it near optimal.
But I really do not want the Rust team to feel pressure to improve the compile times so much that they will end up killing other features or designing the language differently just for that (like Go, for instance). Or even making the compiler so complex that adding new features is harder for them.
I really like Rust as a language that is more complex to write and to compile but in return gives you robustness and performance. Compilation times be damned. I am not writing Rust to compile fast!