arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1611.09067cs.PLcs.LO
收藏

动态编排:理论与实现

Dynamic Choreographies: Theory And Implementation

Mila Dalla Preda, Maurizio Gabbrielli, Saverio Giallorenzo, Ivan Lanese, Jacopo Mauro

摘要:

对分布式应用程序进行无通信死锁和竞争条件的编程是复杂的。当应用程序在运行时更新时,保留这些属性就更难了。我们提出了一个编排的方法编程可更新的,分布式应用程序。我们定义了一个编排语言,称为动态面向交互的编排(AIOC),它允许程序员指定,从全局的角度来看,应用程序的哪些部分可以更新。在运行时,这些部分可能被来自应用程序外部的新AIOC片段替换。AIOC程序被编译,用称为动态面向过程的编排(APOC)的过程级语言为每个参与者生成代码。我们证明,APOC分布式应用程序生成的AIOC规范是死锁自由和种族自由,这些属性也举行任何运行时更新后。我们将上述理论模型实例化为一个名为Adaptable Interaction-Oriented Choreographies in Jolie(AIOCJ)的编程框架,该框架包括一个集成开发环境,一个从AIOCs扩展到分布式Jolie程序的编译器,以及一个支持其执行的运行时环境。

英文摘要:

Programming distributed applications free from communication deadlocks and race conditions is complex. Preserving these properties when applications are updated at runtime is even harder. We present a choreographic approach for programming updatable, distributed applications. We define a choreography language, called Dynamic Interaction-Oriented Choreography (AIOC), that allows the programmer to specify, from a global viewpoint, which parts of the application can be updated. At runtime, these parts may be replaced by new AIOC fragments from outside the application. AIOC programs are compiled, generating code for each participant in a process-level language called Dynamic Process-Oriented Choreographies (APOC). We prove that APOC distributed applications generated from AIOC specifications are deadlock free and race free and that these properties hold also after any runtime update. We instantiate the theoretical model above into a programming framework called Adaptable Interaction-Oriented Choreographies in Jolie (AIOCJ) that comprises an integrated development environment, a compiler from an extension of AIOCs to distributed Jolie programs, and a runtime environment to support their execution.

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

↑