...
【24h】

A Cost Semantics for Self-Adjusting Computation

机译:自调整计算的成本语义

获取原文
获取原文并翻译 | 示例
           

摘要

Self-adjusting computation is an evaluation model in which pro-grams can respond efficiently to small changes to their input data byusing a change-propagation mechanism that updates computationby re-building only the parts affected by changes. Previous workhas proposed language techniques for self-adjusting computationand showed the approach to be effective in a number of applicationareas. However, due to the complex semantics of change propaga-tion and the indirect nature of previously proposed language tech-niques, it remains difficult to reason about the efficiency of self-adjusting programs and change propagation. In this paper, we propose a cost semantics for self-adjustingcomputation that enables reasoning about its effectiveness. As oursource language, we consider a direct-style λ-calculus with first-class mutable references and develop a notion of trace distancefor source programs. To facilitate asymptotic analysis, we propose techniques for composing and generalizing concrete distances viatrace contexts (traces with holes). We then show how to translate the source language into a self-adjusting target language such thatthe translation (1) preserves the extensional semantics of the sourceprograms and the cost of from-scratch runs, and (2) ensures thatchange propagation between two evaluations takes time boundedby their relative distance. We consider several examples and ana-lyze their effectiveness by considering upper and lower bounds.
机译:自调整计算是一种评估模型,其中程序可以通过使用更改传播机制来有效地响应其输入数据的细微变化,该更改传播机制通过仅重建受更改影响的部分来更新计算。先前的工作提出了用于自动调整计算的语言技术,并表明该方法在许多应用领域中都是有效的。然而,由于变更传播的复杂语义和先前提出的语言技术的间接性质,仍然难以对自我调整程序和变更传播的效率进行推理。在本文中,我们提出了一种用于自我调整计算的成本语义,该成本语义能够对其有效性进行推理。作为我们的源语言,我们考虑具有一流可变引用的直接样式λ演算,并为源程序开发跟踪距离的概念。为了促进渐近分析,我们提出了通过迹线上下文(带有孔的迹线)来组合和概括混凝土距离的技术。然后,我们演示如何将源语言转换为自我调整的目标语言,以使转换(1)保留源程序的扩展语义以及从头开始运行的成本,并且(2)确保两次评估之间的更改传播需要时间受其相对距离的限制。我们考虑几个示例,并通过考虑上限和下限来分析其有效性。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号