Skip to main content
Erschienen in:
Buchtitelbild

Open Access 2020 | OriginalPaper | Buchkapitel

Mixed Sessions

verfasst von : Vasco T. Vasconcelos, Filipe Casal, Bernardo Almeida, Andreia Mordido

Erschienen in: Programming Languages and Systems

Verlag: Springer International Publishing

loading …

Session types describe patterns of interaction on communicating channels. Traditional session types include a form of choice whereby servers offer a collection of options, of which each client picks exactly one. This sort of choice constitutes a particular case of separated choice: offering on one side, selecting on the other. We introduce mixed choices in the context of session types and argue that they increase the flexibility of program development at the same time that they reduce the number of synchronisation primitives to exactly one. We present a type system incorporating subtyping and prove preservation and absence of runtime errors for well-typed processes. We further show that classical (conventional) sessions can be faithfully and tightly embedded in mixed choices. Finally, we discuss algorithmic type checking and a runtime system built on top of a conventional (choice-less) message-passing architecture.

download
DOWNLOAD
print
DRUCKEN
Metadaten
Titel
Mixed Sessions
verfasst von
Vasco T. Vasconcelos
Filipe Casal
Bernardo Almeida
Andreia Mordido
Copyright-Jahr
2020
DOI
https://doi.org/10.1007/978-3-030-44914-8_26