> How does this work? > > This isn't a rewrite of Closure in JavaScript. Instead, we compile > the Java source to JS to run under Node, or even inside a plain old > browser. Every post or resource you see about Closure Compiler will > also apply to this version. Pretty wild.
I'm really interested in how they did that. Do they have an internal Emscripten equivalent for Java bytecode? Or would it be more like a source code conversion compiler a la Nim or Haxe?
Closure Compiler in JavaScript
71–80 of 115 posts
Re: Closure Compiler in JavaScript
#72What's with all these similar and confusing names; Closure Compiler, Clojure, Clozure CL?
So "Closure" is a real comp sci word used to describe variable scope lifetimes in languages includes JavaScript and others. So when google named their project, they basically took a word from JavaScript/CompSci that starts with the same letter as "Compiler" (plus other similar sounds). I don't think there's much more to it than that. "Clojure" is a programming language again based on the regular word "closure" but wi…
Isn't it because it can optimize the output so that it only includes those dependencies that the program references, i.e. the whole program is like a closure that closes over its dependencies?
Re: Closure Compiler in JavaScript
#73This is Google's JavaScript to JavaScript compiler, originally written in Java, but compiled with their Java to JavaScript compiler so that it runs in JavaScript... fair enough...
Re: Closure Compiler in JavaScript
#74This is Google's JavaScript to JavaScript compiler, originally written in Java, but compiled with their Java to JavaScript compiler so that it runs in JavaScript... fair enough...
Re: Closure Compiler in JavaScript
#75Re: Closure Compiler in JavaScript
#76Re: Closure Compiler in JavaScript
#77Re: Closure Compiler in JavaScript
#78Why would I use this over babel?
Re: Closure Compiler in JavaScript
#79What's with all these similar and confusing names; Closure Compiler, Clojure, Clozure CL?
So "Closure" is a real comp sci word used to describe variable scope lifetimes in languages includes JavaScript and others. So when google named their project, they basically took a word from JavaScript/CompSci that starts with the same letter as "Compiler" (plus other similar sounds). I don't think there's much more to it than that. "Clojure" is a programming language again based on the regular word "closure" but wi…
Re: Closure Compiler in JavaScript
#80Interesting to see what the use case for this will be - will removing the JVM dependency really outweigh the increase in compilation time?