ACM Home Page
Please provide us with feedback. Feedback
The anatomy of a loop: a story of scope and control
Full text PdfPdf (189 KB)
Source International Conference on Functional Programming archive
Proceedings of the tenth ACM SIGPLAN international conference on Functional programming table of contents
Tallinn, Estonia
SESSION: Session 1 table of contents
Pages: 2 - 14  
Year of Publication: 2005
ISBN:1-59593-064-7
Also published in ...
Author
Olin Shivers  Georgia Institute of Technology
Sponsors
ACM: Association for Computing Machinery
SIGPLAN: ACM Special Interest Group on Programming Languages
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 3,   Downloads (12 Months): 68,   Citation Count: 4
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/1086365.1086368
What is a DOI?

ABSTRACT

Writing loops with tail-recursive function calls is the equivalent of writing them with goto's. Given that loop packages for Lisp-family languages have been around for over 20 years, it is striking that none have had much success in the Scheme world. I suggest the reason is that Scheme forces us to be precise about the scoping of the various variables introduced by our loop forms, something previous attempts to design ambitious loop forms have not managed to do.I present the design of a loop package for Scheme with a well-defined and natural scoping rule, based on a notion of control dominance that generalizes the standard lexical-scope rule of the λ-calculus. The new construct is powerful, clear, modular and extensible.The loop language is defined in terms of an underlying language for expressing control-flow graphs. This language itself has interesting properties as an intermediate representation.


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.

 
1
 
2
Jonathan Amsterdam. Don't Loop, Iterate. Working Paper 324, MIT AI Lab.
3
 
4
Ryan Culpepper, Scott Owens and Matthew Flatt. Syntactic abstraction in component interfaces. In Proceedings of the Fourth International Conference on Generative Programming and Component Engineering (GPCE'05), September 2005, Tallinn, Estonia.
5
 
6
Sebastian Egner. Eager comprehensions in Scheme: The design of SRFI-42. In Proceedings of the ACM SIGPLAN 2005 Workshop on Scheme and Functional Programming (Scheme 2005), September 2005, Tallinn, Estonia. See also http://srfi.schemers.org/srfi-42/.
 
7
 
8
Erik Hilsdale and Daniel P. Friedman. Writing macros in continuation-passing style. In Proceedings of the Workshop on Scheme and Functional Programming (Scheme 2000), pages 53--61, Montreal, Canada September 2000. Rice Technical Report 00-368. September 2000.
9
10
 
11
Alan J. Perlis. Epigrams on programming. Sigplan 17 #9, September 1980.
 
12
Kent M. Pitman. Common Lisp Issue LOOP-INITFORMENVIRONMENT: PARTIAL-INTERLEAVING-VAGUE. March 1991. http://www.lisp.org/HyperSpec/Issues/iss222-writeup.html
 
13
 
14
 
15
 
16
 
17
 
18
 
19
Philip Wadler. List comprehensions (Chapter 7). In The Implementation of Functional Programming Languages, Editor Simon L. Peyton Jones, Prentice Hall, 1987.
 
20
Richard C.Waters. LetS: An expressional loop notation. AI Memo 680A, MIT AI Lab, February 1983.
 
21
Richard C. Waters. Obviously synchronizable series expressions: Part I: User's manual for the OSS macro package. AI Memo 958A, MIT AI Lab, March 1988.
 
22
Richard C. Waters. Obviously synchronizable series expressions: Part II: Overview of the theory and implementation. AI Memo 959A, MIT AI Lab, March 1988.
23