3 ms·
Purely Functional Retrogames
- chc 15y agoThe actual post linked here is basically an intro and is kind of "meh" by itself, but the series of posts it introduces is quite good and answers a lot of the questions people have about how you do a seemingly "imperative-style" application in a purely functional language.
- eru 15y agoYes. I also remember there being a previous discussion about those posts on HN. Does anybody care to dig it out?
- chc 15y agoI checked HNSearch, but I couldn't find one with more than a tiny handful of comments (I think with this comment we're already halfway to matching the most active one).
- silentbicycle 15y agoAnd don't limit yourself to discussions from just this particular post; many of his other posts have good threads here.
- tikhonj 15y agoWhat 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...
- axk 15y agoIf you like this series of posts, get yourself a copy of The Haskell School of Expression [0]. It covers various multi-media applications of Haskell, including reactive animations. [0]: http://www.cs.yale.edu/homes/hudak/SOE/ http://www.cs.yale.edu/homes/hudak/SOE/