精确命名的缓存位置的细化类型
Refinement types for precisely named cache locations
摘要:
许多用于增量计算的程序设计语言技术为高速缓存的信息使用程序员指定的名称。在运行时,每个名称标识动态数据值或子计算的“缓存位置”;总之,这些缓存位置选择指导更改传播和增量(重新)执行。当一个缓存位置最多标识一个值或子计算时,我们称它为精确的;我们称所有其他名称为不精确的或模糊的。至少,缓存位置名称必须精确,以确保更改传播正确工作;然而,在增量程序中静态推理名称仍然是一个悬而未决的问题。作为第一步,本文定义并解决了精确的名称问题,在这里我们验证了增量程序与显式名称使用它们精确。为了做到这一点,我们给出了一个细化类型和效果系统,并证明它是合理的(每个类型良好的程序都精确地使用名称)。我们还通过验证计算增量序列和集合的高效表示的示例程序来证明这种类型系统的表达能力。除了验证这些程序,我们的类型系统还描述了它们的动态命名策略,例如,用于图书馆文档。
英文摘要:
Many programming language techniques for incremental computation employ programmer-specified names for cached information. At runtime, each name identifies a "cache location" for a dynamic data value or a sub-computation; in sum, these cache location choices guide change propagation and incremental (re)execution. We call a cache location name precise when it identifies at most one value or subcomputation; we call all other names imprecise, or ambiguous. At a minimum, cache location names must be precise to ensure that change propagation works correctly; yet, reasoning statically about names in incremental programs remains an open problem. As a first step, this paper defines and solves the precise name problem, where we verify that incremental programs with explicit names use them precisely. To do so, we give a refinement type and effect system, and prove it sound (every well-typed program uses names precisely). We also demonstrate that this type system is expressive by verifying example programs that compute over efficient representations of incremental sequences and sets. Beyond verifying these programs, our type system also describes their dynamic naming strategies, e.g., for library documentation purposes.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。