News for hackers. Stuff that matters.
Re:JavaScript Modularity Shaming by skybrian on Wednesday January 07, 2015 @06:58PM (#8854175)
Of course GWT and Dart also do dead code elimination (also known as tree-shaking). There's a reason Google's JavaScript-targeted compilers implement this.

On the other hand, the consistent dedication to writing tiny libraries in JavaScript ecosystem is not a bug. Tree-shaking compilers make it somewhat harder to tell where the bloat is coming from, and that encourages people writing libraries to get sloppy.

Re:JavaScript Modularity Shaming by swannodette on Thursday January 08, 2015 @08:23AM (#8856228)
My experience so far is that writing code that defeats tree shaking is somewhat more difficult when adopting the simple functional style of the Closure Library base libs. Fortunately for ClojureScript, this style is already idiomatic.