News for hackers. Stuff that matters.
Re:Asteroids in under 600 lines of Common Lisp (uses SBCL an... by prospero on Friday August 24, 2012 @05:19PM (#4429744)
Here's an Asteroids clone I wrote in Clojure a few years back, which has less than 400 lines and some neat stuff like procedurally generated 3D asteroids: https://github.com/ztellman/penumbra/blob/master/test/exampl...

Some of the design decisions are discussed in detail at http://ideolalia.com/creating-a-simple-game-in-clojure

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.
Re:Asteroids in under 600 lines of Common Lisp (uses SBCL an... by nemoniac on Saturday August 25, 2012 @07:41AM (#4431809)
Could you update the penumbra README? I'd like to try it out but the instructions are outdated.
Re:Asteroids in under 600 lines of Common Lisp (uses SBCL an... by prospero on Saturday August 25, 2012 @10:45AM (#4432170)
Outdated how? They were working the last time I made a commit a year ago, I'm not sure what could have changed.
Re:Asteroids in under 600 lines of Common Lisp (uses SBCL an... by slig on Friday August 24, 2012 @10:08PM (#4430817)
Thanks for the blog post. Very informative and concise.