Electronic Proceedings in Theoretical Computer Science (Jul 2011)

Polymorphic Endpoint Types for Copyless Message Passing

  • Viviana Bono,
  • Luca Padovani

DOI
https://doi.org/10.4204/EPTCS.59.5
Journal volume & issue
Vol. 59, no. Proc. ICE 2011
pp. 52 – 67

Abstract

Read online

We present PolySing#, a calculus that models process interaction based on copyless message passing, in the style of Singularity OS. We equip the calculus with a type system that accommodates polymorphic endpoint types, which are a variant of polymorphic session types, and we show that well-typed processes are free from faults, leaks, and communication errors. The type system is essentially linear, although linearity alone may leave room for scenarios where well-typed processes leak memory. We identify a condition on endpoint types that prevents these leaks from occurring.