clojurescript
clojurescript copied to clipboard
Clojure to JS compiler (patched to allow compiling of compiler to ClojureScript)
Implementing tagged reader literals is the only thing remaining that will allow cljs-in-cljs to compile and run all the tests in `test/cljs/cljs/core_test.cljs`.
For example, this works: ``` cljs.user=> (load-file "../test/cljs/cljs/quick.cljs") cljs.user=> (in-ns 'cljs.test.quick-tests) cljs.user=> (run-tests) ``` However, this does not: ``` cljs.user=> (load-file "../test/cljs/cljs/quick.cljs") cljs.user=> (cljs.test.quick-tests/run-tests) # at line 1 ```
The cljs-in-cljs compile is slower than the regular ClojureScript compiler. I suspect there are some low hanging fruit that could be addressed easily to increase performance. Using profiling tools might...
Looks like cljs `format` uses google clojuse [stringformat](http://closure-library.googlecode.com/svn/docs/closure_goog_string_stringformat.js.html) that implements python like formatting instead of Java like one, which can cause issues like #10
ClojureScript: ``` cljs.user=> (#(prn %) 1 2) 1 cljs.user=> (#(prn %1 %2) 1) 1 nil ``` Clojure: ``` user=> (#(prn %) 1 2) ArityException Wrong number of args (2) passed...