Mailbox Types for Unordered Interactions

01/12/2018
by   Ugo de'Liguoro, et al.
0

We propose a type system for reasoning on protocol conformance and deadlock freedom in networks of processes that communicate through unordered mailboxes. We model these networks in the mailbox calculus, a mild extension of the asynchronous π-calculus with first-class mailboxes and selective input. The calculus subsumes the actor model and allows us to analyze networks with dynamic topologies and varying number of processes possibly mixing different concurrency abstractions. Well-typed processes are deadlock free and never fail because of unexpected messages. For a non-trivial class of them, junk freedom is also guaranteed. We illustrate the expressiveness of the calculus and of the type system by encoding instances of non-uniform, concurrent objects, binary sessions extended with joins and forks, and some known actor benchmarks.

READ FULL TEXT
research
03/24/2022

Asynchronous Sessions with Input Races

We propose a calculus for asynchronous multiparty sessions where input c...
research
04/30/2021

Non-Deterministic Functions as Non-Deterministic Processes (Extended Version)

We study encodings of the lambda-calculus into the pi-calculus in the un...
research
03/26/2021

Prioritise the Best Variation

Binary session types guarantee communication safety and session fidelity...
research
10/01/2018

Comparing Type Systems for Deadlock-Freedom

Communication-centric software systems exhibit non trivial forms of conc...
research
06/22/2023

Special Delivery: Programming with Mailbox Types (Extended Version)

The asynchronous and unidirectional communication model supported by mai...
research
06/16/2022

Recursion does not always help

We show that, under mild assumptions, adding recursion does not increase...
research
07/20/2023

An Exceptional Actor System (Functional Pearl)

The Glasgow Haskell Compiler is known for its feature-laden runtime syst...

Please sign up or login with your details

Forgot password? Click here to reset