Cargando…

Mixed Sessions

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 s...

Descripción completa

Detalles Bibliográficos
Autores principales: Vasconcelos, Vasco T., Casal, Filipe, Almeida, Bernardo, Mordido, Andreia
Formato: Online Artículo Texto
Lenguaje:English
Publicado: 2020
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7702257/
http://dx.doi.org/10.1007/978-3-030-44914-8_26
_version_ 1783616578202370048
author Vasconcelos, Vasco T.
Casal, Filipe
Almeida, Bernardo
Mordido, Andreia
author_facet Vasconcelos, Vasco T.
Casal, Filipe
Almeida, Bernardo
Mordido, Andreia
author_sort Vasconcelos, Vasco T.
collection PubMed
description 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.
format Online
Article
Text
id pubmed-7702257
institution National Center for Biotechnology Information
language English
publishDate 2020
record_format MEDLINE/PubMed
spelling pubmed-77022572020-12-01 Mixed Sessions Vasconcelos, Vasco T. Casal, Filipe Almeida, Bernardo Mordido, Andreia Programming Languages and Systems Article 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. 2020-04-18 /pmc/articles/PMC7702257/ http://dx.doi.org/10.1007/978-3-030-44914-8_26 Text en © The Author(s) 2020 Open Access This chapter is licensed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license and indicate if changes were made. The images or other third party material in this chapter are included in the chapter's Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the chapter's Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder.
spellingShingle Article
Vasconcelos, Vasco T.
Casal, Filipe
Almeida, Bernardo
Mordido, Andreia
Mixed Sessions
title Mixed Sessions
title_full Mixed Sessions
title_fullStr Mixed Sessions
title_full_unstemmed Mixed Sessions
title_short Mixed Sessions
title_sort mixed sessions
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7702257/
http://dx.doi.org/10.1007/978-3-030-44914-8_26
work_keys_str_mv AT vasconcelosvascot mixedsessions
AT casalfilipe mixedsessions
AT almeidabernardo mixedsessions
AT mordidoandreia mixedsessions