CMU-CS-17-106R
Computer Science Department
School of Computer Science, Carnegie Mellon University



CMU-CS-17-106R

Manifest Sharing with Session Types

Stephanie Balzer, Frank Pfenning

June 2017
(Updated Version of March 2017)

CMU-CS-17-106R.pdf


This report supersedes Technical Report CMU-CS-17-106

A version of this work appears in the
Proceedings of the 22nd ACM SIGPLAN
International Conference on Functional Programming, (ICFP) 2017


Keywords: Linear logic, Curry-Howard isomorphism, session types, message-passing concurrency, sharing

Session-typed languages building on the Curry-Howard isomorphism between linear logic and session-typed communication guarantee session fidelity and deadlock freedom. Unfortunately, these strong guarantees exclude many naturally occurring programming patterns pertaining to shared resources. In this paper, we introduce sharing into a session-typed language where types are stratified into linear and shared layers with modal operators connecting the layers. The resulting language retains session fidelity but not the absence of deadlocks, which can arise from contention for shared processes. We illustrate our language on various examples, such as the dining philosophers problem, and provide a translation of the untyped asynchronous π-calculus into our language.

70 pages



Return to: SCS Technical Report Collection
School of Computer Science

This page maintained by reports@cs.cmu.edu