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

动态结构操作语义

Dynamic Structural Operational Semantics

Christian Johansen, Olaf Owe

摘要:

我们引入动态SOS作为一个框架,用于描述语义的程序设计语言,包括动态软件升级,在运行时升级软件代码。动态SOS(DSOS)是建立在P.Mosses的模块化SOS之上的,具有潜在的范畴理论形式化。动态SOS的思想是指出动态升级结构和程序执行结构之间的本质区别。模块化SOS(MSOS)的重要特征,我们利用DSOS是尖锐的分离的程序执行代码从额外的(数据)结构需要在运行时。在DSOS中,我们的目标是为动态软件升级实现相同的模块化和解耦。这在一定程度上是出于长期目标,即为类型安全等一般结果提供可机器检查的证明。我们在两种支持动态软件升级的语言上支持动态SOS,即C类Proteus,它支持在特定程序点更新变量、函数、记录或类型,以及Creol,它支持在并发对象的设置中进行动态类升级。软件升级的现有类型分析也可以在DSOS之上完成,正如我们对Proteus的说明。作为一个附带的结果,我们定义了一个通用的封装结构模块SOS有用的情况下,需要一种形式的执行封装。我们使用封装在Creol设置的并发面向对象编程与活动对象和异步方法调用。

英文摘要:

We introduce Dynamic SOS as a framework for describing semantics of programming languages that include dynamic software upgrades, for upgrading software code during run-time. Dynamic SOS (DSOS) is built on top of the Modular SOS of P. Mosses, with an underlying category theory formalization. The idea of Dynamic SOS is to bring out the essential differences between dynamic upgrade constructs and program execution constructs. The important feature of Modular SOS (MSOS) that we exploit in DSOS is the sharp separation of the program execution code from the additional (data) structures needed at run-time. In DSOS we aim to achieve the same modularity and decoupling for dynamic software upgrades. This is partly motivated by the long term goal of having machine-checkable proofs for general results like type safety. We exemplify Dynamic SOS on two languages supporting dynamic software upgrades, namely the C-like Proteus, which supports updating of variables, functions, records, or types at specific program points, and Creol, which supports dynamic class upgrades in the setting of concurrent objects. Existing type analyses for software upgrades can be done on top of DSOS too, as we illustrate for Proteus. As a side result we define of a general encapsulating construction on Modular SOS useful in situations where a form of encapsulation of the execution is needed. We use encapsulation in the Creol setting of concurrent object-oriented programming with active objects and asynchronous method calls.

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

↑