Skip to main content Accessibility help
×
Home
Hostname: page-component-55597f9d44-5zjcf Total loading time: 0.231 Render date: 2022-08-17T17:22:26.394Z Has data issue: true Feature Flags: { "shouldUseShareProductTool": true, "shouldUseHypothesis": true, "isUnsiloEnabled": true, "useRatesEcommerce": false, "useNewApi": true } hasContentIssue false

The interactive Lazy ML system

Published online by Cambridge University Press:  07 November 2008

Lennart Augustsson
Affiliation:
Department of Computer Sciences, Chalmers University of Technology, S-412 96 Goteborg, Sweden (e-mail: augustss@cs.chalmers.se)
Rights & Permissions[Opens in a new window]

Abstract

HTML view is not available for this content. However, as you have access to this content, a full PDF is available via the ‘Save PDF’ action button.

In this paper we describe an implementation of an interactive version of the purely functional programming language Lazy ML (LML). The most remarkable fact about the interactive system is that it is written in a pure functional style using LML, yet the efficiency still compares favourably to other conventional interpretative systems.

We describe how the system is designed, and also the exception mechanism that was added to facilitate the handling of errors in the system.

Type
Research Article
Copyright
Copyright © Cambridge University Press 1993

References

Appel, W. and MacQueen, D. B. 1987. A standard ML compiler. In Proc. Functional Programming Languages and computer Architecture, pp. 301324. Volume 274 of Lecture Notes in Computer Science. Springer-Verlag.CrossRefGoogle Scholar
Augustsson, L. 1985. SMALL, a small interactive functional system. PMG Report 28, Department of Computer Sciences, Chalmers University of Technology (09).Google Scholar
Augustsson, L. 1987. Compiling Lazy functional Languages, Part II. PhD thesis, Department of Computer Science, Chalmers University of Technology (11).Google Scholar
Augustsson, L. 1989. Functional I/O Using System Tokens. PMG Memo 72, Department of Computer Sciences, Chalmers University of Technology.Google Scholar
Augustsson, L. and Johnsson, T. 1989. The Chalmers Lazy-ML compiler. The Computer Journal 32 (2): 127141.CrossRefGoogle Scholar
Hudak, P. et al. 1992 Report on the Functional Programming Language Haskell, Version 1.2 (03).Google Scholar
Johnson, S. C. 1975. Yacc – Yet Another Compiler Compiler. Technical Report 32, Bell Labs. (Also in UNIX Programmer's Manual, Volume 2B.)Google Scholar
Johnsson, T. 1984. Efficient compilation of lazy evaluation. In Proc. SIGPLAN Symp. on Compiler Construction. pp. 5869, Montreal.Google Scholar
Johnsson, T. 1985. Lambda lifting: transforming programs to recursive equations. In Proc. Conf. on Functional Programming Languages and Computer Architecture. Vol 201 of Lecture Notes in Computer Science. Springer-Verlag.Google Scholar
Johnsson, T. 1986. Code generation from G-machine code. In Proc. Workshop on Graph Reduction. vol. 279 of Lecture Notes in Computer Science. Springer-Verlag.Google Scholar
Johnsson, T. 1987. Compiling Lazy Functional Languages. Ph.D. thesis, Department of Computer Sciences, Chalmers University of Technology (02).Google Scholar
Milner, R. 1978. A theory of type polymorphism in programming. J. Computer and Systems Sciences, 17: 348375.CrossRefGoogle Scholar
Milner, R., Tofte, M. and Harper, R. 1990. The Definition of Standard ML. MIT Press.Google Scholar
Reeves, A. C., Harrison, D. A., Sinclair, A. F. and Williamson, P. 1989. Gerald: an exceptional lazy functional programming language. In Davis, K. and J., Hughes (editors), Functional Programming: Proceedings of the 1989 Glasgow Workshop, Fraserburgh, Scotland (08).Google Scholar
Steele, G. L. 1984. Common LISP – the language. Digital Press.Google Scholar
Turner, D. A. 1979. A new implementation technique for applicative languages. Software – Practice and Experience, 9: 3149.CrossRefGoogle Scholar
Turner, D. A. 1985. Miranda: A non-strict language with polymorphic types. In Proc. Conf. on Functional Programming Languages and Computer Architecture, pp. 116.Google Scholar
Submit a response

Discussions

No Discussions have been published for this article.
You have Access
3
Cited by

Save article to Kindle

To save this article to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

The interactive Lazy ML system
Available formats
×

Save article to Dropbox

To save this article to your Dropbox account, please select one or more formats and confirm that you agree to abide by our usage policies. If this is the first time you used this feature, you will be asked to authorise Cambridge Core to connect with your Dropbox account. Find out more about saving content to Dropbox.

The interactive Lazy ML system
Available formats
×

Save article to Google Drive

To save this article to your Google Drive account, please select one or more formats and confirm that you agree to abide by our usage policies. If this is the first time you used this feature, you will be asked to authorise Cambridge Core to connect with your Google Drive account. Find out more about saving content to Google Drive.

The interactive Lazy ML system
Available formats
×
×

Reply to: Submit a response

Please enter your response.

Your details

Please enter a valid email address.

Conflicting interests

Do you have any conflicting interests? *