Evaluating Call-By-Need on the Control Stack
Title | Evaluating Call-By-Need on the Control Stack |
Publication Type | Journal Articles |
Year of Publication | 2010 |
Authors | Chang S, Van Horn D, Felleisen M |
Journal | arXiv:1009.3174 [cs] |
Date Published | 2010/09/16/ |
Keywords | Computer Science - Programming Languages, D.3.1 |
Abstract | Ariola and Felleisen's call-by-need {\lambda}-calculus replaces a variable occurrence with its value at the last possible moment. To support this gradual notion of substitution, function applications-once established-are never discharged. In this paper we show how to translate this notion of reduction into an abstract machine that resolves variable references via the control stack. In particular, the machine uses the static address of a variable occurrence to extract its current value from the dynamic control stack. |
URL | http://arxiv.org/abs/1009.3174 |