Hacker News new | ask | show | jobs
by pmezard 641 days ago
Exactly, the same way Moore's law has solved C++ compile times.
1 comments

Not sure if you dropped a "/s".

In my experience, C++ template usage will always expand until all reasonably available compile time is consumed.

Rust doesn't have C++'s header/implementation separation, so it's easy to accidentally write overly generic code. In C++ you'd maybe notice "do I really want to put all of this in the header?", but in Rust your compile times just suffer silently. On the other hand, C++'s lack of a standardized build system led to the popularity of header-only libraries, which are even worse for compile times.

From my point of view it is more like laziness to learn how to properly use compiler toolchains.
First rule of good design: misuse isn’t the humans fault