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 条
  • [41] Efficient Compilation of Regular Path Queries
    Tetzel, Frank
    Lehner, Wolfgang
    Kasperovics, Romans
    Datenbank-Spektrum, 2020, 20 (03) : 243 - 259
  • [42] Direct illumination with lazy visibility evaluation
    Hart, D
    Dutré, P
    Greenberg, DP
    SIGGRAPH 99 CONFERENCE PROCEEDINGS, 1999, : 147 - 154
  • [43] CODE IMPROVEMENT VIA LAZY EVALUATION
    HANSON, DR
    INFORMATION PROCESSING LETTERS, 1980, 11 (4-5) : 163 - 167
  • [44] AN INTERPRETER WITH LAZY EVALUATION FOR PROLOG WITH FUNCTIONS
    LUTTRINGHAUS, S
    LECTURE NOTES IN COMPUTER SCIENCE, 1989, 385 : 199 - 225
  • [45] An operational semantics of sharing in lazy evaluation
    Seaman, J
    Iyer, SP
    SCIENCE OF COMPUTER PROGRAMMING, 1996, 27 (03) : 289 - 322
  • [46] 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
  • [47] Lazy Evaluation of Transactions in Database Systems
    Faleiro, Jose M.
    Thomson, Alexander
    Abadi, Daniel J.
    SIGMOD'14: PROCEEDINGS OF THE 2014 ACM SIGMOD INTERNATIONAL CONFERENCE ON MANAGEMENT OF DATA, 2014, : 15 - 26
  • [48] SUBLIST ASSERTIONS FOR LISTLESS AND LAZY EVALUATION
    JAYARAMAN, B
    COMPUTER LANGUAGES, 1992, 17 (02): : 133 - 146
  • [49] The lazy evaluation of infinitesimal logic expressions
    Agarwal, R
    Wadge, WW
    PLC '05: Proceedings of the 2005 International Conference on Programming Languages and Compilers, 2005, : 3 - 7
  • [50] A TECHNIQUE FOR DOING LAZY EVALUATION IN LOGIC
    NARAIN, S
    JOURNAL OF LOGIC PROGRAMMING, 1986, 3 (03): : 259 - 276