Re: What is happening to GWT???

2016-07-01 Thread Michael Zhou
GWT 2.8 will hopefully be released soon-ish: https://github.com/gwtproject/gwt-site/pull/181 Google is developing a new Java-to-JavaScript transpiler called J2CL (Jackal) that might serve as the core of GWT 3. On Friday, July 1, 2016 at 1:56:03 PM UTC-4, H Maner wrote: > > Hello all, > > I am s

Re: Jsni replacement in 2.8?

2016-05-11 Thread Michael Zhou
Take a look at the official JsInterop 1.0 specs: https://docs.google.com/document/d/10fmlEYIHcyead_4R1S5wKGs1t2I7Fnp_PaNaa7XTEk0/view On Wednesday, May 11, 2016 at 5:27:04 PM UTC-4, Ali Akhtar wrote: > > In GWT 2.8, what should be used in place of Jsni methods? Such as for > integrating a 3rd p

Re: GWT 2.8 delays

2016-05-09 Thread Michael Zhou
> I misunderstood. I assumed that GWT and J2CL were basically the same > thing (or that GWT would be renamed J2CL! > > On Monday, 9 May 2016 17:30:45 UTC+1, Michael Zhou wrote: >> >> Google is definitely interested in Java 8 emulation, but most efforts are >> being spen

Re: GWT 2.8 delays

2016-05-09 Thread Michael Zhou
Google is definitely interested in Java 8 emulation, but most efforts are being spent on J2CL, which goes from Java 8 -> Closure-style ES6. On Sunday, May 8, 2016 at 4:53:17 PM UTC-4, steve Zara wrote: > > Thank you - it does highlight where help can be given. I'm really > surprised at the situ

Re: GWT app as includable javascript library

2016-04-20 Thread Michael Zhou
Yes. The SSO linker is what you want. See my example at: https://github.com/google/closure-compiler/blob/68002f860cc461daf04c089803fdff865d256e5e/src/com/google/JsComp.gwt.xml#L27. Credit to Greg from: https://groups.google.com/d/msg/google-web-toolkit/D4_pJY-62x0/r555EF3YCQAJ. On Thursday, Ap

Re: Compile a Java application into a single JavaScript file?

2016-04-20 Thread Michael Zhou
ile for single browser / language. > > On Sunday, December 13, 2015 at 2:58:21 AM UTC+1, Michael Zhou wrote: >> >> I have used GWT to compile a Java application (Google's Closure Compiler >> <https://github.com/google/closure-compiler>) into a GWT app

Re: GWT 2.8 next release

2016-04-08 Thread Michael Zhou
I think it's fine to wait for the in-review Java 8 API additions to land. You can use 2.8.0-beta1 for now. On Friday, April 8, 2016 at 4:43:35 PM UTC-4, Ming-Yee Iu wrote: > > Is there an ETA on RC1? How long is it expected to take to take to emulate > all those Java 8 APIs? Couldn't API emulati

Re: Output ECMAScript 5 strict mode?

2016-04-06 Thread Michael Zhou
thing like that: https://gwt-review.googlesource.com/#/c/7710 > > On Thursday, April 7, 2016 at 12:25:33 AM UTC+3, Michael Zhou wrote: >> >> Bump. Anyone? >> >> On Sunday, March 27, 2016 at 4:01:05 PM UTC-4, Michael Zhou wrote: >>> >>> Is there a way

Re: Output ECMAScript 5 strict mode?

2016-04-06 Thread Michael Zhou
Bump. Anyone? On Sunday, March 27, 2016 at 4:01:05 PM UTC-4, Michael Zhou wrote: > > Is there a way to force GWT to output JS that is in ECMAScript 5 strict > mode (ie. with the "use strict;" directive)? > -- You received this message because you are subscribed to the Goo

Re: String formatting in GWT 2.6+

2016-04-01 Thread Michael Zhou
Our project, Google Closure Compiler, has a basic implementation of String.format at https://github.com/google/closure-compiler/blob/master/src/com/google/javascript/jscomp/parsing/parser/util/format/SimpleFormat.java It only supports a couple of replacements, but if you don't need complex form

Output ECMAScript 5 strict mode?

2016-03-27 Thread Michael Zhou
Is there a way to force GWT to output JS that is in ECMAScript 5 strict mode (ie. with the "use strict;" directive)? -- 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 t

Re: Any progress with GWT 2.8.0

2016-03-23 Thread Michael Zhou
I think you can start with gwt-2.8.0-beta1. I don't expect many breaking changes between gwt-2.8.0-beta1 and the final GWT 2.8.0 release. On Wednesday, March 23, 2016 at 2:43:40 PM UTC-4, steve Zara wrote: > > It's approaching the end of March 2016. The last steering group meeting > was 10th Fe

Re: JsInterop: Set length of native JavaScript array?

2016-03-19 Thread Michael Zhou
erface NativeArray { > @JsProperty void setLength(int length); > } > > ((NativeArray) someArray).setLength(42); > > > On Mon, Mar 7, 2016 at 7:53 PM, Michael Zhou > wrote: > >> I'm trying to set the length of a native JavaScript array represented as >> an

Re: GWT suitable as a general purpose Java to JavaScript translator?

2016-03-14 Thread Michael Zhou
Having done that myself, my guess is that it's suitable, and can probably get you more than 50%. It depends on how many external libraries you use (eg. Google Gson is not GWT-compatible because the use of reflection, and fortunately most of Guava is GWT-compatible) and how many JRE classes / me

JsInterop: Set length of native JavaScript array?

2016-03-07 Thread Michael Zhou
I'm trying to set the length of a native JavaScript array represented as an int[] in Java. Is it currently possible in JsInterop to do so? https://gwt-review.googlesource.com/#/c/5771/16/user/super/com/google/gwt/emul/java/util/BitSet.java@134 -- You received this message because you are subscri

Re: Update Jetty in GWT?

2016-02-10 Thread Michael Zhou
+1, it will be great if GWT 2.8 ships with an updated Jetty. On Friday, May 29, 2015 at 8:47:32 PM UTC-4, P.G.Taboada wrote: > > Hi, > > I read through some comments, issues and code reviews but I am not sure if > an updated Jetty will land in GWT 2.8. > > What is the current status of Jetty upda

Re: Compile a Java application into a single JavaScript file?

2015-12-21 Thread Michael Zhou
That site runs on a GWT app built from Google's internal Bazel BUILD rules, not from the open-source Maven pom-gwt.xml... On Sunday, December 20, 2015 at 8:13:24 AM UTC+8, Thomas Broyer wrote: > > > > On Saturday, December 19, 2015 at 5:09:23 PM UTC+1, Michael Zhou wrote: >

Re: Compile a Java application into a single JavaScript file?

2015-12-19 Thread Michael Zhou
Well there's a .nocache.js and an .cache.js file. Ideally I want to have a single .js file that I can load from any .html file. On Sunday, December 13, 2015 at 11:19:54 PM UTC+8, Thomas Broyer wrote: > > > > On Sunday, December 13, 2015 at 2:58:21 AM UTC+1, Michael Zhou wrote:

Re: GWT SDM Polymer

2015-12-19 Thread Michael Zhou
Might be unrelated, but as far as I know *-XjsInteropMode *is deprecated and might be removed in the final 2.8.0 release. GWT-Polymer will probably migrate to *-generateJsInteropExports* instead. On Saturday, December 19, 2015 at 10:58:37 PM UTC+8, Ed wrote: > > H, > I am trying to get SDM worki

Compile a Java application into a single JavaScript file?

2015-12-12 Thread Michael Zhou
I have used GWT to compile a Java application (Google's Closure Compiler ) into a GWT application . Currently, GWT outputs a .cache.js file and a .nocache.js file. I wonder if it's possibl

com.google.jsinterop not in google-snapshots?

2015-11-23 Thread Michael Zhou
I'm getting "Could not find artifact com.google.jsinterop:jsinterop:pom:1.0.0-SNAPSHOT in google-snapshots (https://oss.sonatype.org/content/repositories/google-snapshots)" in one of my Maven builds. Could someone publish that jar to google-snapshots? -- You received this message because you a

Mojo's maven-gwt-plugin or Thomas's maven-gwt-plugin?

2015-11-17 Thread Michael Zhou
I'm trying to build a Java application with GWT, using maven as the build system. I'm trying to decide which maven-gwt-plugin to use. The project's directory structure doesn't follow Maven convention, so I guess I will run into some problems with Thomas' plugin? -- You received this message bec