Papers for

protocol designers

Papers whose findings have a practical use for this group, as judged from the abstract. Open a paper to read what it means in practice.

Session types can fully model complex asynchronous processes

On the Expressiveness of Asynchronous Processes with Nested Session Types

Abstract: Session types are a type-based approach to correct message-passing programs, where types specify protocols for channels and type checking guarantees communication correctness. Traditional session types express regular protocols only, which leaves out many protocols found in practice. Aiming at overcoming this limitation, Nested Session Types (NSTs) can specify nested recursive protocols. NSTs are known to be characterised by one-counter machines and deterministic context-free languages. In this paper, we study the expressiveness of ASP (Asynchronous Session Processes), the process model associated with NSTs as introduced by Das et al. We prove that AST is Turing complete by giving a correct encoding of two-counter machines into typed processes. Our encoding uses a non-trivial state-aware representation of counters and instructions that is neatly governed by NSTs.

Fri 23 OctProgramming LanguagesDistributed, Parallel, and Cluster Computing
The gist
Communication protocols must be correct to avoid errors, but traditional types used to check these protocols only handle simple patterns. The authors study Nested Session Types (NSTs), which can describe more complex and nested communication sequences. They show that the corresponding process model, ASP, is powerful enough to perform any computation a Turing machine can, by representing counters and instructions through NSTs. This means NSTs capture very complex communication behaviors that were not previously possible with basic session types.
Open → 2610.32558v1

Good projections improve safety and flexibility of distributed programs

What is a Good Projection?: Correctness and Separation Results of End-Point Projections

Abstract: \emph{Multiparty session types} (MPST) is a type discipline for ensuring distributed programs are implemented correctly \emph{by construction}. MPST starts by specifying a choreographic protocol as a \emph{global type} and \emph{projects} it onto each participant, generating \emph{local types} with a guarantee of type soundness and deadlock-freedom. A central issue of MPST is that its type soundness is fragile, as it must be proven each time with respect to a chosen projection algorithm under specific semantics with a specific program correctness goal. To overcome this problem, we propose general criteria for a \emph{good projection} -- a set of requirements for projection algorithms by which type soundness, deadlock-freedom and liveness of distributed programs are \emph{automatically} derived. Using the criteria, we prove that 8 distinct projections in the literature are good under both synchronous and asynchronous semantics, and that 4 are incorrect, failing type soundness. We extend the good projection criteria to mixed choice global types and asynchronous communication optimisations, proposing new ``good projection'' algorithms. We apply properties of good projections to prove \emph{separation} and \emph{expressiveness} results over the projection algorithms and MPST typing systems. Having a generalised typing system that is robust with respect to the good projection criteria, we provide an implementation with mixed choice global types that is \emph{modular} with respect to a chosen projection algorithm and desired program properties. Our separation results help programmers make informed trade-offs between complexity and expressiveness when choosing projection algorithms, and our theory ensures their chosen algorithms are correctly applied.

Tue 20 OctProgramming LanguagesLogic in Computer Science
The gist
Distributed programs involve multiple participants working together, but making sure they do so correctly and without getting stuck is hard. The authors study a method called multiparty session types that breaks down a global plan into smaller parts for each participant. They identify general rules for these breakdowns, called good projections, that guarantee the program runs safely and smoothly. They analyze various existing methods, find which ones work and which don't, and offer new ones that handle harder cases. This helps programmers pick the best approach for their needs and ensures their systems behave correctly.
Open → 2610.28525v1