Live data from Hacker News

I was bored and made a Conway's Game of Life app in Elixir

game-of-life.isaacbfsanders.com

11–14 of 14 posts

Re: I was bored and made a Conway's Game of Life app in Elixir

#11
I'm also one of umpteen developers who have played with writing a Conway's Game of Life app. All the ones I've built have used the HashLife algorithm:

https://en.wikipedia.org/wiki/Hashlife

Here's one of my attempts, you can play with it in a browser. There's infinite scrolling, and you can do ridiculous things like start up a glider gun and watch it run out to billions of generations.

http://raganwald.com/hashlife/

The source code is on Github:

https://github.com/raganwald/hashlife

Re: I was bored and made a Conway's Game of Life app in Elixir

#12

Great work! However, one pedantic comment: it doesn't look like Life to me -- it looks like In-Place-Life-Without-Double-Buffering. I can't follow the code, but the NEXT state of a cell should depend strictly on the PREVIOUS state of the cell and its neighbors, not the NEXT state of any of the neighbors. So if you don't double buffer the cells, and execute the rule in-place instead (and presumably scan in row major l…

Also, Zbigniew Rybczynski did some classic studies of life with temporal shearing:

https://www.dailymotion.com/video/xjbiop

Re: I was bored and made a Conway's Game of Life app in Elixir

#13

I think every dev should have a go at Conway's life, I made one a while ago too http://www.markysoft.com/es6life/

Seems to be something traditional. I made one over a decade ago to learn C# and many more for learning other languages since then.

It's good fun to try it with different languages because the base problem is simple enough to learn how to solve it rather quickly.

Re: I was bored and made a Conway's Game of Life app in Elixir

#14

> I was bored and Be proud of your experimentation! We're all fellow geeks here. You don't have to hedge like this with us about spending your time hacking. Thanks for sharing!

I don't think of this as a hedge; rather, it's saying "look what I was able to do in my spare time!"

Maybe half hedge and half humble-brag. I am having fun figuring out what I need to do to handle the server load. :D
Post reply on HN