News for hackers. Stuff that matters.
Re:Talk with Rich Hickey: Time is the New Memory by radu_floricica on Tuesday September 22, 2009 @09:09AM (#836840)
I just started reading Norvig's PAIP, and one of the things that surprised me was seeing lisp code written in a non-functional manner. Of course the code in PAIP evolves and the early iterations are "bad" on purpose, but it's amazing how obviously wrong some early patterns seemed just because I was used to Clojure's more functional style.
Re:Talk with Rich Hickey: Time is the New Memory by lispm on Tuesday September 22, 2009 @05:11PM (#837956)
no, they are not 'bad on purpose'. Peter Norvig shows how to get from quick bottom up prototypes to optimized code. The purpose is to quickly and cleanly as possible get a first version going and then improve that.

Common Lisp programs make heavy use of side effects from imperative code, over destructive operations to the CLOS object system.

Re:Talk with Rich Hickey: Time is the New Memory by radu_floricica on Tuesday September 22, 2009 @06:21PM (#838135)
I haven't programmed at all in lisp and less then a year in Clojure so my opinion doesn't carry much weight, but I did notice that a) imperative code is harder to read and b) later versions look more functional. So for what's worth I'm happy Clojure considers functional style and immutable data as defaults.