3 ms·
As always SICP has the answers[1], and helped me shift from a "production rule that transforms slow code to be faster" mindset towards a "implementation detail
by pantaloons 15y ago
As always SICP has the answers[1], and helped me shift from a "production rule that transforms slow code to be faster" mindset towards a "implementation detail of the compiler that ensures it doesn't create unnecessary state" one. It's no more an optimization than explicitly not filling code with NOP's is.
[1] http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-34.html http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-34.html
- jlongster 15y agoSICP is such a great book. If anyone is interested in the last chapter, I just implemented the compiler which output the assembly code needed for explicit control evaluation. https://github.com/jlongster/outlet-machine https://github.com/jlongster/outlet-machine