News for hackers. Stuff that matters.
Re:Asteroids in under 600 lines of Common Lisp (uses SBCL an... by fusiongyro on Friday August 24, 2012 @05:36PM (#4429814)
The Lisp code used multiple dispatch to handle collisions between objects, whereas your Clojure code instead uses list comprehensions to generate pairs of colliding objects by type. I know Clojure also supports multiple dispatch, so I'm wondering if you could comment on this design decision.
Re:Asteroids in under 600 lines of Common Lisp (uses SBCL an... by prospero on Friday August 24, 2012 @06:16PM (#4429976)
The only collisions I care about in my implementation are asteroid/ship and bullet/asteroid, and they're easier to express directly. The OP's version appears to have many more types of collisions, which makes multiple dispatch a more obvious choice.