On Sat, Feb 20, 2010 at 3:59 PM, Joop Kiefte <iko...@gmail.com> wrote: > I read this part... > > http://www.reddit.com/r/programming/comments/b3sb1/golisp_a_lisp_interpreter_in_go/ > > and thought, would someone be able to do that for clojure? (the > Clojure in Clojure stuff might make this easier :)) > > Is this a weird idea?
Clojure supports compilation, so might as go all the way and have add a golang target to complie Clojure code directly to golang code. Not a weird idea at all. :-) > I like a lot of ideas in go, and it's speed, but Clojure is just some > bits nicer. When we have clojure on go, we can have compiled clojure > without java runtime and fast, can't we? I don't know if you'll get better runtime speed out of golang or not, but I bet you'd get much better startup speed, and for some use cases that's highly desirable. > It sure has advantages, and as a toy project it might be cool. And > most of Clojure's code is in clojure anyway, so that eases porting I > guess. Here I'm afraid you may be disappointed. Currently all of Clojure's reader, compiler, persistent data structures (vector, list, maps, queues, and sets), reference types (refs, agents, vars, etc.), and much of the support code (STM, namespaces, etc.) are all written almost entirely in Java. This is already beginning to change (see Rich's recent work on cells and generic vectors), but there's quite a ways to go yet. When that work is done, compiling Clojure to golang might indeed be a fun project. --Chouser http://joyofclojure.com/ -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en