在控制堆栈上评估按需调用
Evaluating Call-By-Need on the Control Stack
摘要:
Ariola和Felleisen的按需调用λ演算将变量的出现替换为它在最后可能时刻的值。为了支持这种逐渐替代的概念,函数应用程序一旦建立就永远不会被释放。在本文中,我们将展示如何将这个概念的减少到一个抽象的机器,解决变量引用通过控制栈。特别是,机器使用变量出现的静态地址从动态控制堆栈中提取其当前值。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。