【24h】

Session Types for Functional Multithreading

机译:功能性多线程的会话类型

获取原文
获取原文并翻译 | 示例

摘要

We define a language whose type system, incorporating session types, allows complex protocols to be specified by types and verified by static typechecking. A session type, associated with a communication channel, specifies the state transitions of a protocol and also the data types of messages associated with transitions; thus typechecking can verify both correctness of individual messages and correctness of sequences of transitions. Previously session types have mainly been studied in the context of the π-calculus; instead, our formulation is based on a multi-threaded functional language with side-effecting input/output operations. Our typing judgements statically describe dynamic changes in the types of channels, our channel types statically track aliasing, and our function types not only specify argument and result types but also describe changes in channels. We formalize the syntax, semantics and typing rules of our language, and prove subject reduction and runtime type safety theorems.
机译:我们定义了一种语言,该语言的类型系统结合了会话类型,允许按类型指定复杂协议并通过静态类型检查进行验证。与通信信道相关的会话类型指定协议的状态转换以及与转换相关的消息的数据类型;因此,类型检查可以验证单个消息的正确性和转换序列的正确性。以前,会话类型主要是在π演算的背景下研究的。相反,我们的表述基于具有副作用的输入/输出操作的多线程功能语言。我们的打字判断静态地描述了通道类型的动态变化,我们的通道类型静态地跟踪了别名,我们的函数类型不仅指定了参数和结果类型,而且还描​​述了通道的变化。我们对语言的语法,语义和键入规则进行形式化,并证明主题缩减和运行时类型安全定理。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号