Hacker News new | ask | show | jobs
by v4tab 3100 days 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.
4 comments

That's no longer true. ClojureScript can now be self-hosted.

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.

Lumo took advantage of that already according to https://anmonteiro.com/2017/02/compiling-clojurescript-proje...
Thanks for the link. I expected it was just a matter of time!
It can, look at 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?

The fact that you "just walk out of the door" says more about you than about clojurescript or the jvm.
Why? (Honest question)