线性上下文元编程与会话类型
Linear Contextual Metaprogramming and Session Types
AI总结:
本文研究在按值调用线性 lambda 演算中集成元编程,并基于多层上下文模态类型理论扩展至会话类型,支持代码装箱、传输、拆箱与本地按需运行。
摘要:
我们探索将元编程集成到按值调用的线性 lambda 演算中,并概述其向会话类型系统的扩展。我们基于具有多层上下文的上下文模态类型理论模型,其中上下文值可在一系列变量上封闭任意项,随后被装箱并在消息中传输。接收后,可通过 let-box 构造将此类值拆箱,并在运行前进行局部应用。我们给出一系列示例,其中服务器通过会话类型化消息按需准备并发送代码。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。