Actors with Multi-Headed Message Receive Patterns
- Martin Sulzmann,
- Edmund Soon Lee Lam,
- Peter Van Weert
Research Output:
Journal Article or Conference Article in Journal
Conference article
Peer-reviewPublication Information
Output type
Research Output:
Journal Article or Conference Article in Journal
Conference article
Peer-reviewOriginal language
EnglishPages from-to (Number of pages)
Pages 315-330Journal (Volume, Issue Number)
Lecture Notes in Computer SciencePublication milestones
- Published - 2008
Publication status
Published - 2008
ISSN
0302-9743Publication IDs
- Scopus: 45749126099
Abstract
The actor model provides high-level concurrency abstractions to coordinate simultaneous computations by message passing. Languages implementing the actor model such as Erlang commonly only support single-headed pattern matching over received messages. We propose and design an extension of Erlang style actors with receive clauses containing multi-headed message patterns. Patterns may be non-linear and constrained by guards. We provide a number of examples to show the usefulness of the extension. We also explore the design space for multi-headed message matching semantics, for example first-match and rule priority-match semantics. The various semantics are inspired by the multi-set constraint matching semantics found in Constraint Handling Rules. This provides us with a formal model to study actors with multi-headed message receive patterns. The system can be implemented efficiently and we have built a prototype as a library-extension to Haskell.
Publication metrics
PlumX
Citations
18
Captures
12
Related Event
Title
10th international conference on Coordination Models and Languages (Coordination'08)
Event type
ConferenceDate
04/06/2008 - 06/06/2008Location
OsloNorway
