Some very old implementations I made of Conway's Game of Life.
The C version is a very direct interpretation of Conway's Game of Life on a Torus. To build it, run
cd c; make
Two blog posts inspired the haskell and ocaml implementations: Piponi's and Kmett's. Both describe cellular automata evaluation as comonadic. The haskell source is better documented and shows what is happening and where. To build it, use
cd hs; stack exec --resolver lts-14.18 -- ghc life.hs
To build the ocaml version,
cd ml; ocamlbuild -lib unix life.native