arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1603.00307cs.SEcs.DCcs.LOcs.PL
收藏

基于图的并发异步程序语义描述

A Graph-Based Semantics Workbench for Concurrent Asynchronous Programs

Claudio Corrodi, Alexander Heußner, Christopher M. Poskitt

摘要:

已经提出了许多新颖的程序设计语言和库,它们提供了比线程更易于使用的并发模型。然而,设计成功实现其抽象而不丧失性能或引入意外行为的执行模型是具有挑战性的。SCOOP是一种并发的面向对象的消息传递语言,在其发展过程中,已经提出并实现了多种语义。我们提出了一个“语义工作台”,完全和半自动工具SCOOP,可用于分析和比较程序相对于不同的执行模型。我们证明了它的使用在检查语义的一致性,通过将其应用到一组有代表性的程序,并突出了死锁相关的语言的主要执行模型之间的差异。我们的工作台是基于一个模块化的和参数化的图形转换语义中实现的GROOVE工具。我们将讨论如何利用图转换来原子地对复杂的语言抽象建模,以及如何使用模型的视觉和代数性质来确定合理性。

英文摘要:

A number of novel programming languages and libraries have been proposed that offer simpler-to-use models of concurrency than threads. It is challenging, however, to devise execution models that successfully realise their abstractions without forfeiting performance or introducing unintended behaviours. This is exemplified by SCOOP---a concurrent object-oriented message-passing language---which has seen multiple semantics proposed and implemented over its evolution. We propose a "semantics workbench" with fully and semi-automatic tools for SCOOP, that can be used to analyse and compare programs with respect to different execution models. We demonstrate its use in checking the consistency of semantics by applying it to a set of representative programs, and highlighting a deadlock-related discrepancy between the principal execution models of the language. Our workbench is based on a modular and parameterisable graph transformation semantics implemented in the GROOVE tool. We discuss how graph transformations are leveraged to atomically model intricate language abstractions, and how the visual yet algebraic nature of the model can be used to ascertain soundness.

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

↑