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 条
  • [31] Strong Call-by-Value is Reasonable, Implosively
    Accattoli, Beniamino
    Condoluci, Andrea
    Coen, Claudio Sacerdoti
    2021 36TH ANNUAL ACM/IEEE SYMPOSIUM ON LOGIC IN COMPUTER SCIENCE (LICS), 2021,
  • [32] CONSTRUCTING CALL-BY-VALUE CONTINUATION SEMANTICS
    SETHI, R
    TANG, A
    JOURNAL OF THE ACM, 1980, 27 (03) : 580 - 597
  • [33] Extensional Universal Types for Call-by-Value
    Asada, Kazuyuki
    PROGRAMMING LANGUAGES AND SYSTEMS, PROCEEDINGS, 2008, 5356 : 122 - 137
  • [34] Linear dependent types in a call-by-value scenario
    Dal Lago, Ugo
    Petit, Barbara
    SCIENCE OF COMPUTER PROGRAMMING, 2014, 84 : 77 - 100
  • [35] Call-by-value λ-graph rewriting without rewriting
    Fernández, M
    Mackie, I
    GRAPH TRANSFORMATIONS, PROCEEDINGS, 2002, 2505 : 75 - 89
  • [36] A Semantical and Operational Account of Call-by-Value Solvability
    Carraro, Alberto
    Guerrieri, Giulio
    FOUNDATIONS OF SOFTWARE SCIENCE AND COMPUTATION STRUCTURES, 2014, 8412 : 103 - 118
  • [37] THE LAZY CALL-BY-VALUE LAMBDA-CALCULUS
    EGIDI, L
    HONSELL, F
    DELLAROCCA, SR
    LECTURE NOTES IN COMPUTER SCIENCE, 1991, 520 : 161 - 169
  • [38] A hoare logic for call-by-value functional programs
    Regis-Gianas, Yann
    Pottier, Francois
    MATHEMATICS OF PROGRAM CONSTRUCTION, PROCEEDINGS, 2008, 5133 : 305 - +
  • [39] On Probabilistic Applicative Bisimulation and Call-by-Value λ-Calculi
    Crubille, Raphaeele
    Dal Lago, Ugo
    PROGRAMMING LANGUAGES AND SYSTEMS, 2014, 8410 : 209 - 228
  • [40] Call-by-name and call-by-value in normal modal logic
    Kakutani, Yoshihiko
    PROGRAMMING LANGUAGES AND SYSTEMS, PROCEEDINGS, 2007, 4807 : 399 - 414