对分布式应用程序进行无通信死锁和竞争条件的编程是复杂的。当应用程序在运行时更新时,保留这些属性就更难了。我们提出了一个编排的方法编程可更新的,分布式应用程序。我们定义了一个编排语言,称为动态面向交互的编排(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.
Choreographic Programming是一种通过构造来纠正的范式,其中编译过程从全局的、声明性的通信描述(称为choreographies)中合成无死锁、并发和分布式的通信过程。以前的工作使用编排的综合方案。遗憾的是,没有一种形式化的方法可以提供从编排到实现的正确性链。这个问题源于现有的理论模型之间的差距,这些模型使用通道名称(à la CCS/π-演算)抽象通信,而它们的实现则使用低级机制进行消息路由。作为解决方案,我们提出了应用编排的理论框架。在这个框架中,开发人员用一种遵循标准语法和以前作品中基于名称的通信语义的语言编写编排。然后,他们使用编译过程将编排转换为面向服务的计算(SOC)的低级别、与实现相关的演算。为了管理编译的复杂性,我们将其形式化和证明分为三个阶段,分别处理:a)将基于名称的通信转换为SOC等效物(即,使用基于消息数据的相关机制); b)将编排投影到部分、单参与者编排的组合中c)部分编排的转换和编排级状态到SOC进程中的分布。我们为每个阶段提供了行为对应的结果。因此,给定一个编排规范,我们保证合成它的忠实和无死锁的面向服务的实现。