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

分支出去:Effpi中的存在性外部选择

Branching Out: Existential External Choice in Effpi

University of Oxford(牛津大学)

Benjamin Robinson, Nobuko Yoshida

AI总结:

Effpi通过引入分支操作扩展了外部选择能力,支持多通道消息接收和超时处理,展示了其在Raft共识算法中的应用。

摘要:

Effpi是一个用于编写强类型消息传递程序的框架,在Scala中,编译器强制过程实现符合指定的协议类型。提供了一个编译器插件来验证协议属性,如死锁自由和活性,通过将行为类型编码为CCS变种。为解决现有工具包表达能力的限制,我们通过引入分支操作扩展Effpi。接受消息时,协议强制一个依赖于接收消息标签(类型)的延续。我们还为分支操作增加了支持通过多个通道发送消息的能力,并引入了“捕获超时”操作以允许进程优雅地处理缺乏输入消息的情况。通过多个示例展示了Effpi增强的表达能力,包括Raft共识算法的实现。

英文摘要:

Effpi is a framework for writing strongly-typed message-passing programs in Scala, where the compiler enforces the conformance of process implementations to specified protocol types. A compiler plugin is provided to verify properties of protocols, such as deadlock-freedom and liveness, by encoding the behavioural types into a variant of CCS. To address limitations in the expressiveness of the existing toolkit, we extend Effpi with external choice by introducing a branching operation. Upon accepting a message via a branch, protocols enforce a continuation which depends on the label (type) of the received message. We equip the branching operation with the ability to accept messages over more than one channel. Additionally, we introduce a "catch timeout" operation to allow processes to gracefully handle a lack of incoming messages. The enhanced expressiveness of Effpi is demonstrated through a number of examples, including an implementation of the Raft consensus algorithm.

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

↑