Questions tagged [frp]

Functional reactive programming is programming paradigm for reactive programming

441 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,259
  • 16
  • 44
  • 59
268
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,483
  • 2
  • 10
  • 9
62
votes
2 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,033
  • 6
  • 32
  • 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
  • 16,950
  • 16
  • 48
  • 69
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
  • 38,492
  • 24
  • 114
  • 205
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,541
  • 1
  • 10
  • 24
47
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,103
  • 3
  • 17
  • 35
43
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
  • 1,879
  • 1
  • 16
  • 10
38
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
  • 4,871
  • 8
  • 36
  • 43
27
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
  • 10,532
  • 2
  • 42
  • 74
27
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
  • 862
  • 7
  • 19
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
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…
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
  • 54,448
  • 39
  • 189
  • 282
20
votes
1 answer

Do we care about the 'past' in FRP?

When toying around with implementing FRP one thing I've found that is confusing is what to do with the past? Basically, my understanding was that I would be able to do this with a Behaviour at any point: beh.at(x) // where time x < now This seems…
1
2 3
29 30