Evaluating call-by-need on the control stack

  • Authors:
  • Stephen Chang;David Van Horn;Matthias Felleisen

  • Affiliations:
  • PLT & PRL, Northeastern University, Boston, MA;PLT & PRL, Northeastern University, Boston, MA;PLT & PRL, Northeastern University, Boston, MA

  • Venue:
  • TFP'10 Proceedings of the 11th international conference on Trends in functional programming
  • Year:
  • 2010

Quantified Score

Hi-index 0.00

Visualization

Abstract

Ariola and Felleisen's call-by-need λ-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.