News for hackers. Stuff that matters.
Re:Q1 2018 Funding Announcement by bpicolo on Thursday February 08, 2018 @10:02AM (#16332408)
> Can you absolutely trust Clojure(Script) and its tooling

Totally. The closure compiler, despite it's age, is the best Javascript optimizer/uglifier out there. Nothing else comes close. There are several top notch, maintained frameworks as well (re-frame/om)

Re:Q1 2018 Funding Announcement by vemv on Thursday February 08, 2018 @10:05AM (#16332428)
But then again, the npm and externs story is not complete yet...

Sometimes I get the impression that other transpiled langs have npm + decent minification + decent non-minified compiled size, etc without having to wait for years.

Of course, this can be changed (and Clojurists Together can be instrumental)!

Re:Q1 2018 Funding Announcement by bpicolo on Thursday February 08, 2018 @10:20AM (#16332570)
I don't think the externs story necessarily needs to be complete. The building blocks are all there waiting for you in Clojurescript. You might lose out on a particular library you like, or some random bootstrap + js re-integration, but overall clojurescript has a large number of libraries already available to build top notch frontends. The missing bits are usually small - I need support for <specific analytics library> and those are easy to rewrite, especially given an open-source PoC.

The npm ecosystem is absolutely massive, but 99.999% of it is irrelevant for most frontend development.

All that said, clojurescript is not necessarily the best choice for any given org. Mostly just saying there's nothing regarding the ecosystem that should hold you back.

Re:Q1 2018 Funding Announcement by yorwba on Thursday February 08, 2018 @10:45AM (#16332842)
By closure compiler, do you mean https://github.com/google/closure-compiler ? Because I don't think it's related to Clojure in any way.
Re:Q1 2018 Funding Announcement by fulafel on Thursday February 08, 2018 @10:54AM (#16332936)
That's the secret sauce that ClojureScript relies upon for tree shaking, dead code elimination and other optimizations. The Closure library is also used for building blocks of the CLJS runtime.

https://www.clojurescript.org/about/closure

Re:Q1 2018 Funding Announcement by yorwba on Thursday February 08, 2018 @11:28AM (#16333302)
Sure, but it can be used on all things JavaScript. I guess I'm just confused why it'd be brought up as specific tooling for ClojureScript.
Re:Q1 2018 Funding Announcement by KingMob on Thursday February 08, 2018 @11:42AM (#16333416)
That's actually not true. The Closure compiler has certain restrictions on the Js it accepts for advanced mode compilation, so you can't throw just anything at it.

The advantage is best-in-class dead code elimination, which is also why Closure was chosen; to distill the CLojurescript standard library into just the parts needed for a web page requires good DCE. Recently, other Js projects like Rollup and Webpack have gotten good DCE, but when Clojurescript was started, there were no other serious contenders.

Re:Q1 2018 Funding Announcement by bpicolo on Thursday February 08, 2018 @11:43AM (#16333422)
In the context of clojurescript you get 'advanced' optimizations free just by writing clojurescript. In JS you have to buy outside the modern JS ecosystem entirely. The closure compiler doesn't play well with any modern JS tooling, but modern JS tooling is nowhere near as capable at dead-code elimination, minification, and code-rewriting.
Re:Q1 2018 Funding Announcement by snikeris on Thursday February 08, 2018 @10:47AM (#16332864)
ClojureScript uses Google's closure compiler.