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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
References
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.
S. Abramsky. The Lazy Lambda Calculus. In D.A. Turner, editor, Declarative Programming. Addison-Wesley, 1990.
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.
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.
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.
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.
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.
R. Halstead. MultiLisp: a Language for Concurrent Symbolic Computation. ACM Transactions on Programming Languages and Systems, 7(4):501–538, 1998.
M. Hennessy. Algebraic Theory of Processes. MIT Press, 1988.
M. Hennessy. The Semantics of Programming Languages: An Elementary Introduction using Structural Operational Semantics. Wiley, 1990.
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.
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.
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.
A.J.R.G. Milner. Communication and Concurrency. Prentice-Hall International, 1989.
G. Michaelson and N. Scaife. Prototyping a Parallel Vision System in Standard ML. Journal of Functional Programming, 5(3):345–382, 1995.
R.S. Nikhil, Arvind, and J. Hicks. pH Language Proposal. Technical report, DEC Cambridge Research Lab, 1993.
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.
G.D. Plotkin. Structured Approach to Operational Semantics. Technical Report DAIMI FN-19, Computer Science Department, Aarhus University, 1981.
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.
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.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights 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