On compilation
Wednesday, October 26th, 2011 20:46Consider an interpreter as a function (Program, Input) → Output. Then:
A compiler is an optimized curried interpreter.
(Further reading: The Three Projections of Doctor Futamura)
Consider an interpreter as a function (Program, Input) → Output. Then:
A compiler is an optimized curried interpreter.
(Further reading: The Three Projections of Doctor Futamura)
(no subject)
Date: 2011-10-27 02:41 (UTC)I never finished my follow-up on the compiler generator (the result of the third projection, but coded by hand as that seems easier than writing a partial evaluator that handles that case well).
(no subject)
Date: 2011-10-27 05:06 (UTC)