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

游戏语义的抽象机器,再访

Abstract machines for game semantics, revisited

Olle Fredriksson, Dan R. Ghica

摘要:

我们定义了新的抽象机器的游戏语义,对应于传统的计算机网络,并可以作为一个中间表示编译目标的分布式系统。这是通过两个步骤实现的。首先,我们介绍了HRAM,一个堆和寄存器抽象机,一个传统的计算机的抽象,它可以被构造成HRAM网,一个抽象的点对点网络模型。HRAM是多线程的,并且通过令牌进行子线程通信(参见或跳跃。游戏抽象机(GAM)是在接口级别具有额外结构的HRAM,但没有特殊的操作能力。我们表明,GAM不能天真地组成,但组成必须使用适当的HRAM组合子介导。HRAM足够灵活,可以表示具有状态(非无辜游戏)或并发(非交替游戏)的语言的游戏模型。我们说明了这种技术的潜力,通过实现一个玩具分布式编译器ICA,高阶程序设计语言与共享状态并发,从而显着扩展我们以前的分布式PCF编译器。我们表明,编译是健全的和内存安全的,即没有(分布式或本地)垃圾回收是必要的。

英文摘要:

We define new abstract machines for game semantics which correspond to networks of conventional computers, and can be used as an intermediate representation for compilation targeting distributed systems. This is achieved in two steps. First we introduce the HRAM, a Heap and Register Abstract Machine, an abstraction of a conventional computer, which can be structured into HRAM nets, an abstract point-to-point network model. HRAMs are multi-threaded and subsume communication by tokens (cf. IAM) or jumps. Game Abstract Machines (GAM), are HRAMs with additional structure at the interface level, but no special operational capabilities. We show that GAMs cannot be naively composed, but composition must be mediated using appropriate HRAM combinators. HRAMs are flexible enough to allow the representation of game models for languages with state (non-innocent games) or concurrency (non-alternating games). We illustrate the potential of this technique by implementing a toy distributed compiler for ICA, a higher-order programming language with shared state concurrency, thus significantly extending our previous distributed PCF compiler. We show that compilation is sound and memory-safe, i.e. no (distributed or local) garbage collection is necessary.

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

↑