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

文档的核心演算

A Core Calculus for Documents

Will Crichton, Shriram Krishnamurthi

AI总结:

本文针对文档与程序混合语言缺乏形式化基础的问题,提出文档演算层次模型,用于实现响应式特性并证明内容与计算边界定理,为文档语言设计提供理论依据。

摘要:

被动文档与主动程序如今广泛共存。文档语言包含图灵完备的编程元素,而编程语言则包含复杂的文档表示法。然而,目前尚无形式化基础来对这些语言进行建模。这一点很重要,因为文档与程序之间的交互可能微妙且易出错。在本文中,我们描述了若干此类问题,然后将文档语言进行分类并形式化为文档演算的各个层次。我们利用该演算作为实现诸如响应式等复杂特性的基础,并用于证明关于内容与计算边界的一些定理。我们期望文档演算能为新的文档语言提供理论基础,并帮助设计者清理现有语言中不完善之处。

英文摘要:

Passive documents and active programs now widely comingle. Document languages include Turing-complete programming elements, and programming languages include sophisticated document notations. However, there are no formal foundations that model these languages. This matters because the interaction between document and program can be subtle and error-prone. In this paper we describe several such problems, then taxonomize and formalize document languages as levels of a document calculus. We employ the calculus as a foundation for implementing complex features such as reactivity, as well as for proving theorems about the boundary of content and computation. We intend for the document calculus to provide a theoretical basis for new document languages, and to assist designers in cleaning up the unsavory corners of existing languages.

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

↑