GoPi: Compiling Linear and Static Channels in Go - Coordination Models and Languages Access content directly
Conference Papers Year : 2020

GoPi: Compiling Linear and Static Channels in Go

Abstract

We identify two important features to enhance the design of communication protocols specified in the pi-calculus, that are linear and static channels, and present a compiler, named GoPi, that maps high level specifications into executable Go programs. Channels declared as linear are deadlock-free, while the scope of static channels, which are bound by a hide declaration, does not enlarge at runtime; this is enforced statically by means of type inference, while specifications do not include annotations. Well-behaved processes are transformed into Go code that supports non-deterministic synchronizations and race-freedom. We sketch two main examples involving protection against message forwarding, and forward secrecy, and discuss the features of the tool, and the generated code. We argue that GoPi can support academic activities involving process algebras and formal models, which range from the analysis and testing of concurrent processes for research purposes to teaching formal languages and concurrent systems.
Fichier principal
Vignette du fichier
495623_1_En_9_Chapter.pdf (345.68 Ko) Télécharger le fichier
Origin : Files produced by the author(s)

Dates and versions

hal-03273983 , version 1 (29-06-2021)

Licence

Attribution

Identifiers

Cite

Marco Giunti. GoPi: Compiling Linear and Static Channels in Go. 22th International Conference on Coordination Languages and Models (COORDINATION), Jun 2020, Valletta, Malta. pp.137-152, ⟨10.1007/978-3-030-50029-0_9⟩. ⟨hal-03273983⟩
29 View
13 Download

Altmetric

Share

Gmail Facebook X LinkedIn More