addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscontroller-playcrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1light-bulblinklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

Game of Life in Haskell

See the map for the exact location.

You're encouraged bring your laptop with Haskell running to this meetup, we're going to try to code together. But even if you can't do that for some reason, please still join, we will have someone coding using the projector and taking input from the audience, and you can also share laptops, so there'll be a way to participate for everyone.

The plan is to jointly write a simple, naive, but fully working implementation of the Game of Life in Haskell, and use this to discuss various design patterns and tradeoffs.

At a future meeting, we might try to expand on this and try to write a really efficient implementation (such as HashLife) in Haskell.

Join or login to comment.

  • Gabor G.

    Just stumbled on the 'inline' function again: ( and the documentation says it inlines unconditionally. There is also 'breakpoint' and its conditional variant whom I never heard of before :-)

    July 27, 2014

  • Andres L.

    Thanks to everyone for joining yesterday. If you have any feedback or suggestions, I'd be happy to know. Also, let me reiterate that it would be nice if someone else would organize the August meetup.

    July 16, 2014

  • Martin R.

    There probably won't be internet for anyone who is not affiliated with the/a university. Even mobile connection is abysmal.
    So I would advice you to install gloss before the meetup.

    July 13, 2014

    • Gabor G.

      What about using VNC (screen sharing) with one computer being an ad-hoc access point? This way we do not need the university network at all.

      July 15, 2014

    • Andres L.

      Well, there is relatively little code to write. If you bring GHC and have gloss installed, you'll probably not need internet. Also, there's the option to just lean back and follow the development on the main screen. There's still a slight possibility we'll be able to find a solution regarding internet, but it's better to start from the assumption that we'll not have.

      July 15, 2014

  • A former member
    A former member

    I would be interested to have a look at the resulting code, if you plan on pushing it to GitHub.

    July 12, 2014

  • Gabor G.

    Nice coincidence. After Stephen Wolfram now Gerard t' Hooft suggested cellular automata as a model for quantum mechanics:

    July 13, 2014

  • Andres L.

    In case you're wondering what Haskell packages we'll need: Game of Life is rather lightweight on dependencies, so both ghc-7.6.3 (current Haskell platform) or ghc-7.8.2 (latest release) will do for the most part. For graphics output, I'm planning to use the "gloss" package, which should be easy to install on-the-fly on most platforms. But if you want to do "cabal install gloss" ahead of the meetup, you can save a little bit of time.

    And don't forget that you're still welcome to join even if you do not have a working setup. If you have any questions, please ask.

    July 9, 2014

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy