News for hackers. Stuff that matters.
Re:Compiling ClojureScript Projects Without the JVM by flavio81 on Thursday November 02, 2017 @09:33AM (#15610232)
TL;DR:

1. Lumo runs ClojureScript without the need for a JVM. It relies on Node.js and Google V8.

2. ClojureScript compiler is self-hosted, thus:

3. Now you can compile ClojureScript without the need for a JVM. As a bonus, enjoy shorter start-up times.

Re:Compiling ClojureScript Projects Without the JVM by ambulancechaser on Thursday November 02, 2017 @10:49AM (#15610876)
I think the article was saying that the javascript version of the google closure library is slower than the jvm based version so this would actually be a little bit slower.

Further, it has a serious restriction in that the version of cljs used by lumo itself is now the version of cljs that your project must use.

The cljs version is a pretty serious caveat but this seems like a really nice milestone on quite a bit of work. kudos to anmonteiro

Re:Compiling ClojureScript Projects Without the JVM by divs1210 on Thursday November 02, 2017 @11:08AM (#15611064)
I love this! Cljs has seen some huge leaps recently! I hope the momentum keeps building. Expo + Clojurescript is the stuff of dreams!
Re:Compiling ClojureScript Projects Without the JVM by sova on Thursday November 02, 2017 @12:35PM (#15611941)
Expo? I'm very intrigued... please tell me more :)
Re:Compiling ClojureScript Projects Without the JVM by ledgerdev on Thursday November 02, 2017 @12:53PM (#15612079)
Re:Compiling ClojureScript Projects Without the JVM by divs1210 on Thursday November 02, 2017 @12:56PM (#15612108)
Indeed!
Re:Compiling ClojureScript Projects Without the JVM by sova on Thursday November 02, 2017 @01:57PM (#15612635)
Uh.Mazing. Hey, do you know offhand if there is an easy way to move things into the App Store, having made them with Expo? This is so cool! :D
Re:Compiling ClojureScript Projects Without the JVM by jiyinyiyong on Thursday November 02, 2017 @12:01PM (#15611568)
Also, you can "compile ClojureScript without configuring JVM" with https://github.com/thheller/shadow-cljs
Re:Compiling ClojureScript Projects Without the JVM by chrisseaton on Thursday November 02, 2017 @10:52AM (#15610902)
ClojureScript compiles to JavaScript doesn't it? And isn't ClojureScript written in ClojureScript? So why would you need a JVM in the first place? What is new?
Re:Compiling ClojureScript Projects Without the JVM by evilduck on Thursday November 02, 2017 @11:03AM (#15611023)
Google Closure Compiler being available to JS is relatively new. That was previously a JVM only ability.
Re:Compiling ClojureScript Projects Without the JVM by chrisseaton on Thursday November 02, 2017 @11:19AM (#15611181)
Why do you need Closure though? If ClojureScript's compiler compiles to JS, why do you need Closure? You already have JS code and can already run it.
Re:Compiling ClojureScript Projects Without the JVM by oneweekwonder on Thursday November 02, 2017 @12:07PM (#15611617)
As mentioned cljs needs the google closure tools, basicly for Libraries, Dependency management and Aggressive code minification. Clojurescript has a short about[0] on their website.

[0]: https://clojurescript.org/about/closure

Re:Compiling ClojureScript Projects Without the JVM by jnmandal on Thursday November 02, 2017 @11:35AM (#15611327)
ClojureScript relies on closure compiler for dead code elimination.
Re:Compiling ClojureScript Projects Without the JVM by namelos on Friday November 03, 2017 @06:40AM (#15618072)
So could we make a Webpack loader form this?