A reflection on call-by-value

被引:5
|
作者
Sabry, A
Wadler, P
机构
[1] CHALMERS UNIV TECHNOL, S-41296 GOTHENBURG, SWEDEN
[2] UNIV GLASGOW, GLASGOW G12 8QQ, LANARK, SCOTLAND
关键词
D O I
10.1145/232629.232631
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
A number of compilers exploit the following strategy: translate a term to continuation-passing style (CPS) and optimize the resulting term using a sequence of reductions. Recent work suggests that an alternative strategy is superior: optimize directly in an extended source calculus. We suggest that the appropriate relation between the source and target calculi may be captured by a special case of a Galois connection known as a reflection. Previous work has focused on the weaker notion of an equational correspondence, which is based on equality rather than reduction. We show that Moggi's monad translation and Plotkin's CPS translation can both be regarded as reflections, and thereby strengthen a number of results in the literature.
引用
收藏
页码:13 / 24
页数:12
相关论文
共 50 条
  • [21] Proof nets and the call-by-value λ-calculus
    Accattoli, Beniamino
    THEORETICAL COMPUTER SCIENCE, 2015, 606 : 2 - 24
  • [22] CALL-BY-VALUE TERMINATION IN THE UNTYPED λ-CALCULUS
    Jones, Neil D.
    Bohr, Nina
    LOGICAL METHODS IN COMPUTER SCIENCE, 2008, 4 (01)
  • [23] Game Semantics for Call-by-Value Polymorphism
    Laird, James
    AUTOMATA, LANGUAGES AND PROGRAMMING, PT II, 2010, 6199 : 187 - 198
  • [24] λμ-Calculus and duality:: Call-by-name and call-by-value
    Rocheteau, J
    TERM REWRITING AND APPLICATIONS, PROCEEDINGS, 2005, 3467 : 204 - 218
  • [25] Strong Call-by-Value and Multi Types
    Accattoli, Beniamino
    Guerrieri, Giulio
    Leberle, Maico
    THEORETICAL ASPECTS OF COMPUTING, ICTAC 2023, 2023, 14446 : 196 - 215
  • [26] A relational account of call-by-value sequentiality
    Riecke, JG
    Sandholm, A
    12TH ANNUAL IEEE SYMPOSIUM ON LOGIC IN COMPUTER SCIENCE, PROCEEDINGS, 1997, : 258 - 267
  • [27] Mixin modules in a call-by-value setting
    Hirschowitz, T
    Leroy, X
    PROGRAMMING LANGUAGES AND SYSTEMS, PROCEEDINGS, 2002, 2305 : 6 - 20
  • [28] Call-by-value is dual to call-by-name - Reloaded
    Wadler, P
    TERM REWRITING AND APPLICATIONS, PROCEEDINGS, 2005, 3467 : 185 - 203
  • [29] Call-by-value, call-by-name and the logic of values
    Stark, RF
    COMPUTER SCIENCE LOGIC, 1997, 1258 : 431 - 445
  • [30] A relational account of call-by-value sequentiality
    Riecke, JG
    Sandholm, A
    INFORMATION AND COMPUTATION, 2002, 179 (02) : 296 - 331