计算机科学 > 程序设计语言
[提交于 2021年3月26日]
标题:Deadlock-Free Session Types in Linear Haskell
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Priority Sesh is a library for session-typed communication in Linear Haskell which offers strong compile-time correctness guarantees. Priority Sesh offers two deadlock-free APIs for session-typed communication. The first guarantees deadlock freedom by restricting the process structure to trees and forests. It is simple and composeable, but rules out cyclic structures. The second guarantees deadlock freedom via priorities, which allows the programmer to safely use cyclic structures as well. Our library relies on Linear Haskell to guarantee linearity, which leads to easy-to-write session types and highly idiomatic code, and lets us avoid the complex encodings of linearity in the Haskell type system that made previous libraries difficult to use.
提交历史
来自:Wen Kokke[v1] 2021年3月26日 星期五 14:08:01 UTC