DYNAMIC CHOREOGRAPHIES: THEORY AND IMPLEMENTATION
DYNAMIC CHOREOGRAPHIES: THEORY AND IMPLEMENTATION
复制标题
DOI:
10.23638/lmcs-13(2:1)2017
复制
发表时间:
2017-01-01
影响因子:
0.6
通讯作者:
Mauro, Jacopo
中科院分区:
文献类型:
--
作者:
Dalla Preda, Mila;Gabbrielli, Maurizio;Mauro, Jacopo
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 de fi ne a choreography language, called Dynamic Interaction-Oriented Choreography (DIOC), 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 DIOC fragments from outside the application. DIOC programs are compiled, generating code for each participant in a process-level language called Dynamic Process-Oriented Choreographies (DPOC). We prove that DPOC distributed applications generated from DIOC speci fi cations 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 DIOCs to distributed Jolie programs, and a runtime environment to support their execution.