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 equi-recursive session types, parametric behavioural polymorphism, complete session type inference, and session subtyping.

Padovani, L. (2017). A Simple Library Implementation of Binary Sessions. JOURNAL OF FUNCTIONAL PROGRAMMING, 27(e4), 1-42 [10.1017/S0956796816000289].

A Simple Library Implementation of Binary Sessions

PADOVANI, Luca
2017

Abstract

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 equi-recursive session types, parametric behavioural polymorphism, complete session type inference, and session subtyping.
2017
Padovani, L. (2017). A Simple Library Implementation of Binary Sessions. JOURNAL OF FUNCTIONAL PROGRAMMING, 27(e4), 1-42 [10.1017/S0956796816000289].
Padovani, Luca
File in questo prodotto:
Eventuali allegati, non sono esposti

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11585/997787
 Attenzione

Attenzione! I dati visualizzati non sono stati sottoposti a validazione da parte dell'ateneo

Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 57
  • ???jsp.display-item.citation.isi??? 45
social impact