Efficient compilation of lazy evaluation

被引:0
|
作者
Johnsson, T [1 ]
机构
[1] Chalmers Univ Technol, Programming Methodol Grp, Dept Comp Sci, S-41296 Gothenburg, Sweden
关键词
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
This paper describes the principles underlying an efficient implementation of a lazy functional language, compiling to code for ordinary computers. It is based on combinator-like graph reduction: the user defined functions are used as rewrite rules in the graph. Each function is compiled into an instruction sequence for an abstract graph reduction machine, called the G-machine, the code reduces a function application graph to its value. The G-machine instructions are then translated into target code. Speed improvements by almost two orders of magnitude over previous lazy evaluators have been measured; we provide some performance figures.
引用
收藏
页码:127 / 138
页数:12
相关论文
共 50 条
  • [1] EFFICIENT COMPILATION OF LAZY EVALUATION
    JOHNSSON, T
    SIGPLAN NOTICES, 1984, 19 (06): : 58 - 69
  • [2] Ef cient compilation of lazy evaluation
    Johnsson, T
    ACM SIGPLAN NOTICES, 2004, 39 (04) : 125 - 126
  • [3] Fast query evaluation with (lazy) control flow compilation
    Tronçon, R
    Janssens, G
    Vandecasteele, H
    LOGIC PROGRAMMING, PROCEEDINGS, 2004, 3132 : 240 - 253
  • [4] Efficient Lazy Evaluation of Rule-Based Programs
    Van Weert, Peter
    IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 2010, 22 (11) : 1521 - 1534
  • [5] Fast frequent querying with lazy control flow compilation
    Troncon, Remko
    Janssens, Gerda
    Demoen, Bart
    Vandecasteele, Henk
    THEORY AND PRACTICE OF LOGIC PROGRAMMING, 2007, 7 : 481 - 498
  • [6] Verifiably Lazy Verified Compilation of Call-by-Need
    Stelle, George
    Stefanovic, Darko
    PROCEEDINGS OF THE 30TH SYMPOSIUM ON IMPLEMENTATION AND APPLICATION OF FUNCTIONAL LANGUAGES (IFL 2018), 2018, : 49 - 58
  • [7] EVALUATION OF ATTEMPTS FOR EFFICIENT ROAD MAINTENANCE - KNOWLEDGE COMPILATION
    Karim, Hawzheen
    BALTIC JOURNAL OF ROAD AND BRIDGE ENGINEERING, 2010, 5 (04): : 229 - 239
  • [8] Architecture aware compilation of quantum circuits via lazy synthesis
    Martiel, Simon
    de Brugiere, Timothee Goubault
    QUANTUM, 2022, 6
  • [9] Lazy Lifelong Planning for Efficient Replanning in Graphs with Expensive Edge Evaluation
    Lim, Jaein
    Srinivasa, Siddhartha
    Tsiotras, Panagiotis
    2022 IEEE/RSJ INTERNATIONAL CONFERENCE ON INTELLIGENT ROBOTS AND SYSTEMS (IROS), 2022, : 8778 - 8783
  • [10] Efficient and Reusable Lazy Sampling
    Sanca, Viktor
    Chrysogelos, Periklis
    Ailamaki, Anastasia
    SIGMOD RECORD, 2024, 53 (01) : 33 - 42