• Cite Icon9
  • https://doi.org/10.1145/507669.507654Copy DOI Icon

Real-time FRP

Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Functional reactive programming (FRP) is a declarative programming paradigm where the basic notions are continuous, time-varying behaviors and discrete, event-based reactivity. FRP has been used successfully in many reactive programming domains such as animation, robotics, and graphical user interfaces. The success of FRP in these domains encourages us to consider its use in real-time applications, where it is crucial that the cost of running a program be bounded and known before run-time. But previous work on the semantics and implementation of FRP was not explicitly concerned about the issues of cost. In fact, the resource consumption of FRP programs in the current implementation is often hard to predict. As a first step towards addressing these concerns, this paper presents real-time FRP (RT-FRP), a statically-typed language where the time and space cost of each execution step for a given program is statically bounded. To take advantage of existing work on languages with bounded resources, we split RT-FRP into two parts: a reactive part that captures the essential ingredients of FRP programs, and a base language part that can be instantiated to any generic programming language that has been shown to be terminating and resource-bounded. This allows us to focus on the issues specific to RT-FRP, namely, two forms of recursion. After presenting the operational explanation of what can go wrong due to the presence of recursion, we show how the typed version of the language is terminating and resource-bounded. Most of our FRP programs are expressible directly in RT. The rest are expressible via a simple mechanism that integrates RT-FRP with the base language.

Similar Papers
  • Conference Article
  • Citations42

Safe functional reactive programming through dependent types

  • Aug 31, 2009
  • Neil Sculthorpe +1
  • Conference Article
  • Citations46

Fair reactive programming

  • Jan 08, 2014
  • Andrew Cave +3
  • Research Article
  • Citations36

Asynchronous functional reactive programming for GUIs

  • Jun 16, 2013
  • ACM SIGPLAN Notices
  • Evan Czaplicki +1
  • Research Article

Functional reactive programming with liveness guarantees

  • Sep 25, 2013
  • ACM SIGPLAN Notices
  • Alan Jeffrey
  • Research Article
  • Citations6

Rhine: FRP with type-level clocks

  • Sep 17, 2018
  • ACM SIGPLAN Notices
  • Manuel Bärenz +1
  • Conference Article
  • Citations3

Work in Progress: Response Time Analysis of Real-Time Quantum Computing Systems

  • May 01, 2023
  • Albert M K Cheng
  • Conference Article

Functional Reactive Program Translator for Controlling Robot Systems

  • Nov 01, 2007
  • Byeong-Joon Lee +2
  • Research Article
  • Citations4

Settable and non-interfering signal functions for FRP

  • Aug 19, 2014
  • ACM SIGPLAN Notices
  • Daniel Winograd-Cort +1
  • Research Article
  • Citations21

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

  • Jul 26, 2019
  • Proceedings of the ACM on Programming Languages
  • Patrick Bahr +2
  • Research Article
  • Citations4

Functional Reactive Virtual Reality

  • Jan 01, 2007
  • Eurographics
  • Kristopher J Blom +1
  • Research Article
  • Citations5

Runtime verification and validation of functional reactive systems

  • Jan 01, 2020
  • Journal of Functional Programming
  • Ivan Perez +1
  • Book Chapter
  • Citations6

A Practical Overview

  • Jan 01, 2016
  • Fernando Doglio
  • Book Chapter
  • Citations4

Frabjous: A Declarative Domain-Specific Language for Agent-Based Modeling

  • Jan 01, 2014
  • Ivan Vendrov +2
  • Research Article
  • Citations5

Feasibility interval for the transactional event handlers of P-FRP

  • Dec 13, 2012
  • Journal of Computer and System Sciences
  • Chaitanya Belwal +2
  • Conference Article
  • Citations7

STCLang: state thread composition as a foundation for monadic dataflow parallelism

  • Aug 08, 2019
  • Sebastian Ertel +4
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.