arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1809.05649cs.PL
收藏

渐进式会话类型

Gradual Session Types

Atsushi Igarashi, Peter Thiemann, Yuya Tsuda, Vasco T. Vasconcelos, Philip Wadler

摘要:

会话类型是一种基于线性类型的丰富类型规程,它将类型系统附带的安全声明提升到通信中。然而,基于Web的应用程序和微服务通常是用混合语言编写的,类型规则介于静态和动态类型之间。渐进式会话类型通过提供一个框架来解决这种混合设置,该框架允许在会话的静态类型处理和任何所需程度的动态类型处理之间进行无缝转换。我们提出渐进式GV作为功能会话类型系统GV的渐进式扩展。Gradual GV遵循渐进类型化的标准框架,由外部语言和内部语言组成,外部语言使用动态类型来放松GV的类型系统,内部语言使用强制转换,并给出了操作语义,以及从前者到后者的强制转换插入翻译。我们证明了类型和通信安全以及责备安全,从而扩展以前的结果,以功能语言与基于会话的通信。线性和动态类型的相互作用需要一种新的方法来指定语言的动态。

英文摘要:

Session types are a rich type discipline, based on linear types, that lifts the sort of safety claims that come with type systems to communications. However, web-based applications and microservices are often written in a mix of languages, with type disciplines in a spectrum between static and dynamic typing. Gradual session types address this mixed setting by providing a framework which grants seamless transition between statically typed handling of sessions and any required degree of dynamic typing. We propose Gradual GV as a gradually typed extension of the functional session type system GV. Following a standard framework of gradual typing, Gradual GV consists of an external language, which relaxes the type system of GV using dynamic types, and an internal language with casts, for which operational semantics is given, and a cast-insertion translation from the former to the latter. We demonstrate type and communication safety as well as blame safety, thus extending previous results to functional languages with session-based communication. The interplay of linearity and dynamic types requires a novel approach to specifying the dynamics of the language.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑