Projects per year
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.
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.
Original language | English |
---|---|
Title of host publication | Proceedings of the ACM on Programming Languages |
Volume | 3 |
Publisher | Association for Computing Machinery |
Publication date | 2019 |
Edition | IFCP |
Article number | 109 |
DOIs | |
Publication status | Published - 2019 |
Event | International Conference on Functional Programming (IFCP 2019) - Hotel Scandic Berlin Potsdamer Platz, Berlin, Germany Duration: 18 Aug 2019 → 23 Aug 2019 https://icfp19.sigplan.org/home |
Conference
Conference | International Conference on Functional Programming (IFCP 2019) |
---|---|
Location | Hotel Scandic Berlin Potsdamer Platz |
Country/Territory | Germany |
City | Berlin |
Period | 18/08/2019 → 23/08/2019 |
Internet address |
Keywords
- Functional Reactive Programming
- Causality
- Modal Types
- Space Leaks
- Time Leaks
- Signal Functions
- Fitch-Style Calculus
- Operational Semantics
- Reactive Programming
- Type Systems
Fingerprint
Dive into the research topics of 'Simply RaTT: A Fitch-style Modal Calculus for Reactive Programming'. Together they form a unique fingerprint.Projects
- 1 Finished
-
Type theories for reactive programming
Møgelberg, R. E. (PI), Vezzosi, A. (CoI), Graulund, C. U. (CoI), Kristensen, M. B. (CoI) & Veltri, N. (CoI)
22/01/2016 → 21/01/2022
Project: Research