Functional Reactive Programming

27 thoughts
last posted Sept. 9, 2015, 6:02 a.m.

26 earlier thoughts

0

FRP is a very conceptual model for writing interactive applications but it has some challenges in efficient implementation - the memory requirements of keeping a complete or even partial history of all inputs are too great.

In lazy languages like Haskell this history might be kept accidentally because unevaluated expressions can keep references to older states.

So now FRP implementations don't give you the whole list. Instead you provide a function that the runtime applies to new events (and optionally a past and present state).