An algorithm for optimal lambda calculus reduction
暂无分享,去创建一个
We present an algorithm for lambda expression reduction that avoids any copying that could later cause duplication of work. It is optimal in the sense defined by Lévy. The basis of the algorithm is a graphical representation of the kinds of commonality that can arise from substitutions; the idea can be adapted to represent other kinds of expressions besides lambda expressions. The algorithm is also well suited to parallel implementations, consisting of a fixed set of local graph rewrite rules.
[1] John Staples,et al. Two-level expression representation for faster evaluation , 1982, Graph-Grammars and Their Application to Computer Science.
[2] Marko C. J. D. van Eekelen,et al. LEAN: an intermediate language based on graph rewriting , 1989, Parallel Comput..
[3] Henk Barendregt,et al. The Lambda Calculus: Its Syntax and Semantics , 1985 .
[4] D. A. Turner,et al. A new implementation technique for applicative languages , 1979, Softw. Pract. Exp..