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

可读性执行

Literate Execution

University of Bristol(布里斯托大学);University of Kent(肯特大学);University of Utah(犹他大学);University of Cambridge(剑桥大学)

Joe Bond, Jacob Pake, Cristina David, Andrew McNutt, Trevor Sseguya Muwonge, Dominic Orchard, Roly Perera

AI总结:

本文提出可读性执行,通过Fluid语言实现文档与可视化等要素与程序执行的结合,使程序更易探索和自解释。

摘要:

文献执行,由Knurth提出,将代码和叙述交织在一起,使程序可以作为可执行和解释性的文本阅读。我们提出文献执行,这逆转了这种关系:而不是将代码嵌入静态叙述中,我们将文档--以及其他阐述元素如可视化--视为第一类 artifacts,可以在运行程序时计算并整合到其执行视图中。我们通过Fluid,一种具有 provenance-tracking 运行时的编程语言来探索这个想法,该运行时记录输入和输出之间细粒度的依赖关系。这些 provenance 关系可以作为交互,允许读者探索中间值如何贡献于结果。通过整合可视化、 provenance 和阐述,文献执行旨在使程序更易于探索和自解释,并使可探索的解释更容易编程。

英文摘要:

\emph{Literate programming}, introduced by Knurth, interleaves code and prose so that a program can be read as both executable and explanatory text. We propose \emph{literate execution}, which inverts this relationship: rather than embedding code within a static narrative, we treat documentation -- and other expository elements such as visualisations -- as first-class artefacts that can be computed alongside a running program and then integrated into a view of its execution. We explore this idea through Fluid, a programming language with a provenance-tracking runtime that records fine-grained dependencies between inputs and outputs. These provenance relationships can be surfaced as interactions that allow readers to explore how intermediate values contribute to a result. By integrating visualisation, provenance, and exposition, literate execution aims to make programs more explorable and self-explanatory, and explorable explanations easier to program.

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

↑