Cpp Functional Programming Vs Reactive Programming Java