Abstract
AbstractSession 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.
Publisher
Springer International Publishing
Cited by
4 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Typed Non-determinism in Functional and Concurrent Calculi;Programming Languages and Systems;2023
2. Safe Asynchronous Mixed-Choice for Timed Interactions;Lecture Notes in Computer Science;2023
3. Mixed sessions;Theoretical Computer Science;2022-01
4. Mixed Sessions: the Other Side of the Tape;Electronic Proceedings in Theoretical Computer Science;2020-04-03