Re:SICP in Clojure
by username223 on Friday January 17, 2014 @09:51PM
(#7079835)
> it already has mutable state, assignment, loops, (pseudo-)OOP and 5 layers of historic brain damage
You mean like Scheme, right? It's got all that, plus an extra couple of layers now that there's R7RS.
Sure, but this is in Clojure. Surely that's not /that/ far away from Scheme: they're Lisp-1's with pervasive immutability. There's not such an emphasis on explicit recursion, but the loop/recur pattern is still pretty close :) (But yes, you would have to of course translate it from Scheme to Clojure, which means not doing the explicit recursion.)
Scheme and/or Common LISP seem to be the common recommendation to embark on SICP journey, just for reference.
Re:SICP in Clojure
by juliangamble on Saturday January 18, 2014 @06:35AM
(#7080785)
Look at Racket (was Dr Scheme) and use the dialect R5RS
http://stackoverflow.com/questions/939582/which-language-in-...
Use the SICP package for Racket, when you get to the chapters with non-standard functions. For example the chapter on streams and the one about the picture language.
http://planet.racket-lang.org/package-source/neil/sicp.plt/1...
Especially scheme, because it's the language used in the original edition.
Don't know scheme? But it's even better that way! Many things will faster click in your head. Like oh wtf we're writing programs in some lists. Oh and now how the fuck your interpreter can evaluate programs far more complex than itself?