Hostname: page-component-77c78cf97d-v4t4b Total loading time: 0 Render date: 2026-04-24T18:00:09.949Z Has data issue: false hasContentIssue false

A simple library implementation of binary sessions*

Published online by Cambridge University Press:  21 December 2016

LUCA PADOVANI*
Affiliation:
Dipartimento di Informatica, Università di Torino, Torino, Italy (e-mails: luca.padovani@di.unito.it)
Rights & Permissions [Opens in a new window]

Abstract

Core share and HTML view are not available for this content. However, as you have access to this content, a full PDF is available via the 'Save PDF' action button.

Inspired by the continuation-passing encoding of binary sessions, we describe a simple approach to embed a hybrid form of session type checking into any programming language that supports parametric polymorphism. The approach combines static protocol analysis with dynamic linearity checks. To demonstrate the effectiveness of the technique, we implement a well-integrated OCaml module for session communications. For free, OCaml provides us with equirecursive session types, parametric behavioural polymorphism, complete session type inference, and session subtyping.

Information

Type
Articles
Copyright
Copyright © Cambridge University Press 2016 
Submit a response

Discussions

No Discussions have been published for this article.