Skip to main content
Kent Academic Repository

Replicate, Reuse, Repeat: Capturing Non-Linear Communication via Session Types and Graded Modal Types

Marshall, Daniel, Orchard, Dominic A. (2022) Replicate, Reuse, Repeat: Capturing Non-Linear Communication via Session Types and Graded Modal Types. In: Proceedings of the Workshop on Programming Language Approaches to Concurrency- & Communication-cEntric Software. Electronic Proceedings in Theoretical Computer Science (doi:10.4204/EPTCS.356.1) (KAR id:113875)

Abstract

Session types provide guarantees about concurrent behaviour and can be understood through their correspondence with linear logic, with propositions as sessions and proofs as processes. However, a strictly linear setting is somewhat limiting, since there exist various useful patterns of communication that rely on non-linear behaviours. For example, shared channels provide a way to repeatedly spawn a process with binary communication along a fresh linear session-typed channel. Non-linearity can be introduced in a controlled way in programming through the general concept of graded modal types, which are a framework encompassing various kinds of coeffect typing (describing how computations make demands on their context). This paper shows how graded modal types can be leveraged alongside session types to enable various non linear concurrency behaviours to be re-introduced in a precise manner in a type system with a linear basis. The ideas here are demonstrated using Granule, a functional programming language with linear, indexed, and graded modal types.

Item Type: Conference proceeding
DOI/Identification number: 10.4204/EPTCS.356.1
Subjects: Q Science > QA Mathematics (inc Computing science) > QA 76 Software, computer programming,
Institutional Unit: Schools > School of Computing
Former Institutional Unit:
There are no former institutional units.
Funders: Engineering and Physical Sciences Research Council (https://ror.org/0439y7842)
Depositing User: Dominic Orchard
Date Deposited: 14 Apr 2026 16:58 UTC
Last Modified: 16 Apr 2026 08:23 UTC
Resource URI: https://kar.kent.ac.uk/id/eprint/113875 (The current URI for this page, for reference purposes)

University of Kent Author Information

  • Depositors only (login required):

Total unique views of this page since July 2020. For more details click on the image.