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 different FRP libraries use different approaches, so I don't think that any FRP paper would do.
Unfortunately, I haven't written any comprehensive documentation or tutorials yet, mainly because the reactive-banana library is still somewhat in flux.
This means that, at the moment, you'll have to figure things out yourself from various sources, backed by a reasonably strong Haskell knowledge. What I can do here is to list the various sources and inspirations.
Documentation available for reactive-banana directly
Since reactive-banana is based on Conal Elliott's work, his writings are a good source
There are basically two sources:
The design and semantics of reactive-banana draw heavily from Conal's paper and his "reactive" library (since reactive-banana-0.2). Discussion on a lot of the reasoning behind this, as well as differences between the libraries, is in the comments on Apfelmus's blog. Unfortunately "reactive" has some bad behavior associated with its "switcher" function, so that was left out of reactive-banana. There's been a lot of research into the nature of this problem and how to solve it, and it looks like reactive-banana-0.5 may introduce some version of "switcher".
It's not reactive-banana but I found this series helpful for understanding FRP, building up a small pong game from scratch.
https://github.com/leonidas/codeblog/blob/master/2012/2012-01-08-streams-coroutines.md https://github.com/leonidas/codeblog/blob/master/2012/2012-01-17-declarative-game-logic-afrp.md
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With