scala - What are the corresponding concepts of Event and Behavior from FRP in RxScala? -


by looking @ scaladoc of rxscala not clear me how map concepts of signal, event , behavior frp rxscala.

i took coursera reactive course connection between frp (as described conal elliott) , rxscala not explained. vague feeling observables in rxscala correspond behaviors/signals in frp not quite sure.

could please explain how map concepts of conal's frp (signal, signal transformer, event, behavior) concepts/classes ( future/ observable/ scheduler/ subject) defined in rxscala?

conal's signal equivalent wiki's behavior, time -> although behavior has newtype wrapper around it. event signal composed maybe.

rxscala's scheduler appears frp implementation / plumbing not directly related interface programmers use building frp application (gui or no). i'd wager lot of haskell frp takes advantage of non-strictness "schedule" future events, not kind performance on jvm (in particular) so, scheduler trait used that.

rxscala's observable trait common interface signals, , implemented directly primitive / base signals, i.e. aren't composed other signals. observable object serves bit of factory , bit combinator library, provding way of promoting various values frp framework ways combine existing observable instances.

rxscala's subject trait user-defined derived signals, i.e. dependent on other observables. dependent on observable in rxscala, have implement observer. subject adds 2 methods on top of combination of observer , observable -- functions conversion java rx framework.

the derived signals produce observable object's combinators may implement subject, guaranteed implement obervable. seems subject when have unique/custom/unusual manner "wiring" incoming notifications outgoing notifications, particularly if stateful.

hth. first time i've more scanned rxscala docs, it's missed something.


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -