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
-
-
-
-
-
-
-
-
-
Functional reactive programming1m 4s
-
(Locked)
Simple RxCpp stream2m 57s
-
(Locked)
Coroutine with RxCpp and ranges7m 40s
-
(Locked)
Real-time data stream processing in a functional manner5m 9s
-
(Locked)
Benefits of functional programming for asynchronous event handling9m 5s
-
(Locked)
Challenge: Word frequency counter with RxCpp27s
-
(Locked)
Solution: Word frequency counter with RxCpp5m 46s
-
-
-
-
-