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 条
  • [21] Efficient Compilation of Lua for the CLR
    Mascarenhas, Fabio
    Lerusalimschy, Roberto
    APPLIED COMPUTING 2008, VOLS 1-3, 2008, : 217 - 221
  • [22] Lazy Evaluation and Delimited Control
    Garcia, Ronald
    Lumsdaine, Andrew
    Sabry, Amr
    ACM SIGPLAN NOTICES, 2009, 44 (01) : 153 - 164
  • [23] Functions and Lazy Evaluation in Prolog
    Rodriguez-Hortala, Juan
    Sanchez-Hernandez, Jaime
    ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2008, 206 : 153 - 174
  • [24] Code optimizations for lazy evaluation
    Bloss, Adrienne
    Hudak, Paul
    Young, Jonathan
    LISP and Symbolic Computation, 1988, 1 (02): : 147 - 164
  • [25] ON THE INTERACTION OF LAZY EVALUATION AND BACKTRACKING
    HANS, W
    LOOGEN, R
    WINKLER, S
    LECTURE NOTES IN COMPUTER SCIENCE, 1992, 631 : 355 - 369
  • [26] LAZY EVALUATION OF GEOMETRIC OBJECTS
    BURTON, FW
    HUNTBACH, MM
    IEEE COMPUTER GRAPHICS AND APPLICATIONS, 1984, 4 (01) : 28 - 33
  • [27] LAZY EVALUATION AND DELIMITED CONTROL
    Garcia, Ronald
    Lumsdaine, Andrew
    Sabry, Amr
    LOGICAL METHODS IN COMPUTER SCIENCE, 2010, 6 (03) : 1 - 37
  • [28] Design patterns for lazy evaluation
    Nguyen, D
    Wong, SB
    SIGCSE 2000: PROCEEDINGS OF THE THIRTY-FIRST SIGCSE TECHNICAL SYMPOSIUM ON COMPUTER SCIENCE EDUCATION, 2000, 32 (01): : 21 - 25
  • [29] LAZY propagation: A junction tree inference algorithm based on lazy evaluation
    Madsen, AL
    Jensen, FV
    ARTIFICIAL INTELLIGENCE, 1999, 113 (1-2) : 203 - 245
  • [30] Sparsification for Fast Optimal Multi-Robot Path Planning in Lazy Compilation Schemes
    Surynek, Pavel
    2021 IEEE/RSJ INTERNATIONAL CONFERENCE ON INTELLIGENT ROBOTS AND SYSTEMS (IROS), 2021, : 7931 - 7938