arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1602.03729cs.PL
收藏

并发协议的声明式合成语言

A Language for the Declarative Composition of Concurrent Protocols

Luís Cruz-Filipe, Fabrizio Montesi

摘要:

最近对现实世界并发和分布式系统中的错误的研究发现,虽然单个协议的实现往往是健壮的,但多个协议的组成及其与内部计算的相互作用是大多数错误的罪魁祸首。多方会话类型和编排编程是基于通信流的全局描述开发按构造正确的并发和分布式软件的方法论。然而,协议的组成要么是有限的,要么是未经检查的。受这两种方法的启发,在这项工作中,我们提出了一个新的语言模型的协议,称为程序编排(PC)的安全组成。PC中的协议是过程,由执行过程参数化。过程使用全局描述以声明方式定义通信,程序是通过调用和组合这些过程来编写的。然后,根据流程模型的实现被机械地合成,保证正确性和无死锁。我们研究了PC机在同步和异步通信的设置,并说明其表现力与一些有代表性的例子。

英文摘要:

A recent study of bugs in real-world concurrent and distributed systems found that, while implementations of individual protocols tend to be robust, the composition of multiple protocols and its interplay with internal computation is the culprit for most errors. Multiparty Session Types and Choreographic Programming are methodologies for developing correct-by-construction concurrent and distributed software, based on global descriptions of communication flows. However, protocol composition is either limited or left unchecked. Inspired by these two methodologies, in this work we present a new language model for the safe composition of protocols, called Procedural Choreographies (PC). Protocols in PC are procedures, parameterised on the processes that enact them. Procedures define communications declaratively using global descriptions, and programs are written by invoking and composing these procedures. An implementation in terms of a process model is then mechanically synthesised, guaranteeing correctness and deadlock-freedom. We study PC in the settings of synchronous and asynchronous communications, and illustrate its expressivity with some representative examples.

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

↑