Any plans to rewrite Compiler into JavaScript?

101 views
Skip to first unread message

Daniel Steigerwald

unread,
Oct 16, 2012, 5:55:57 PM10/16/12
to closure-comp...@googlegroups.com
Compiler.js would be awesome. Does anyone have an experience with any Java2JS compilation?

Guido Tapia

unread,
Oct 16, 2012, 6:01:34 PM10/16/12
to closure-comp...@googlegroups.com
Why? The compiler is already too slow for large projects.

Alan Leung

unread,
Oct 16, 2012, 6:10:30 PM10/16/12
to closure-comp...@googlegroups.com
On Wednesday, October 17, 2012 8:55:59 AM UTC+11, Daniel Steigerwald wrote:
Compiler.js would be awesome. Does anyone have an experience with any Java2JS compilation?

We talked about it once a while. It is probably possible to roll Closure Compiler into a GWT application or something.

My experience with playing around with Proguard tells me that Rhino has some weird reflection that probably doesn't translate as well into GWT. But I am pretty sure we don't touch that part of the code.


On Tue, Oct 16, 2012 at 3:01 PM, Guido Tapia <guido...@gmail.com> wrote:
Why? The compiler is already too slow for large projects.


Yes. Why would you want to load the compiler into your browser as well? 

Daniel Steigerwald

unread,
Oct 17, 2012, 7:18:57 AM10/17/12
to closure-comp...@googlegroups.com
Not browser, but NodeJS. Today JavaScript is the most fast dynamic language. I would not afraid of speed of compilation.
Compiler.js would fit better in Node.js ecosystem. TypeScript compiler is written in TypeScript.


Dne středa, 17. října 2012 0:10:31 UTC+2 Alan napsal(a):
Reply all
Reply to author
Forward
0 new messages