Is there a plan to compile GWT to ECMAScript 6

538 views
Skip to first unread message

Gourab Panda

unread,
Mar 2, 2016, 9:41:54 PM3/2/16
to google-we...@googlegroups.com
Hi All,

Wanted to know if there is a plan for GWT to compile into ES6. 

If not, will there be a situation when browser's deprecate Javascript and only supports ES6 and there is no way to migrate your application ? May be 10 years down the line ?


Regards
Gourab.

Emilio Bravo

unread,
Mar 3, 2016, 8:14:23 AM3/3/16
to GWT Users

Thomas Broyer

unread,
Mar 3, 2016, 9:35:47 AM3/3/16
to GWT Users


On Thursday, March 3, 2016 at 3:41:54 AM UTC+1, Gourab wrote:
Hi All,

Wanted to know if there is a plan for GWT to compile into ES6. 

Google is working on J2Cl (as mentioned already by Emilio), which is (will be) a transpiler from Java to ES6 (as understood by the Closure Compiler, hence "Cl" in the name; the Closure Compiler –or Babel or whatever– then being possibly used to transpile ES6 to ES5 or ES3, and possibly bundle and optimize all the code).
J2Cl is expected to be the new compiler in GWT 3.0.
 
If not, will there be a situation when browser's deprecate Javascript and only supports ES6 and there is no way to migrate your application ? May be 10 years down the line ?

Any ES3 or ES5 script is a valid ES6 script; all JS engines supporting ES6 do "only" support ES6, there are no "modes" to be triggered by some configuration or what not (contrary to the old E4X for instance).

 

Regards
Gourab.

Gourab Panda

unread,
Mar 3, 2016, 2:30:38 PM3/3/16
to google-we...@googlegroups.com
Thanks Emilio, Thomas for the nice explanation.
I will go through the link you shared and understand more :)

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages