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

自动调整堆垛机

Self-Adjusting Stack Machines

Matthew A. Hammer, Georg Neis, Yan Chen, Umut A. Acar

摘要:

自调整计算提供了一种基于语言的方法来编写自动响应动态变化数据的程序。最近的工作取得了重大进展,在发展健全的语义和相关的实现自调整计算的高级,函数式语言。然而,这些技术没有解决针对低级语言出现的问题,即,缺乏强类型系统和自动存储管理的基于堆栈的命令式语言。在本文中,我们描述的技术,自调整计算,适用于低级语言。必要的是,我们采取不同的方法比以前的工作:而不是从一个高级语言与额外的原语,以支持自调整计算,我们开始与一个低级别的中间语言,其语义是由一个基于堆栈的抽象机。我们证明,这种语义是健全的:它总是更新计算的方式,是一致的充分重新评估。我们给出了一个编译器和运行时系统的中间语言所使用的抽象机。我们提出了一个实证评估表明,我们的方法是有效的,在实践中,并表现良好,与以前的建议。

英文摘要:

Self-adjusting computation offers a language-based approach to writing programs that automatically respond to dynamically changing data. Recent work made significant progress in developing sound semantics and associated implementations of self-adjusting computation for high-level, functional languages. These techniques, however, do not address issues that arise for low-level languages, i.e., stack-based imperative languages that lack strong type systems and automatic memory management. In this paper, we describe techniques for self-adjusting computation which are suitable for low-level languages. Necessarily, we take a different approach than previous work: instead of starting with a high-level language with additional primitives to support self-adjusting computation, we start with a low-level intermediate language, whose semantics is given by a stack-based abstract machine. We prove that this semantics is sound: it always updates computations in a way that is consistent with full reevaluation. We give a compiler and runtime system for the intermediate language used by our abstract machine. We present an empirical evaluation that shows that our approach is efficient in practice, and performs favorably compared to prior proposals.

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

↑