Electronic Proceedings in Theoretical Computer Science (Sep 2011)

Tutorial on Online Partial Evaluation

  • William R. Cook,
  • Ralf Lämmel

DOI
https://doi.org/10.4204/EPTCS.66.8
Journal volume & issue
Vol. 66, no. Proc. DSL 2011
pp. 168 – 180

Abstract

Read online

This paper is a short tutorial introduction to online partial evaluation. We show how to write a simple online partial evaluator for a simple, pure, first-order, functional programming language. In particular, we show that the partial evaluator can be derived as a variation on a compositionally defined interpreter. We demonstrate the use of the resulting partial evaluator for program optimization in the context of model-driven development.