[CRRBV-16] Support bootstrapped ClojureScript Created: 23/Jan/17 Updated: 03/Apr/17
|Reporter:||Mike Fikes||Assignee:||Michał Marczyk|
Revise code to support bootstrapped ClojureScript.
(This can be done with a few minor changes to the clojure.core.rrb-vector.macros namespace.)
|Comment by Mike Fikes [ 23/Jan/17 10:58 AM ]|
To test the above patch, I updated the project.clj a little to get lein cljsbuild test to work, and then ran the unit tests using jsc out/test.js, and it reported that all tests passed.
I also loaded the macros namespace into into the shipping ClojureScript JAR and exercised things with assertions enabled to ensure the change is good, using this to start things up:
I also tested things in bootstrapped ClojureScript using Lumo (https://github.com/anmonteiro/lumo), loading the jar using
and exercising the API a little, particularly with respect to vector creation.
FWIW, core.rbb-vector has been working fine with bootstrapped ClojureScript since May 2016 within Planck (https://github.com/mfikes/planck/) as Planck uses Fipp, which uses core.rbb-vector. The revisions in this ticket are only to address what was needed to make core.rbb-vector be dynamically loaded into a a bootstrapped ClojureScript environment (Planck AOT compiles things, and the macros namespace of core.rbb-vector is compiled by JVM ClojureScript, thus sidestepping the specific issues addressed in this ticket.)
|Comment by Mike Fikes [ 03/Apr/17 3:44 PM ]|
A recent development that could help in supporting bootstrapped ClojureScript is a tool that facilitates running unit tests in the Lumo and Planck self-hosted environments: https://github.com/mfikes/tach