Hacker News new | ask | show | jobs
by mkilling 4687 days ago
It struck me how well Carmack's ideas about running all actors in the game world in parallel map to Clojure's agents[1].

Clojure introduces a bunch of interesting ideas on how to handle parallel programming. "Perception and Action" by Stuart Halloway is a great talk to listen to if you're interested[2].

[1] http://clojure.org/agents [2] http://www.infoq.com/presentations/An-Introduction-to-Clojur...

1 comments

In fact one of Rich Hickey's very first demos of Clojure was ants.clj which uses agents to simulate the ants. While not a game but rather a simulation it includes many elements that would also be present in a game. A literate version of ants.clj may be found here: https://github.com/limist/literate-clojure-ants/blob/master/...