Using session types as an effect system

Dominic Orchard, Nobuko Yoshida
2/11/2016
10 citations
cs.PL

Official code: dorchard/effects-as-sessions (30 stars, last commit 2024-11-28).

Abstract

Side effects are a core part of practical programming. However, they are often hard to reason about, particularly in a concurrent setting.

Show full abstract

We propose a foundation for reasoning about concurrent side effects using sessions. Primarily, we show that session types are expressive enough to encode an effect system for stateful processes. This is formalised via an effect-preserving encoding of a simple imperative language with an effect system into the pi-calculus with session primitives and session types (into which we encode effect specifications). This result goes towards showing a connection between the expressivity of session types and effect systems. We briefly discuss how the encoding could be extended and applied to reason about and control concurrent side effects.

View on arXivView PDF

Code Implementations(1)

Formalised embedding of an imperative language with effect system into session-typed pi calculus.

301Jan 4, 20152 years ago

Similar Papers

Cite this paper

@article{orchard2016using,
  title  = {Using session types as an effect system},
  author = {Dominic Orchard and Nobuko Yoshida},
  year   = {2016},
  eprint = {1602.03591},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1602.03591}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1602.03591.svg)](https://codeofpaper.com/paper/1602.03591)

Discussion