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

函数式编排程序设计

Functional Choreographic Programming

Luís Cruz-Filipe, Eva Graversen, Lovro Lugović, Fabrizio Montesi, Marco Peressotti

摘要:

编排程序设计是一种新兴的并发和分布式系统的编程范式,开发人员编写应该制定的通信,然后通过编译器自动获得分布式实现。编排编程的理论通常带有关于编译过程的强有力的理论保证,最值得注意的是:生成的实现在操作上对应于它们的源编排并且是无死锁的。目前,该范式最先进的化身是Choral,一种面向Java的面向对象的编排程序设计语言。Choral与已知的编舞理论有很大的不同,并引入了表达完全分布式的高阶编舞(编舞参数化)的可能性。因此,目前还不清楚通常的保证编排仍然可以保持在更一般的设置更高的秩序。我们介绍Chorλ,第一个功能性编排程序设计语言:它引入了一个新的制定标准的通信原语中发现的编排作为一个功能,它是基于λ-演算。Chorλ是第一个解释高阶编舞编程(如Choral)核心思想的理论。弥合实践和理论之间的差距需要为λ项开发一种新的评估策略和类型规则,以说明编排中计算的分布式特性。我们用一系列的例子来说明Chorλ的表现力,其中包括从Choral的原始呈现中重建的关键例子。我们的理论支持编排编程的预期属性和桥梁之间的差距社区的功能和编排编程。

英文摘要:

Choreographic programming is an emerging programming paradigm for concurrent and distributed systems, whereby developers write the communications that should be enacted and then a distributed implementation is automatically obtained by means of a compiler. Theories of choreographic programming typically come with strong theoretical guarantees about the compilation process, most notably: the generated implementations operationally correspond to their source choreographies and are deadlock-free. Currently, the most advanced incarnation of the paradigm is Choral, an object-oriented choreographic programming language that targets Java. Choral deviated significantly from known theories of choreographies, and introduced the possibility of expressing higher-order choreographies (choreographies parameterised over choreographies) that are fully distributed. As a consequence, it is unclear if the usual guarantees of choreographies can still hold in the more general setting of higher-order ones. We introduce Chorλ, the first functional choreographic programming language: it introduces a new formulation of the standard communication primitive found in choreographies as a function, and it is based upon the λ-calculus. Chorλ is the first theory that explains the core ideas of higher-order choreographic programming (as in Choral). Bridging the gap between practice and theory requires developing a new evaluation strategy and typing discipline for λ terms that accounts for the distributed nature of computation in choreographies. We illustrate the expressivity of Chorλ with a series of examples, which include reconstructions of the key examples from the original presentation of Choral. Our theory supports the expected properties of choreographic programming and bridges the gap between the communities of functional and choreographic programming.

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

↑