arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1711.10201cs.PL
收藏

编舞中的通信,再访

Communications in Choreographies, Revisited

Luís Cruz-Filipe, Fabrizio Montesi, Marco Peressotti

摘要:

Choreographic Programming是一种通过编写所需通信的高级描述,然后自动合成过程实现来开发正确的构造并发程序的范例。到目前为止,choreographic编程已经在monadic设置中进行了探索:交互术语表示单个值的点对点通信。然而,现实世界的系统通常依赖于多元性质的交互,其中多个值在两方或多方之间进行通信,如多播,分散-聚集和原子交换。我们引入了一个新的模型,配备了一个原始的分组互动,包括所有上述情况下的编排编程。直观地,分组交互可以被认为是作为一个单独的交互来执行的。在实践中,它们是由以并发方式执行它们的进程实现的。在形式化的直观语义分组的相互作用,我们证明了编排程序及其实现是正确的,无死锁的建设。

英文摘要:

Choreographic Programming is a paradigm for developing correct-by-construction concurrent programs, by writing high-level descriptions of the desired communications and then synthesising process implementations automatically. So far, choreographic programming has been explored in the monadic setting: interaction terms express point-to-point communications of a single value. However, real-world systems often rely on interactions of polyadic nature, where multiple values are communicated among two or more parties, like multicast, scatter-gather, and atomic exchanges. We introduce a new model for choreographic programming equipped with a primitive for grouped interactions that subsumes all the above scenarios. Intuitively, grouped interactions can be thought of as being carried out as one single interaction. In practice, they are implemented by processes that carry them out in a concurrent fashion. After formalising the intuitive semantics of grouped interactions, we prove that choreographic programs and their implementations are correct and deadlock-free by construction.

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

↑