3 ms·
This article was worth it to me if only for the following observation: And there we have a clue as to why, in modern computing, modular code is not high-perfor
by btilly 13y ago
This article was worth it to me if only for the following observation:
And there we have a clue as to why, in modern computing, modular code is not high-performance code. The very advantage of modularity is the source of its performance cost: modularity is the ability to do things other than what you did. Modularity is the ability to reuse the same idea in many different ways and in many different places.
- gdy 13y agoIt is not necessarily so for C++, thanks to its templates.
- marijn 13y agoSee also Rust's emphasis on zero-cost abstractions [1]. The current compiler doesn't emphasize specialization (though it does specialize generics), but the ability to abstract in source code without leaving any trace in the actual compiled binary is a design goal. [1]: http://www.infoq.com/presentations/Rust http://www.infoq.com/presentations/Rust