Fungi:带名称的类型化增量计算
Fungi: Typed incremental computation with names
摘要:
增量计算试图利用输入随时间的相似性,重用不受输入变化影响的工作。为了在通用编程设置中最大化这种重用,程序员需要一种机制来识别随时间对应的(数据和子计算的)动态分配。我们提出真菌,一个类型化的函数式语言的增量计算的名称。与以前的增量计算通用语言不同,Fungi的名称概念是正式的、通用的和静态可验证的。真菌的类型和效果系统允许程序员编码(程序特定的)关于名称的局部不变量,并使用这些不变量为他们的组合程序建立全局唯一性,正确使用名称的属性。我们证明了良好类型的真菌程序尊重全球唯一性。我们派生了类型和效果系统的双向版本,并在Rust中实现了Fungi的原型。我们将真菌应用到一个增量集合库中,表明它在实践中具有表达能力。
英文摘要:
Incremental computations attempt to exploit input similarities over time, reusing work that is unaffected by input changes. To maximize this reuse in a general-purpose programming setting, programmers need a mechanism to identify dynamic allocations (of data and subcomputations) that correspond over time. We present Fungi, a typed functional language for incremental computation with names. Unlike prior general-purpose languages for incremental computing, Fungi's notion of names is formal, general, and statically verifiable. Fungi's type-and-effect system permits the programmer to encode (program-specific) local invariants about names, and to use these invariants to establish global uniqueness for their composed programs, the property of using names correctly. We prove that well-typed Fungi programs respect global uniqueness. We derive a bidirectional version of the type and effect system, and we have implemented a prototype of Fungi in Rust. We apply Fungi to a library of incremental collections, showing that it is expressive in practice.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。