The Orc Programming Language
- Cite this paper as:
- Kitchin D., Quark A., Cook W., Misra J. (2009) The Orc Programming Language. In: Lee D., Lopes A., Poetzsch-Heffter A. (eds) Formal Techniques for Distributed Systems. Lecture Notes in Computer Science, vol 5522. Springer, Berlin, Heidelberg
Orc was originally presented as a process calculus. It has now evolved into a full programming language, which we describe in this paper. The language has the structure and feel of a functional programming language, yet it handles many non-functional aspects effectively, including spawning of concurrent threads, time-outs and mutable state. We first describe the original concurrency combinators of the process calculus. Next we describe a small functional programming language that forms the core language. Then we show how the concurrency combinators of the process calculus and the functional core language are integrated seamlessly. The resulting language and its supporting libraries have proven very effective in describing typical concurrent computations; we demonstrate how several practical concurrent programming problems are easily solved in Orc.