Skip to main contentSkip to search
Episciences
Open Access Journals
Sign in(new window)
Journal of Functional Programming logo
Journal of Functional Programming
Journal of Functional Programming logo
Journal of Functional Programming
Sign in(new window)
Articles & Issues
All articlesAll accepted articlesAll volumesSectionsAuthors
About
The journalIndexingNews
Boards
Publish
For authorsEthical charterFor reviewers
Submit
Journal of Functional Programming logo
Journal's leaflet
|
Contact
|
Credits
eISSN 1469-7653
|
RSS
|
Atom
Episciences
Documentation
|
Acknowledgements
|
Publishing policy
Accessibility: non-compliant
|
Legal mentions
|
Privacy statement
|
Terms of use
  1. Home > Articles & Issues >
  2. Articles >
  3. Asynchronous modal F ...
Article

Asynchronous modal FRP: Ticking all the boxes

Patrick Bahr ORCID (1), Rasmus Møgelberg ORCID (1)
(1) IT University of Copenhagen
Download article
Open on HAL
Submitted on
July 6, 2025
Accepted on
August 10, 2026
Published on
October 7, 2026
Last modified on
October 7, 2026
Volume 36
Volume 36
DOI
10.46298/jfp.17791
License
Attribution-Non Commercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)
Indicators
152
Views
149
Downloads

Asynchronous modal FRP: Ticking all the boxes

Patrick Bahr ORCID (1), Rasmus Møgelberg ORCID (1)
(1) IT University of Copenhagen
Abstract
Over the past fifteen years, several languages for functionalreactive programming (FRP) have been suggested that use modaltypes to ensure properties like causality, productivity, and lack ofspace leaks. So far, almost all of these languages have included amodal operator for delay on a global clock. For some applications,however, a global clock is unnatural and leads to leakyabstractions as well as inefficient implementations. While modallanguages without a global clock have been proposed, no operationalproperties have been proved about them yet.This paper proposes Async RaTT, a new modal language for asynchronousFRP, equipped with an operational semantics mapping completeprograms to machines that take asynchronous input signals andproduce output signals. The main novelty of Async RaTT is a new modalityfor asynchronous delay, allowing each output channel to beassociated at runtime with the set of input channels it depends on,thus causing the machine to only compute new output when necessary.We prove a series of operational properties including causality,productivity, and lack of space leaks. We also show that, althoughthe set of input channels associated with an output channel canchange dynamically during execution, upper bounds on these can bedetermined statically by the type system.
Keywords
  • [INFO.INFO-PL]Computer Science [cs]/Programming Languages [cs.PL]
  • Memory Management
  • Type Systems
  • Modal Types
  • Functional Reactive Programming
Preview
Loading PDF preview...