Tech moves fast! Stay ahead of the curve with Techopedia!
Join nearly 200,000 subscribers who receive actionable tech insights from Techopedia.
Functional reactive programming (FRP) is a programming framework that combines functional and reactive programming techniques to build applications, services and devices. It enables changing the state or operation of the underlying platform dynamically with events and behaviors that change over continuous or discrete time.
FRP is primarily designed for data sets or types that vary over time. FRP works on two core components or concepts: events and behaviors. Both of them represent values, which, once changed, will return into some action or reaction. For example, the movement of a computer mouse over a continuous period of time is a behavior, where the ever changing location of mouse arrow is its corresponding value. Similarly, the mouse click is an event and the place or quantity of clicks is the base value. FRP enables capturing and using these variables and their values with various applications and services, specifically in interactive computing environments such as animations, robotics, GUI and simulations.