论文标题

铁氧体:会话类型在生锈中的判断性嵌入

Ferrite: A Judgmental Embedding of Session Types in Rust

论文作者

Chen, Ruofei, Balzer, Stephanie, Toninho, Bernardo

论文摘要

本文介绍了铁氧体,这是会话类型的生锈的浅嵌入。与现有的会话类型库和主流语言的嵌入形成对比,铁氧体不仅支持线性会话类型,还支持共享的会话类型。共享的会话类型允许使用类型模式来获取和释放会话,同时保留会话保真度(保存),同时共享(混叠)。铁矿采用命题作为类型的方法,并将键入派生作为锈函数编码,并证明了成功的类型检查表现为生锈程序。我们使用伺服器作为一个实际的例子进行了对铁氧体的评估,并证明了如何使用铁氧体在画布组件中实现安全通信。

This paper introduces Ferrite, a shallow embedding of session types in Rust. In contrast to existing session type libraries and embeddings for mainstream languages, Ferrite not only supports linear session types but also shared session types. Shared session types allow sharing (aliasing) of channels while preserving session fidelity (preservation) using type modalities for acquiring and releasing sessions. Ferrite adopts a propositions as types approach and encodes typing derivations as Rust functions, with the proof of successful type-checking manifesting as a Rust program. We provide an evaluation of Ferrite using Servo as a practical example, and demonstrate how safe communication can be achieved in the canvas component using Ferrite.

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源