Functional reactive programming is programming paradigm for reactive programming
Questions tagged [frp]
451 questions
1147
votes
18 answers
What is (functional) reactive programming?
I've read the Wikipedia article on reactive programming. I've also read the small article on functional reactive programming. The descriptions are quite abstract.
What does functional reactive programming (FRP) mean in practice?
What does reactive…

JtR
- 20,568
- 17
- 46
- 60
269
votes
1 answer
How fundamentally different are push-pull and arrowized FRP?
I want to study FRP in Haskell, but it's a bit difficult to decide on a library to use.
Many seem to be dead attempts, some seem to have been resurrected (such as recent activity on Yampa).
From what I read, it seems that there are two "kinds" of…

Guillaume Ponce
- 2,503
- 2
- 12
- 9
69
votes
5 answers
How is reactive programming different than event-driven programming?
I am learning reactive programming and functional reactive programming in JavaScript. I am very confused.
Wikipedia says that there are various ways to write reactive code such as imperative, OORP and functional. I want to know if event-driven is…

Narayan Prusty
- 2,501
- 3
- 22
- 41
64
votes
3 answers
Specification for a Functional Reactive Programming language
I am looking at messing around with creating a functional reactive framework at some point. I have read quite a lot about it and seen a few examples but I wanted to get a clear idea of what this framework would HAVE to do to be considered an FRP…

seadowg
- 4,215
- 6
- 35
- 43
61
votes
5 answers
Comparing core.async and Functional Reactive Programming (+Rx)
I seem to be a little bit confused when comparing Clojure's core.async to the so called Reactive Extensions (Rx) and FRP in general. They seem to tackle similar problem of async-hronicity, so I wonder what are the principal differences and in what…

tillda
- 18,150
- 16
- 51
- 70
57
votes
4 answers
What's the status of Scala.React?
I just read Deprecating the Observer Pattern and found it absolutely fascinating.
What's the status of the Scala.React package described in the document? I found one tarball of a snapshot of Scala.React but there doesn't seem to be much…

Bill
- 44,502
- 24
- 122
- 213
49
votes
3 answers
Why recursive `let` make space effcient?
I found this statement while studying Functional Reactive Programming, from "Plugging a Space Leak with an Arrow" by Hai Liu and Paul Hudak ( page 5) :
Suppose we wish to define a function that repeats its argument indefinitely:
repeat x = x :…

snowmantw
- 1,611
- 1
- 13
- 25
42
votes
6 answers
Recommended reading/tutorials to understand reactive-banana FRP library
I'm interested in FRP (Functional Reactive Programming) reactive-banana haskell library. What would you recommend reading for a newbie to understand theory behind reactive-banana? As I understand, there have been some progress in this field and…

EvgenijM86
- 2,149
- 1
- 17
- 10
37
votes
3 answers
Where are the functional gui users?
There has been a lot of research into ways of creating guis in a functional language. There is libraries for push/pull frp, arrow based frp and probably other superior research too. Many people seem to agree this is the more native way yet just…

Tim Matthews
- 5,031
- 8
- 38
- 45
28
votes
0 answers
Why does folding Events and Behaviors use so much memory?
I am currently exploring the possibility to use basic containers to give FRP networks more structure and by that to create more sophisticated event networks easier.
Note: I use ordrea but had the same problem with reactive-banana too, so I guess…

fho
- 6,787
- 26
- 71
26
votes
1 answer
Does push-pull FRP help when implementing games?
I've been comparing pull-only FRP (ie netwire) with push-pull FRP (ie reactive-bannana) in the implementation of games. Are there advantages to one over the other? Things I've notices are:
Push events make it easy to have events for mouse clicks /…

Dan
- 12,409
- 3
- 50
- 87
26
votes
2 answers
Which FRP package to choose?
I'm just starting to look into the world of Functional Reactive Programming in Haskell, and I would like to experiment with GUI programming (with gtk, because of substantial binding) in a reactional setting.
Now, I've been looking a bit at…

plc
- 864
- 8
- 20
24
votes
4 answers
FRP - Event streams and Signals - what is lost in using just signals?
In recent implementations of Classic FRP, for instance reactive-banana, there are event streams and signals, which are step functions (reactive-banana calls them behaviours but they are nevertheless step functions). I've noticed that Elm only uses…

miguel.negrao
- 949
- 5
- 13
23
votes
5 answers
Functional Reactive F# - Storing States in Games
I am a student currently learning about Functional Reactive paradigm using F#. It's radically new viewpoint for me. Yesterday I learned about creating a simple ping-pong game using this paradigm. The idea I grasp so far is : we think values as…

user248836
- 245
- 2
- 5
23
votes
2 answers
Is AngularJS Functional Reactive Programming?
Every time I see the phrase Functional Reactive Programming I realize that I don't understand what it is. I then go back to this question, think I understand what it is, and the cycle repeats later.
Example isn't another way to teach, it is the…

Daniel Kaplan
- 62,768
- 50
- 234
- 356