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

DeCo: 一种支持泛型数据类型的增量函数式编程核心演算

DeCo: A Core Calculus for Incremental Functional Programming with Generic Data Types

TU Darmstadt(达姆施塔特工业大学);National Research Center for Applied Cybersecurity ATHENE(国家应用网络安全研究中心 ATHENE)

Timon Böhler, Tobias Reinhard, David Richter, Mira Mezini

AI总结:

本文提出DeCo核心演算,通过静态增量泛化用户自定义数据类型上的领域特定操作,实现更细粒度的增量计算,并证明其正确性。

摘要:

增量计算通过避免不必要的重新计算和高效重用先前结果来加速计算。虽然领域特定技术(如在数据库查询中)实现了显著的加速,但它们难以推广。同时,通用方法对增量领域特定操作的支持有限。在这项工作中,我们提出了DeCo,一种新颖的增量函数式编程核心演算,支持广泛的用户定义数据类型。尽管具有泛型性质,我们的方法静态地增量了用户定义数据类型上的领域特定操作。因此,它比其他将领域特定操作视为黑盒的通用技术更细粒度。我们在Lean中机械化了我们的工作并证明了其正确性,意味着增量执行计算与完全重新评估产生相同的结果。我们还提供了一个可执行实现,并附带了来自线性代数、关系代数、字典、树和无冲突复制数据类型的案例研究,以及对线性代数、关系代数和树的简要性能评估。

英文摘要:

Incrementalization speeds up computations by avoiding unnecessary recomputations and by efficiently reusing previous results. While domain-specific techniques achieve impressive speedups, e.g., in the context of database queries, they are difficult to generalize. Meanwhile, general approaches offer little support for incrementalizing domain-specific operations. In this work, we present DeCo, a novel core calculus for incremental functional programming with support for a wide range of user-defined data types. Despite its generic nature, our approach statically incrementalizes domain-specific operations on user-defined data types. It is, hence, more fine-grained than other generic techniques which resort to treating domain-specific operations as black boxes. We mechanized our work in Lean and proved it sound, meaning incrementalized execution computes the same result as full reevaluation. We also provide an executable implementation with case studies featuring examples from linear algebra, relational algebra, dictionaries, trees, and conflict-free replicated data types, plus a brief performance evaluation on linear and relational algebra and on trees.

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

↑