Skip to content

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).

Core Idea

Functional reactive programming is treated here as the recurring computerscienceandinformation identity summarized by this source-grounded definition: 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). 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.

How would you explain it like I'm…

Programs Like Flowing Pipes

Imagine a game where your character moves whenever you press a button. Instead of checking the button over and over, the program is like pipes: button presses flow in, little helpers change them along the way, and the movement flows out. Whenever something new happens, it flows right through.

Programs That Flow With Time

Functional reactive programming is a way of writing programs that have to react to things happening over time, like clicks in an app, sensors on a robot, or notes in music. It treats changing things as streams or signals, and uses simple function tools like 'map' (change each item), 'filter' (keep only some), and 'reduce' (combine them) to build what happens next. Many versions use signals that always have a current value but jump when something changes. When an outside event happens, it's pushed straight to the parts that need it, so they find out right away.

Functional Dataflow Over Time

Functional reactive programming (FRP) is a paradigm for reactive, asynchronous dataflow programming built from functional-programming tools such as map, filter, and reduce. It aims to simplify programs like user interfaces, robotics, games, and music by modeling time explicitly. Many versions combine 'behaviors' (values over time) and 'events' (things that happen at moments) into signals that always have a current value but change in discrete jumps. When outside events come in, a push-based approach delivers them to whatever depends on them the instant they occur. The earliest version of FRP treated time as continuous, so programmers could think about meaning without worrying about low-level timing details.

 

Functional reactive programming applies the building blocks of functional programming—map, filter, reduce and similar combinators—to reactive programming, i.e., asynchronous dataflow. Its central move is to model time explicitly, so time-varying values and occurrences become first-class things that can be transformed and composed. Many formulations unify behaviors and events into signals, which always have a current value but change discretely. Implementations often have a push-based part for external events: these are pushed to consumers so they learn of an event the instant it is issued. The original formulation used continuous-time semantics to abstract away operational details irrelevant to a program's meaning. FRP has been applied to GUIs, robotics, games, and music. Merely having callbacks or using the name is not enough; a genuine instance must be reactive dataflow expressed with functional combinators.

Scope of Application

  • Formulations of FRP. The original formulation of functional reactive programming can be found in the ICFP 97 paper Functional Reactive Animation by Conal Elliott and Paul Hudak.

  • Continuous. The earliest formulation of FRP used continuous semantics, aiming to abstract over many operational details that are not important to the meaning of a program.

  • Continuous. This semantic model of FRP in side-effect free languages is typically in terms of continuous functions, and typically over time.

  • Interactive FRP. Lacking the ability to "run" programs within a mapping from inputs to outputs may mean one of the following solutions must be used.

  • Interactive FRP. The actions may also have identities, which allows them to maintain separate mutable stores for example.

Clarity

A clear use of Functional reactive programming names the carrier, the operative relation, and the conditions under which the source treats the identity as present. The minimal definition is 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).

Manages Complexity

Functional reactive programming compresses multiple computerscienceandinformation details into a stable diagnostic relation. The source shows both the central mechanism—the actions may also have identities, which allows them to maintain separate mutable stores for example.—and the practical consequence—some FRP systems such as Yampa use sampling, where samples are pulled by the signal network. This compression makes cases comparable while leaving parameters, conventions, exceptions, and evidential quality explicit.

Abstract Reasoning

  1. Type the carrier. Identify the computerscienceandinformation entities to which the claim applies.
  2. State the relation. Use the source-grounded identity: 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).
  3. Check operation and conditions. This is the approach taken by the Fudgets library and, more generally, Monadic Stream Functions.
  4. Demand recognition evidence. Push-based systems take events and push them through a signal network to achieve a result. 5.

Knowledge Transfer

Within the home domain. Knowledge about Functional reactive programming transfers literally when a new case preserves the same carrier type, relation, and recognition test. The original formulation of functional reactive programming can be found in the ICFP 97 paper Functional Reactive Animation by Conal Elliott and Paul Hudak. The earliest formulation of FRP used continuous semantics, aiming to abstract over many operational details that are not important to the meaning of a program. Beyond the home domain. No canonical parent is asserted for Functional reactive programming.

Relationships to Other Abstractions

Local relationship map for Functional reactive programmingParents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.Functional reactiveprogrammingDOMAINDomain-specific abstraction: Programming Paradigm — is a kind ofProgrammingParadigmDOMAIN

Current abstraction Functional reactive programming Domain-specific

Parents (1) — outgoing typed relations

  • Functional reactive programming is a kind of Programming Paradigm Domain-specific

    Functional reactive programming satisfies the defining boundary of Programming Paradigm: A programming paradigm is a coherent set of computational concepts, composition rules, state and control models, and programming constraints that organizes how programs are expressed, reasoned about, executed, and evolved across multiple implementations or languages.

Hierarchy path (1) — routes to 1 parentless root

Neighborhood in Abstraction Space

Functional reactive programming sits in a sparse region of the domain-specific corpus (74th percentile for distinctiveness): few abstractions share its structure, so a faithful description tends to retrieve it precisely.

Family — Computation Models & Complexity Classes (37 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14