Abstract
Session types provide a typing discipline for message-passing systems. However, most session type approaches assume an ideal world: one in which everything is reliable and without failures. Yet this is in stark contrast with distributed systems in the real world. To address this limitation, we introduce Teatrino, a code generation toolchain that utilises asynchronous multiparty session types (MPST) with crash-stop semantics to support failure handling protocols. We augment asynchronous MPST and processes with crash handling branches. Our approach requires no user-level syntax extensions for global types and features a formalisation of global semantics, which captures complex behaviours induced by crashed/crash handling processes. The sound and complete correspondence between global and local type semantics guarantees deadlock-freedom, protocol conformance, and liveness of typed processes in the presence of crashes. Our theory is implemented in the toolchain Teatrino, which provides correctness by construction. Teatrino extends the Scribble multiparty protocol language to generate protocol-conforming Scala code, using the Effpi concurrent programming library. In Teatrino, both Scribble and Effpi are extended to support crash-stop behaviour. We demonstrate the feasibility of our methodology and evaluate Teatrino with examples extended from both session type and distributed systems literature.
Original language | English |
---|---|
Pages | 1:1-1:30 |
Number of pages | 30 |
DOIs | |
Publication status | Published - 11 Jul 2023 |
Event | 37th European Conference on Object-Oriented Programming - Seattle, United States Duration: 17 Jul 2023 → 21 Jul 2023 https://2023.ecoop.org |
Conference
Conference | 37th European Conference on Object-Oriented Programming |
---|---|
Abbreviated title | ECOOP23 |
Country/Territory | United States |
City | Seattle |
Period | 17/07/23 → 21/07/23 |
Internet address |
Keywords
- Session types
- Concurrency
- Failure handling
- Code generation
- Scala
Fingerprint
Dive into the research topics of 'Designing asynchronous multiparty protocols with crash-stop failures'. Together they form a unique fingerprint.Datasets
-
Designing Asynchronous Multiparty Protocols with Crash-Stop Failures (Artifact)
Barwell, A. D. (Creator), Hou, P. (Creator), Yoshida, N. (Creator) & Zhou, F. (Creator), Zenodo, 2023
Dataset