Skip to search boxSkip to navigationSkip to main content

Asynchronous modal FRP: Ticking all the boxes

Research Output:
Journal Article or Conference Article in Journal
Journal article
Research
Peer-review

Open access

Abstract

Over the past fifteen years, several languages for functional reactive programming (FRP) have been suggested that use modaltypes to ensure properties like causality, productivity, and lack of space leaks. So far, almost all of these languages have included a modal operator for delay on a global clock. For some applications, however, a global clock is unnatural and leads to leaky abstractions as well as inefficient implementations. While modal languages without a global clock have been proposed, no operational properties have been proved about them yet. This paper proposes Async RaTT, a new modal language for a synchronous FRP, equipped with an operational semantics mapping complete programs to machines that take asynchronous input signals and produce output signals. The main novelty of Async RaTT is a new modality for asynchronous delay, allowing each output channel to be associated 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, although the set of input channels associated with an output channel can change dynamically during execution, upper bounds on these can be determined statically by the type system.

Publication Information

Output type

Research Output:
Journal Article or Conference Article in Journal
Journal article
Research
Peer-review

Original language

English

Article number

13

Pages from-to (Number of pages)

Pages 1-58 (58 pages)

Journal (Volume, Issue Number)

Journal of Functional Programming (Volume 36)

Publication milestones

  • Published - 07/10/2026

Publication status

Published - 07/10/2026

ISSN

0956-7968

Publication IDs

  • ORCID: /0000-0003-0386-4376/work/229059400

Funding Details

Møgelberg was supported by the Independent Research Fund Denmark grant number 2032-00134B.
FunderFunding number
Independent Research Fund Denmark
2032-00134B