3 ms·
What I would really love is a post--or series of posts--just like this, but using FRP so that everything could be purely functional. Perhaps something like this
by tikhonj 15y ago
What I would really love is a post--or series of posts--just like this, but using FRP so that everything could be purely functional. Perhaps something like this exists already?
- nandemo 15y ago1. Install reactive-banana and read its docs and Apfelmus' intro (i). 2. Write a simple, 80s-style game using it. 3. Write a short tutorial explaining it. 4. ??? 5. Profit. (i) http://apfelmus.nfshost.com/blog.html#functional-reactive-programming-frp http://apfelmus.nfshost.com/blog.html#functional-reactive-pr...
- tikhonj 15y agoI might actually do that if I have time during the semester. But I'm innately lazy and would love to have it done for me :P. Besides, since I'll be learning how to use FRP, anything I write about it will be as a beginner with no experience. That said, a project like that would actually be perfect for the blog I keep meaning to start :)
- nandemo 15y agoThe closest thing I could find to a tutorial (besides Apfelmus' posts) is this: http://www.formicite.com/dopage.php?frp/frp.html http://www.formicite.com/dopage.php?frp/frp.html No time to check it in detail now, but at first sight it doesn't seem tutorial-ish enough. If you're interested in doing something on the lines of the above, I'll do it with you. I'll drop you an email.
- gnosis 15y agoThe following brief tutorial does not fit your criteria, but you might be interested in it anyway, as it is geared towards making games using FRP: http://booki.flossmanuals.net/fluxus/frisbee/ http://booki.flossmanuals.net/fluxus/frisbee/
- nandemo 15y agoThanks.
- dan00 15y agoMy conclusion until now is, that FRP can look beautiful and expressive for manageable, simple problems, and ugly and hairy for complicated stuff.
- dan00 15y agoThese two are quite nice, the first one is the base of the second one: https://github.com/leonidas/codeblog/blob/master/2012/2012-01-08-streams-coroutines.md https://github.com/leonidas/codeblog/blob/master/2012/2012-0... https://github.com/leonidas/codeblog/blob/master/2012/2012-01-17-declarative-game-logic-afrp.md https://github.com/leonidas/codeblog/blob/master/2012/2012-0...