News for hackers. Stuff that matters.
Re:Macchiato – A way to build Node web applications using Cl... by v4tab on Thursday December 21, 2017 @02:31PM (#15982010)
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.
Re:Macchiato – A way to build Node web applications using Cl... by grzm on Thursday December 21, 2017 @02:42PM (#15982121)
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.

Re:Macchiato – A way to build Node web applications using Cl... by wiredearp on Thursday December 21, 2017 @02:46PM (#15982166)
Lumo took advantage of that already according to https://anmonteiro.com/2017/02/compiling-clojurescript-proje...
Re:Macchiato – A way to build Node web applications using Cl... by grzm on Thursday December 21, 2017 @02:58PM (#15982276)
Thanks for the link. I expected it was just a matter of time!
Re:Macchiato – A way to build Node web applications using Cl... by didibus on Thursday December 21, 2017 @02:52PM (#15982223)
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?

Re:Macchiato – A way to build Node web applications using Cl... by vemv on Thursday December 21, 2017 @02:52PM (#15982228)
The fact that you "just walk out of the door" says more about you than about clojurescript or the jvm.
Re:Macchiato – A way to build Node web applications using Cl... by senand on Thursday December 21, 2017 @02:39PM (#15982086)
Why? (Honest question)