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 条
  • [1] A reflection on call-by-value
    Sabry, A
    Wadler, P
    ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 1997, 19 (06): : 916 - 941
  • [2] Call-by-value solvability
    Paolini, Luca
    Ronchi Della Rocca, Simona
    Theoretical Informatics and Applications, 1999, 33 (06): : 507 - 534
  • [3] Call-by-value games
    Abramsky, S
    McCusker, G
    COMPUTER SCIENCE LOGIC, 1998, 1414 : 1 - 17
  • [4] Open Call-by-Value
    Accattoli, Beniamino
    Guerrieri, Giulio
    PROGRAMMING LANGUAGES AND SYSTEMS, APLAS 2016, 2016, 10017 : 206 - 226
  • [5] Call-by-value solvability
    Paolini, L
    Della Rocca, SR
    RAIRO-INFORMATIQUE THEORIQUE ET APPLICATIONS-THEORETICAL INFORMATICS AND APPLICATIONS, 1999, 33 (06): : 507 - 534
  • [6] ALGEBRAIC SEMANTICS OF CALL-BY-VALUE
    ARNOLD, A
    RAIRO-INFORMATIQUE THEORIQUE-THEORETICAL COMPUTER SCIENCE, 1978, 12 (02): : 69 - 82
  • [7] Call-by-Value Solvability, Revisited
    Accattoli, Beniamino
    Paolini, Luca
    FUNCTIONAL AND LOGIC PROGRAMMING (FLOPS 2012), 2012, 7294 : 4 - 16
  • [8] Lazy call-by-value evaluation
    Brassel, Bernd
    Fischer, Sebastian
    Hanus, Michael
    Huch, Frank
    Vidal, German
    ACM SIGPLAN NOTICES, 2007, 42 (09) : 265 - 276
  • [9] Lazy Call-By-Value Evaluation
    Brassel, Bernd
    Fischer, Sebastian
    Hanus, Michael
    Huch, Frank
    Vidal, German
    ICFP'07 PROCEEDINGS OF THE 2007 ACM SIGPLAN INTERNATIONAL CONFERENCE ON FUNCTIONAL PROGRAMMING, 2007, : 265 - 276
  • [10] Call-by-Need Is Clairvoyant Call-by-Value
    Hackett, Jennifer
    Hutton, Graham
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2019, 3 (ICFP):