Linear Contextual Metaprogramming and Session Types

Pedro Ângelo
(LIACC & Faculdade de Ciências da Universidade do Porto, Portugal)
Atsushi Igarashi
(Kyoto University, Kyoto, Japan)
Vasco T. Vasconcelos
(LASIGE, Faculdade de Ciências da Universidade de Lisboa, Portugal)

We explore the integration of metaprogramming in a call-by-value linear lambda-calculus and sketch its extension to a session type system. We build on a model of contextual modal type theory with multi-level contexts, where contextual values, closing arbitrary terms over a series of variables, may then be boxed and transmitted in messages. Once received, one such value may then be unboxed (with a let-box construct) and locally applied before being run. We present a series of examples where servers prepare and ship code on demand via session typed messages.

In Diana Costa and Raymond Hu: Proceedings 15th Workshop on Programming Language Approaches to Concurrency and Communication-cEntric Software (PLACES 2024), Luxembourg City, Luxembourg, 6th April 2024, Electronic Proceedings in Theoretical Computer Science 401, pp. 1–10.
Published: 6th April 2024.

ArXived at: https://dx.doi.org/10.4204/EPTCS.401.1 bibtex PDF
References in reconstructed bibtex, XML and HTML format (approximated).
Comments and questions to: eptcs@eptcs.org
For website issues: webmaster@eptcs.org