kanaka / clojurescript

Clojure to JS compiler (patched to allow compiling of compiler to ClojureScript)
189 stars 15 forks source link

Start compiling cljs to JS using node / browser #22

Open Gozala opened 11 years ago

Gozala commented 11 years ago

I believe this is a goal, but not sure what's are the blockers to get there. Maybe we can discuss and link remaining issues here.

kanaka commented 11 years ago

There are several parts to this:

I have already made a fair amount of progress porting closure.clj and getting initial require/use support to work. I'm working through macro/namespace interaction and the :use-macros/:require-macros issues right now. The code is really to messy to commit yet.

kanaka commented 11 years ago

This is getting much closer. The cljs-in-cljs Node.js based compiler can now compile most of itself with the exception of core.cljs.

Here is the process for compiling the noderepl with the compiled compiler (woah):

arthuredelstein commented 11 years ago

I tried copying the .clj files to .cljs, and the analyzer then got pretty far through core.cljs, but got stuck on various instances of loop...recur (Assert failed: Can't recur here). So far I couldn't figure out what was going wrong. Is there any uncommitted work on this issue, before I try harder?

kanaka commented 11 years ago

@arthuredelstein You've gotten to the same point as me. I haven't had any cycles to dedicate to this in the past couple of months because my company was acquired and things are little busy for me. If you would like to tackle it, that would be great!