A Session Type Provider Compile-Time Api Generation Of Distributed Protocols With Refinements In F#

CC'18: PROCEEDINGS OF THE 27TH INTERNATIONAL CONFERENCE ON COMPILER CONSTRUCTION(2018)

引用 58|浏览19
暂无评分
摘要
We present a library for the specification and implementation of distributed protocols in native F# (and other. NET languages) based on multiparty session types (MPST). There are two main contributions. Our library is the first practical development of MPST to support what we refer to as interaction refinements: a collection of features related to the refinement of protocols, such as message-type refinements (value constraints) and message-value dependent control flow. A well-typed endpoint program using our library is guaranteed to perform only compliant session I/O actions w.r.t. to the refined protocol, up to premature termination.Second, our library is developed as a session type provider, that performs on-demand compile-time protocol validation and generation of protocol-specific. NET types for users writing the distributed endpoint programs. It is implemented by extending and integrating Scribble (a toolchain for MPST) with an SMT solver into the type providers framework. The safety guarantees are achieved by a combination of static type checking of the generated types for messages and I/O operations, correctness by construction from code generation, and automated inlining of assertions.
更多
查看译文
关键词
Multiparty Session Types, Distributed Programming, F#, Type Providers, Code Generation
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要