Published November 26, 2019 | Version 2.0
Conference paper Open

Resource Sharing via Capability-Based Multiparty Session Types

  • 1. University of Glasgow

Description

Multiparty Session Types (MPST) are a type formalism used to model communication protocols among components in distributed systems, by specifying type and direction of data transmitted. It is stan- dard for multiparty session type systems to use access control based on linear or affine types. While useful in offering strong guarantees of communication safety and session fidelity, linearity and affinity run into the well-known problem of inflexible programming, excluding scenarios that make use of shared channels or need to store channels in shared data structures.

In this paper, we develop capability-based resource sharing for multiparty session types. In this setting, channels are split into two entities, the channel itself and the capability of using it. This gives rise to a more flexible session type system, which allows channel references to be shared and stored in persistent data structures. We illustrate our type system through a producer-consumer case study. Finally, we prove that the resulting language satisfies type safety.

Files

VDG19.pdf

Files (419.8 kB)

Name Size Download all
md5:032ea0d12b593b6c7c87f7ed2375bc67
419.8 kB Preview Download

Additional details

Funding

European Commission
BEHAPI - Behavioural Application Program Interfaces 778233
UK Research and Innovation
From Data Types to Session Types---A Basis for Concurrency and Distribution EP/K034413/1