|
ABSTRACT
We investigate the computational efficiency of the sharing graphs of Lamping [Lam90], Gonthier, Abadi, and Lévy [GAL92], and Asperti [Asp94], designed to effect so-called optimal evaluation, with the goal of reconciling optimality, efficiency, and the clarification of reasonable cost models for the λ-calculus. Do these graphs suggest reasonable cost models for the λ-calculus? If they are optimal, are they efficient?We present a brief survey of these optimal evaluators, identifying their common characteristics, as well as their shared failures. We give a lower bound on the efficiency of sharing graphs by identifying a class of λ-terms that are normalizable in Θ(n) time, and require Θ(n) "fan interactions," but require Ω(2n) bookkeeping steps. For [GAL92], we analyze this anomaly in terms of the dynamic maintenance of deBruijn indices for intermediate terms. We give another lower bound showing that sharing graphs can do Ω(2n) work (via fan interactions) on graphs that have no β-redexes. Finally, we criticize a proposed cost model for λ-calculus given by Frandsen and Sturtivant [FS91], showing by example that the model does not take account of the size of intermediate forms. Our example is a term requiring Θ(2n) steps while having proposed cost Θ(n). We propose some cost models that both reflect this parameter, and simultaneously reconcile key concepts from optimal reduction.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
| |
Asp94
|
Andrea Asperti. Linear logic, comonads, and optimal reductions. Unpublished manuscript.
|
| |
Asp95
|
|
 |
Asp96
|
|
| |
Bar84
|
Hendrik Barendregt. The Lambda Calculus: Its Syntax and Semantics. North Holland, 1984.
|
| |
vEB90
|
Peter van Erode Boas. Machi'~e models and simulation. Handbook of Theoretical Computer Science, volume A, pp. 1-66. North Holland, 1990.
|
| |
Chu41
|
Alonzo Church. The Cah:uli of Lambdaconversion. Princeton University Press, 1941.
|
 |
Fie90
|
|
| |
FS91
|
|
| |
Gir88
|
Jean-Yves Girard. Geometry of interaction i: interpretation of System F. Logic Colloquim 1988, pp. 221-260. Elsevier (North Holland), 1989.
|
 |
GAL92
|
Georges Gonthier , Martín Abadi , Jean-Jacques Lévy, The geometry of optimal lambda reduction, Proceedings of the 19th ACM SIGPLAN-SIGACT symposium on Principles of programming languages, p.15-26, January 19-22, 1992, Albuquerque, New Mexico, United States
[doi> 10.1145/143165.143172]
|
| |
Gue95
|
Stefano Guerrini. Sharing-graphs, sharingmorphisms, and (optimal))~-graph reductions (draft). Unpublished manuscript. June 16, 1995.
|
 |
Hug82
|
|
| |
Kat90
|
Vinod Kathail. Optimal interpreters for Iambdacalculus based functional languages. Ph.D. Thesis, MIT, May 1990.
|
 |
Lam90
|
|
| |
Lévy78
|
Jean-Jacques L~vy. Rdductio~s correcies et optimales dans le lambda-caIcuI. Th~se d'Etat, Universit~ Paris 7, 1978.
|
| |
Lévy80
|
Jean-Jacques L~vy. Optimal reductions in the lambda-calcuIus. To H. B. Curry: Essays in Combinatory Logic, Lambda Calculus and Formalism, (Jonathan P. Seldin and J. Roger Hindley, editors), pp. 159-191. Academic Press, 1980.
|
| |
HM94
|
Harry G. Mairson and Fritz Henglein. The complexity of type inference for higher-order typed lambda calculi. Journal of Functional Programming 4:4 (October 1994), pp. 435-478.
|
 |
Mac95
|
|
| |
PJ87
|
Simon Peyton-Jones. The Implementation of Functional Programming Languages. Prentice-HaU~ 1987.
|
| |
Tur79
|
David A. Turner. New implementation techniques for applicative languages. Software Practice and Experience 9 (1979), pp. 31-49.
|
CITED BY 11
|
|
|
|
|
Andrea Asperti , Paolo Coppola , Simone Martini, (Optimal) duplication is not elementary recursive, Proceedings of the 27th ACM SIGPLAN-SIGACT symposium on Principles of programming languages, p.96-107, January 19-21, 2000, Boston, MA, USA
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|