Skip to main content

Towards an Operational Semantics for a Parallel Non-strict Functional Language

  • Conference paper
  • First Online:
Implementation of Functional Languages (IFL 1998)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 1595))

Included in the following conference series:

Abstract

Parallel programs must describe both computation and coordination, i.e. what to compute and how to organise the computation. In functional languages equational reasoning is often used to reason about computation. In contrast, there have been many different coordination constructs for functional languages, and far less work on reasoning about coordination.

We present an initial semantics for GpH, a small extension of the Haskell language, that allows us to reason about coordination. In particular we can reason about work, average parallelism and runtime. The semantics captures the notions of limited (physical) resources, the preservation of sharing, and speculative evaluation. We show a consistency result with Launchbury’s well-known lazy semantics.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. J. C. Peterson, K. Hammond, L. Augustsson, B. Boutel, F. W. Burton, J. Fasel, A. D. Gordon, R. J. M. Hughes, P. Hudak, T. Johnsson, M. P. Jones, E. Meijer, S. L. Peyton Jones, A. Reid, and P. L. Wadler. Report on the Non-Strict Functional Language, Haskell, Version 1.4, Yale University, 1997. Available at http://haskell.org.

  2. S. Abramsky. The Lazy Lambda Calculus. In D.A. Turner, editor, Declarative Programming. Addison-Wesley, 1990.

    Google Scholar 

  3. G.E. Blelloch, S. Chatterjee, J.C. Hardwick, J. Spielstein, and M. Zagha. Implementation of a portable nested data-parallel language. In Proc. Fourth ACM Conference on Principles & Practice of Parallel Programming (PPoPP’ 93), pages 102–111. San Diego, CA, May 1993.

    Google Scholar 

  4. S. Breitinger, R. Loogen, Y. Ortega-Mallén, and R. Peña. The Eden Coordination Model for Distributed Memory Systems. In Proc. HIPS’ 97-High-Level Parallel Programming Models and Supportive Environments. IEEE Press, 1997.

    Google Scholar 

  5. M.M.T. Chakravarty, Y. Guo, M. Köhler, and H.C.R. Lock. Goffin: Higher-Order Functions Meet Concurrent Constraints. Science of Computer Programming, 30(1–2):157–199, 1998.

    Article  MATH  MathSciNet  Google Scholar 

  6. D. L. Eager, J. Zahorjan, and E.D. Lazowska. Speedup Versus Efficiency in Parallel Systems. IEEE Transactions on Computers, 38(3):408–423, March 1989.

    Article  Google Scholar 

  7. J. Feo, P. Miller, S. Skedziewlewski, S. Denton, and C. Soloman. Sisal 90. In Proc. HPFC’ 95 — High Performance Functional Computing, pages 35–47, April 1995. Denver, CO.

    Google Scholar 

  8. R. Halstead. MultiLisp: a Language for Concurrent Symbolic Computation. ACM Transactions on Programming Languages and Systems, 7(4):501–538, 1998.

    Article  Google Scholar 

  9. M. Hennessy. Algebraic Theory of Processes. MIT Press, 1988.

    Google Scholar 

  10. M. Hennessy. The Semantics of Programming Languages: An Elementary Introduction using Structural Operational Semantics. Wiley, 1990.

    Google Scholar 

  11. J.M. Kewley and K. Glynn. Evaluation Annotations for Hope+. In Proc. 1989 Glasgow Workshop on Functional Programming, pages 329–337, Springer-Verlag WiCS, August 1989.

    Google Scholar 

  12. J. Launchbury. A Natural Semantics for Lazy Evaluation. In Proc. 20th. ACM Symposium on Principles of Programming Languages (POPL’ 93), pages 144–154, Charleston, South Carolina, January 1993.

    Google Scholar 

  13. R. Mirani and P. Hudak. First-Class Schedules and Virtual Maps. In Proc. Conference on Functional Programming and Computer Architecture (FPCA’ 95), pages 78–85, June 1995.

    Google Scholar 

  14. A.J.R.G. Milner. Communication and Concurrency. Prentice-Hall International, 1989.

    Google Scholar 

  15. G. Michaelson and N. Scaife. Prototyping a Parallel Vision System in Standard ML. Journal of Functional Programming, 5(3):345–382, 1995.

    Article  Google Scholar 

  16. R.S. Nikhil, Arvind, and J. Hicks. pH Language Proposal. Technical report, DEC Cambridge Research Lab, 1993.

    Google Scholar 

  17. E.G.J.M.H. Nöcker, J.E.W. Smetsers, M.C.J.D. van Eekelen, and M.J. Plasmeijer. Concurrent Clean. In Proc. PARLE’ 91 — Parallel Architectures and Reduction Languages Europe, volume 505/506 of LNCS, pages 202–220. Springer Verlag, 1991.

    Google Scholar 

  18. G.D. Plotkin. Structured Approach to Operational Semantics. Technical Report DAIMI FN-19, Computer Science Department, Aarhus University, 1981.

    Google Scholar 

  19. P.W. Trinder, K. Hammond, J.S. Mattson Jr., A.S. Partridge, and S.L. Peyton Jones. GUM: a Portable Parallel Implementation of Haskell. In Proc. 1996 ACM Conference on Programming Language Design and Implementation (PLDI’ 96), Philadelphia, pages 78–88, May 1996.

    Google Scholar 

  20. P.W. Trinder, K. Hammond, H.-W. Loidl, and S.L. Peyton Jones. Algorithm + Strategy = Parallelism. Journal of Functional Programming, 8(1):23–60, January 1998.

    Article  MATH  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 1999 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Hall, J.G., Baker-Finch, C., Trinder, P., King, D.J. (1999). Towards an Operational Semantics for a Parallel Non-strict Functional Language. In: Hammond, K., Davie, T., Clack, C. (eds) Implementation of Functional Languages. IFL 1998. Lecture Notes in Computer Science, vol 1595. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-48515-5_4

Download citation

  • DOI: https://doi.org/10.1007/3-540-48515-5_4

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-66229-7

  • Online ISBN: 978-3-540-48515-5

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics