3 ms·
Did you mean Google Web Toolkit? That compiles Java to JS, and is similar to Script# (which compiles C# to JS). Whereas Closure Compiler is an optimizing compil
by azakai 15y ago
Did you mean Google Web Toolkit? That compiles Java to JS, and is similar to Script# (which compiles C# to JS). Whereas Closure Compiler is an optimizing compiler for JS, it compiles JS to (better) JS. (The Microsoft article did mention Google Web Toolkit, which was nice of them.)
GWT and Script# are both quite mature at this point, it looks like. Very interesting stuff. (However, GWT is probably losing focus inside Google to Dart, so I am not sure of its long-term prospects. It's open source though so anyone can continue it if they want.)
- munificent 15y agoClosure compiler doesn't just compile vanilla JS. It supports type annotations in comments and will use those to generate code. It's type system supports classes and interfaces. The Closure library has support for class-style inheritance. Programming in Closure-style JS feels like you're using an optionally-typed class-based language, just one with really terrible syntax.
- azakai 15y agoThanks, I didn't know that. Perhaps those type annotations could help optimize compiled code (like from Emscripten).