ACM Home Page
Please provide us with feedback. Feedback
Optimality and inefficiency: what isn't a cost model of the lambda calculus?
Full text PdfPdf (1.00 MB)
Source International Conference on Functional Programming archive
Proceedings of the first ACM SIGPLAN international conference on Functional programming table of contents
Philadelphia, Pennsylvania, United States
Pages: 92 - 101  
Year of Publication: 1996
ISBN:0-89791-770-7
Also published in ...
Authors
Julia L. Lawall  IRISA, Campus Universitaire de Beaulieu, 35042 Rennes Cedex, France
Harry G. Mairson  Computer Science Department, Brandeis University, Waltham, Massachusetts
Sponsor
SIGPLAN: ACM Special Interest Group on Programming Languages
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 2,   Downloads (12 Months): 25,   Citation Count: 11
Additional Information:

abstract   references   cited by   index terms   collaborative colleagues  

Tools and Actions: Request Permissions Request Permissions    Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/232627.232639
What is a DOI?

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
 
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

Collaborative Colleagues:
Julia L. Lawall: colleagues
Harry G. Mairson: colleagues