19 ms·
I keep looking at ClojureScript, and decide to try it. And then I get to the "requires JDK" and just turn around and walk out the door. It seems like an interes
by v4tab 9y ago
I keep looking at ClojureScript, and decide to try it. And then I get to the "requires JDK" and just turn around and walk out the door. It seems like an interesting language, but it would be nice to have it run without that requirement.
- senand 9y agoWhy? (Honest question)
- grzm 9y agoThat's no longer true. ClojureScript can now be self-hosted. https://clojurescript.org/guides/self-hosting https://clojurescript.org/guides/self-hosting [Edit to correct: the following is no longer entirely valid: see downthread.] That said, if you want to benefit from the Google Closure optimizations, you currently do need to use the JVM toolchain. IIRC, there's been work on the Google Closure side to run without a JVM, and if that's the case, there may be opportunities in the future to take advantage of this in the ClojureScript toolchain.
- didibus 9y agoIt can, look at lumo: https://github.com/anmonteiro/lumo https://github.com/anmonteiro/lumo Its a ClojureScript compiler built in ClojureScript, which creates NodeJS targets. Self-Hosted ClojureScript's current downside is that it does not support as many of the ClojureScript libs. That said, the use of the JVM by ClojureScript is just as a build tool. Don't you already have Java installed on your computer anyways?
- vemv 9y agoThe fact that you "just walk out of the door" says more about you than about clojurescript or the jvm.