paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Simply RaTT: a fitch-style modal calculus for reactive programming without space leaks

Simply RaTT:一种用于无空间泄漏反应式编程的 Fitch 风格模态演算
ICFP 3(ICFP)2019匹配度 2/10 · 该论文研究函数式反应式编程的模态类型系统与空间/时间泄漏,属于编程语言理论范畴,但未涉及AI/LLM、静态分析在ML/Agentic程序中的应用、浮点程序分析或贝叶斯程序分析,与用户核心研究方向几乎没有交集。引用 0 inbox
Patrick Bahr, Christian Uldal Graulund, Rasmus Ejlers Møgelberg
crossref: 2026-09-10

AI 速览

一句话:提出 Fitch 风格模态演算 Simply RaTT,保证反应式程序因果性并消除空间与时间泄漏。

函数式反应式编程(FRP)需要保证程序因果性,并避免空间泄漏与时间泄漏。已有工作用模态类型在同步 FRP 中提供对信号和事件的直接访问,但多采用双上下文(dual context)风格,类型系统较复杂,且仍存在时间泄漏。本文提出 Simply RaTT:一种采用 Fitch 风格模态类型的反应式编程演算。该风格简化了类型系统,使程序更简洁。作者给出操作语义,可安全执行程序而不产生空间泄漏;同时识别出其他模态 FRP 语言中由延迟计算里不动点展开引起的时间泄漏来源,并证明 Fitch 风格展示能自然排除这类泄漏,而传统双上下文方法似乎难以做到。

问题
FRP 语言必须保证程序因果性,并避免空间泄漏与时间泄漏;已有模态类型方案虽可直接访问信号和事件,但类型系统较复杂,且仍可能存在时间泄漏。
方法
论文提出 Simply RaTT,一种采用 Fitch 风格模态类型的反应式编程演算,并设计操作语义以安全执行程序、避免空间泄漏;同时分析延迟计算中不动点展开导致的时间泄漏,并利用 Fitch 风格规则排除。
评估
评估主要是理论性的:通过演算设计与操作语义论证空间泄漏安全性,并分析、排除时间泄漏。摘要未报告实现或实证基准。
原文摘要(Abstract)

Functional reactive programming (FRP) is a paradigm for programming with signals and events, allowing the user to describe reactive programs on a high level of abstraction. For this to make sense, an FRP language must ensure that all programs are causal, and can be implemented without introducing space leaks and time leaks. To this end, some FRP languages do not give direct access to signals, but just to signal functions. Recently, modal types have been suggested as an alternative approach to ensuring causality in FRP languages in the synchronous case, giving direct access to the signal and event abstractions. This paper presents Simply RaTT , a new modal calculus for reactive programming. Unlike prior calculi, Simply RaTT uses a Fitch-style approach to modal types, which simplifies the type system and makes programs more concise. Echoing a previous result by Krishnaswami for a different language, we devise an operational semantics that safely executes Simply RaTT programs without space leaks. We also identify a source of time leaks present in other modal FRP languages: The unfolding of fixed points in delayed computations. The Fitch-style presentation allows an easy way to rules out these leaks, which appears not to be possible in the more traditional dual context approach.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@article{paperbot601,
  title = {Simply RaTT: a fitch-style modal calculus for reactive programming without space leaks},
  author = {Patrick Bahr and Christian Uldal Graulund and Rasmus Ejlers Møgelberg},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {3},
  number = {ICFP},
  year = {2019},
  doi = {10.1145/3341713}
}