A syntactic correspondence between context-sensitive calculi and abstract machines

被引:28
作者
Biernacka, Malgorzata
Danvy, Olivier [1 ]
机构
[1] BRICS, Aarhus, Denmark
[2] Univ Aarhus, Dept Comp Sci, Aarhus, Denmark
关键词
refocusing; reduction semantics; contexts; continuations; delimited continuations; defunctionalization; explicit substitutions; environment-based machines; proper tail recursion; stack inspection;
D O I
10.1016/j.tcs.2006.12.028
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We present a systematic construction of environment-based abstract machines from context-sensitive calculi of explicit substitutions, and we illustrate it with ten calculi and machines for applicative order with an abort operation, normal order with generalized reduction and call/cc, the lambda-mu-calculus, delimited continuations, stack inspection, proper tail-recursion, and lazy evaluation. Most of the machines already exist but they have been obtained independently and are only indirectly related to the corresponding calculi. All of the calculi are new and they make it possible directly to reason about the execution of the corresponding machines. (c) 2007 Elsevier B.V. All rights reserved.
引用
收藏
页码:76 / 108
页数:33
相关论文
共 102 条
  • [1] Abadi M., 1991, Journal of Functional Programming, V1, P375, DOI 10.1017/S0956796800000186
  • [2] Abelson H., 1998, HIGHER ORDER SYMBOLI, V11, P7, DOI DOI 10.1023/A:1010051815785
  • [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
    Ager, MS
    Danvy, O
    Midtgaard, J
    [J]. THEORETICAL COMPUTER SCIENCE, 2005, 342 (01) : 149 - 172
  • [5] A functional correspondence between call-by-need evaluators and lazy abstract machines
    Ager, MS
    Danvy, O
    Midtgaard, J
    [J]. INFORMATION PROCESSING LETTERS, 2004, 90 (05) : 223 - 232
  • [6] AGER MS, 2006, THESIS U AARHUS AARH
  • [7] Ariola Z. M., 1995, POPL 95, P233
  • [8] Ariola ZM, 2003, LECT NOTES COMPUT SC, V2719, P871
  • [9] BIERNACKA M, 2006, THESIS U AARHUS AARH
  • [10] BIERNACKA M, IN PRESS ACM T COMPU