arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1602.03591cs.PL
收藏

使用会话类型作为效果系统

Using session types as an effect system

Dominic Orchard, Nobuko Yoshida

摘要:

副作用是实际编程的核心部分。然而,它们通常很难推理,特别是在并发环境中。我们提出了一个推理的基础上使用会话并发的副作用。首先,我们表明,会话类型的表达能力足以编码有状态进程的效果系统。这是正式通过一个简单的命令式语言的效果保持编码与效果系统到pi演算与会话原语和会话类型(我们编码的效果规范)。这一结果表明了会话类型的表现力和效果系统之间的联系。我们简要地讨论了如何编码可以扩展和应用的原因和控制并发的副作用。

英文摘要:

Side effects are a core part of practical programming. However, they are often hard to reason about, particularly in a concurrent setting. We propose a foundation for reasoning about concurrent side effects using sessions. Primarily, we show that session types are expressive enough to encode an effect system for stateful processes. This is formalised via an effect-preserving encoding of a simple imperative language with an effect system into the pi-calculus with session primitives and session types (into which we encode effect specifications). This result goes towards showing a connection between the expressivity of session types and effect systems. We briefly discuss how the encoding could be extended and applied to reason about and control concurrent side effects.

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

↑