2 ms·
> Don't let the compiler repair poor programming style ... This includes some cases of common subexpression elimination, loop invariant code motion and copy pro
by mojuba 9y ago
> Don't let the compiler repair poor programming style ... This includes some cases of common subexpression elimination, loop invariant code motion and copy propagation
Unfortunately in languages like C++ these inefficiencies often originate from inline function expansion rather than the programmer and thus are absolutely necessary.
> Strive for short compilation times
I wish designers of Swift heard this... Swift's build times can be horrifically slow for no good reason, it seems. I think slow build times have become a new norm pretty much like e.g. graphics display boot up times, i.e. someone at some point convinced the users that it's the way it should be and as a new norm no vendor strives to improve it.
- fao_ 9y ago> someone at some point convinced the users that it's the way it should be and as a new norm no vendor strives to improve it. People tend to defend slow boot up times with arguments that boil down to the aphorism: Better the code be correct than fast. Unfortunately most modern software out there is neither, which is where the whole argument falls apart.