Value-dependent session design in a dependently typed language

Jan de Muijnck-Hughes, Edwin Charles Brady, Wim Vanderbauwhede

Research output: Chapter in Book/Report/Conference proceedingConference contribution

7 Citations (Scopus)
5 Downloads (Pure)

Abstract

Session Types offer a typing discipline that allows protocol specifications to be used during type-checking, ensuring that implementations adhere to a given specification. When looking to realise global session types in a dependently typed language care must be taken that values introduced in the description are used by roles that know about the value.

We present Sessions, a Resource Dependent Embedded Domain Specific Language (EDSL) for describing global session descriptions in the dependently typed language Idris. As we construct session descriptions the values parameterising the EDSLs’ type keeps track of roles and messages they have encountered. We can use this knowledge to ensure that message values are only used by those who know the value. Sessions supports protocol descriptions that are computable, composable, higher-order, and value-dependent. We demonstrate Sessions expressiveness by describing the TCP Handshake, a multi-modal server providing echo and basic arithmetic operations, and a Higher-Order protocol that supports an authentication interaction step.
Original languageEnglish
Title of host publicationProceedings Programming Language Approaches to Concurrency- and Communication-cEntric Software, Prague, Czech Republic, 7th April 2019
EditorsFrancisco Martins, Dominic Orchard
PublisherOpen Publishing Association
Pages47-59
DOIs
Publication statusPublished - 2 Apr 2019
EventProgramming Language Approaches to Concurrency- & Communication-cEntric Software (PLACES 2019)
- Prague, Czech Republic
Duration: 7 Apr 20197 Apr 2019
Conference number: 11
https://conf.researchr.org/track/etaps-2019/places-2019-papers

Publication series

NameElectronic Proceedings in Theoretical Computer Science
PublisherOpen Publishing Association
Volume291
ISSN (Electronic)2075-2180

Workshop

WorkshopProgramming Language Approaches to Concurrency- & Communication-cEntric Software (PLACES 2019)
Abbreviated titlePLACES
Country/TerritoryCzech Republic
CityPrague
Period7/04/197/04/19
Internet address

Fingerprint

Dive into the research topics of 'Value-dependent session design in a dependently typed language'. Together they form a unique fingerprint.

Cite this