While I don’t really mind Clojure’s long startup time during CLJS development, there can be reasons to speed it up for one-time tasks like creating JS production builds or running tests.
For example, we have a Python backend and my colleagues complain about CI tasks taking so long because of ClojureScript compilation, which requires lengthy Java warmup in contrast to Python interpreter.
Since there is no need for a JIT in this case, could it be possible to somehow speed it up using GraalVM? I’ve seen some examples of how to compile Clojure code into native binary with Graal’s native-image
, but so far haven’t found an attempt to do this with Clojure and ClojureScript itself. It’s just a JAR, after all .
Disclaimer: I’m a frontend developer, I don’t know much about Java or Graal, so sorry if no
is the obvious answer here .