From the course: Functional Programming in C++

Functional reactive programming - C++ Tutorial

From the course: Functional Programming in C++

Functional reactive programming

- [Instructor] Functional reactive programming. Functional reactive programming models computations as reactions to asynchronous data streams and events. It is essential for real-time handling of user input, sensor data, and network responses. By combining FRP with modern C++ features like core routines and ranges, developers can write elegant asynchronous code that reacts dynamically to incoming data. What is reactive programming? Reactive programming treats data as continuous streams over time. It responds to changes reactively, not imperatively. Examples of use cases for reactive programming are UI events, network streams, sensor datas, et cetera. In this chapter, we will explore RxCpp, a C++ library for reactive programming and demonstrate how to integrate it with core routines and ranges to build reactive pipelines.

Contents