Affiliation:
1. IT University of Copenhagen, Denmark
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.
Publisher
Association for Computing Machinery (ACM)
Subject
Safety, Risk, Reliability and Quality,Software
Cited by
14 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Stream Types;Proceedings of the ACM on Programming Languages;2024-06-20
2. Asynchronous Modal FRP;Proceedings of the ACM on Programming Languages;2023-08-30
3. Asynchronous Reactive Programming with Modal Types in Haskell;Lecture Notes in Computer Science;2023
4. When Programs Have to Watch Paint Dry;Lecture Notes in Computer Science;2023
5. Modalities and Parametric Adjoints;ACM Transactions on Computational Logic;2022-04-06