2010/2/2 Lyndon Maydwell <maydw...@gmail.com>: > Hi Cafe. > > I've made a basic game of life implementation with Haskell and OpenGL: > https://github.com/sordina/Life/ > > I'm intending to improve the performance, and add more advanced > features, but I thought I'd get some feedback first. Can anyone see a > way to make this code more idiomatic, or any optimizations I might > have missed?
Arrays are not fully "idiomatic" for Haskell as they are hard to update functionally. Also, their use incurs quadratic update cost for simple scene with two gliders that fly in different directions. So I advice you to use Data.Map.Map and Data.Set.Set data structures. How? It's an easy question. ;) _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe