Re:What is tail call optimization (2008)?
by pantaloons on Wednesday March 21, 2012 @05:31PM
(#3736801)
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.
Re:What is tail call optimization (2008)?
by jlongster on Wednesday March 21, 2012 @05:52PM
(#3736923)
SICP 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.
[1] http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-34.html