A concrete framework for environment machines

被引:33
作者
Biernacka, Malgorzata
Brics, Olivier Danvy [1 ]
机构
[1] Univ Aarhus, Dept Comp Sci, DK-8200 Aarhus, Denmark
关键词
abstract machines; closures; derivation; explicit substitutions;
D O I
10.1145/1297658.1297664
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We materialize the common understanding that calculi with explicit substitutions provide an intermediate step between an abstract specification of substitution in the lambda-calculus and its concrete implementations. To this end, we go back to Curien's original calculus of closures (an early calculus with explicit substitutions), we extend it minimally so that it can also express one-step reduction strategies, and we methodically derive a series of environment machines from the specification of two one-step reduction strategies for the lambda-calculus: normal order and applicative order. The derivation extends Danvy and Nielsen's refocusing-based construction of abstract machines with two new steps: one for coalescing two successive transitions into one, and the other for unfolding a closure into a term and an environment in the resulting abstract machine. The resulting environment machines include both the Krivine machine and the original version of Krivine's machine, Felleisen et al.' s CEK machine, and Leroy's Zinc abstract machine.
引用
收藏
页数:30
相关论文
共 45 条
[1]  
Abadi M., 1991, Journal of Functional Programming, V1, P375, DOI 10.1017/S0956796800000186
[2]  
Ager M. S., 2003, RS0314 BRICS DAIMI U
[3]  
Ager Mads Sig, 2003, P 5 ACM SIGPLAN INT, P8, DOI DOI 10.1145/888251.888254
[4]   A functional correspondence between monadic evaluators and abstract machines for languages with computational effects [J].
Ager, MS ;
Danvy, O ;
Midtgaard, J .
THEORETICAL COMPUTER SCIENCE, 2005, 342 (01) :149-172
[5]   A functional correspondence between call-by-need evaluators and lazy abstract machines [J].
Ager, MS ;
Danvy, O ;
Midtgaard, J .
INFORMATION PROCESSING LETTERS, 2004, 90 (05) :223-232
[6]  
[Anonymous], 1972, Proc. of the ACM annual conference-Volume 2, DOI DOI 10.1145/800194.805852
[7]   A syntactic correspondence between context-sensitive calculi and abstract machines [J].
Biernacka, Malgorzata ;
Danvy, Olivier .
THEORETICAL COMPUTER SCIENCE, 2007, 375 (1-3) :76-108
[8]   AN OPERATIONAL FOUNDATION FOR DELIMITED CONTINUATIONS IN THE CPS HIERARCHY [J].
Biernacka, Malgorzata ;
Biernacki, Dariusz ;
Danvy, Olivier .
LOGICAL METHODS IN COMPUTER SCIENCE, 2005, 1 (02)
[9]  
Church A., 1941, CALCULI LAMBDA CONVE
[10]  
Cregut Pierre, 2007, Higher-Order and Symbolic Computation, V20, P209, DOI 10.1007/s10990-007-9015-z