skip to main content
article
Free Access

The Series macro package

Published:01 July 1989Publication History
Skip Abstract Section

Abstract

The benefits of programming in a functional style are well known. Algorithms that are expressed as compositions of functions operating on series/vectors/streams of data elements are much easier to understand and modify than equivalent algorithms expressed as loops. Unfortunately, many programmers hesitate to use series expressions. In part, this is due to the fact that series expressions are typically implemented very inefficiently.A portable Common Lisp macro package (called Series) has been implemented that can evaluate a wide class of series expressions very efficiently by transforming them into iterative loops. When using this class of series expressions, programmers can obtain the advantages of expressing computations as series expressions without incurring any runtime overhead.

References

  1. [1] A. Aho, J. Hopcraft, and J. Ullman, The Design and Analysis of Computer Algorithms, Addison-Wesley, Reading MA, 1974. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. [2] J. Orwant, Support of Obviously Synchronizable Series Expressions in Pascal, MIT/AI/WP-312, September 1988.Google ScholarGoogle Scholar
  3. [3] J. Waters, "A Method for Analyzing Loop Programs", IEEE Trans. on Software Engineering, 5(3):237-247, May 1979.Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. [4] R. Waters, "Using Obviously Synchronizable Series Expressions Instead of Loops" Proc. 1988 International Conference on Computer Languages, 338-346, Miami FL, IEEE Computer Society press, October 1988.Google ScholarGoogle Scholar
  5. [5] R. Waters, Optimization of Series Expressions: Part I: User's Manual for the Series Macro Package, MIT/AIM-1083, January 1989.Google ScholarGoogle Scholar
  6. [6] R. Waters, Optimization of Series Expressions: Part II: Overview of the Theory and Implementation, MIT/AIM-1083, January 1989. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. The Series macro package

        Recommendations

        Comments

        Login options

        Check if you have access through your login credentials or your institution to get full access on this article.

        Sign in

        Full Access

        • Published in

          cover image ACM SIGPLAN Lisp Pointers
          ACM SIGPLAN Lisp Pointers  Volume III, Issue 1
          July-Dec. 1989/Jan.-March 1990
          52 pages
          ISSN:1045-3563
          DOI:10.1145/121999
          Issue’s Table of Contents

          Copyright © 1989 Author

          Publisher

          Association for Computing Machinery

          New York, NY, United States

          Publication History

          • Published: 1 July 1989

          Check for updates

          Qualifiers

          • article

        PDF Format

        View or Download as a PDF file.

        PDF

        eReader

        View online with eReader.

        eReader