。RP,面向異步事件流的編程,這個異步事件流叫:Observable,一般叫:StreamStream就是一個 按時間排序的Events(Ongoing events ordered in time)序列Stream是不可變(Immutability)的,任何操作都返回新的Stream, 且它是一個Monad(它有map和flatMap方法)。FRP的關注點在Stream,而FP的關注點在(Type, Operate),Stream -> (Type, Operate)是一種泛化(generic),(Type, Operate) -> Stream 是一種派生。RP本身是建立于觀察者模式之上的一種編程范式(級別同MV*),FP則更偏向底層解決一般化問題。引用wiki上的一句話:Functional reactive programming (FRP) is a programming paradigm for reactive programming on functional programming.
。composing asynchronous and event-based programs using observable sequences
。sequences of data/events
。Reactive-Streams specification 規(guī)范
。https://github.com/ReactiveX/RxJava
。http://projectreactor.io/