Dist-Orc:一种基于重写的Orc分布式形式化实现
Dist-Orc: A Rewriting-based Distributed Implementation of Orc with Formal Analysis
摘要:
Orc是一种服务编排理论,允许分布式和定时计算的结构化编程。已经提出了几种形式语义的Orc,包括重写逻辑语义的作者开发的。Orc在Java中也有一个完全成熟的实现,具有函数式编程特性。然而,与大多数分布式语言的描述一样,Orc的形式语义和其实现之间存在相当大的差距,因为:(i)Orc中的程序不容易仅通过使用Orc的形式语义在分布式实现中部署,以及(ii)它们不容易在分布式Orc实现的级别上进行形式分析。在这项工作中,我们克服了Orc的问题(i)和(ii)。具体来说,我们描述了一种基于重写逻辑和Maude的实现技术,大大缩小了这一差距。这种技术的启用特性是Maude通过TCP套接字支持外部对象。我们描述了如何使用套接字来实现Orc站点调用和返回,并为Orc表达式和站点提供实时定时信息。然后,我们将展示如何在所得到的分布式实现的Orc程序可以正式分析在一个合理的抽象层次,通过定义一个抽象的时间模型和套接字通信基础设施,并讨论的假设下,分析可以被认为是正确的。最后,通过一个实例说明了分布式实现和形式化分析方法。
英文摘要:
Orc is a theory of orchestration of services that allows structured programming of distributed and timed computations. Several formal semantics have been proposed for Orc, including a rewriting logic semantics developed by the authors. Orc also has a fully fledged implementation in Java with functional programming features. However, as with descriptions of most distributed languages, there exists a fairly substantial gap between Orc's formal semantics and its implementation, in that: (i) programs in Orc are not easily deployable in a distributed implementation just by using Orc's formal semantics, and (ii) they are not readily formally analyzable at the level of a distributed Orc implementation. In this work, we overcome problems (i) and (ii) for Orc. Specifically, we describe an implementation technique based on rewriting logic and Maude that narrows this gap considerably. The enabling feature of this technique is Maude's support for external objects through TCP sockets. We describe how sockets are used to implement Orc site calls and returns, and to provide real-time timing information to Orc expressions and sites. We then show how Orc programs in the resulting distributed implementation can be formally analyzed at a reasonable level of abstraction by defining an abstract model of time and the socket communication infrastructure, and discuss the assumptions under which the analysis can be deemed correct. Finally, the distributed implementation and the formal analysis methodology are illustrated with a case study.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。