encyclopegia.org

Functional reactive programming

Functional reactive programming (FRP) is a programming paradigm for reactive programming (asynchronous dataflow programming) using the building blocks of functional programming (e.g., map, reduce, filter). FRP has been used for programming graphical user interfaces (GUIs), robotics, games, and music, aiming to simplify these problems by explicitly modeling time.

Functional reactive programming (FRP) is a programming paradigm for reactive programming (asynchronous dataflow programming) using the building blocks of functional programming (e.g., map, reduce, filter). FRP has been used for programming graphical user interfaces (GUIs), robotics, games, and music, aiming to simplify these problems by explicitly modeling time. ==Interactive FRP== It has been pointed out that the ordinary FRP model, from inputs to outputs, is poorly suited to interactive programs. Lacking the ability to "run" programs within a mapping from inputs to outputs may mean one of the following solutions must be used: Create a data structure of actions which appear as the outputs. The actions must be run by an external interpreter or environment. This inherits all of the difficulties of the original stream input/output (I/O) system of Haskell. Use Arrowized FRP and embed arrows which are capable of performing actions. The actions may also have identities, which allows them to maintain separate mutable stores for example. This is the approach taken by the Fudgets library and, more generally, Monadic Stream Functions. The novel approach is to allow actions to be run now (in the IO monad) but defer the receipt of their results until later. This makes use of an interaction between the Event and IO monads, and is compatible with a more expression-oriented FRP:

References

No reference rows published for this article.

Cite this article

MLA

"Functional reactive programming." encyclopegia.org, 2025, https://encyclopegia.org/wiki/functional-reactive-programming. Accessed 24 November 2026.

Chicago

"Functional reactive programming." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/functional-reactive-programming.

APA

encyclopegia.org. (2025). Functional reactive programming. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/functional-reactive-programming

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Armstrong County, South Dakota

enwiki · references available

Geography of the Odyssey

enwiki · references available

Czechoslovakia at the 1952 Winter Olympics

enwiki · references available

Augustus of Prima Porta

enwiki · references available

Alexander Girard

enwiki · references available

Georges Burou

enwiki · references available

Banco di Desio e della Brianza

enwiki · references available

Dessalines

enwiki · references available

USS William H. Standley

enwiki · references available

Geoff Lawton

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1308688876 · 0.5 · snapshot enwiki-001308688876

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.