[ovirt-devel] GWT vs. Java

Yair Zaslavsky yzaslavs at redhat.com
Tue Oct 7 00:01:13 UTC 2014



----- Original Message -----
> From: "Vojtech Szocs" <vszocs at redhat.com>
> To: "Roy Golan" <rgolan at redhat.com>
> Cc: devel at ovirt.org
> Sent: Monday, October 6, 2014 5:45:55 PM
> Subject: Re: [ovirt-devel] GWT vs. Java
> 
> 
> 
> ----- Original Message -----
> > From: "Roy Golan" <rgolan at redhat.com>
> > To: devel at ovirt.org
> > Sent: Sunday, October 5, 2014 9:16:20 AM
> > Subject: Re: [ovirt-devel] GWT vs. Java
> > 
> > On 10/03/2014 06:19 PM, Vojtech Szocs wrote:
> > >
> > > ----- Original Message -----
> > >> From: "Yair Zaslavsky" <yzaslavs at redhat.com>
> > >> To: "Vojtech Szocs" <vszocs at redhat.com>
> > >> Cc: devel at ovirt.org
> > >> Sent: Friday, October 3, 2014 4:37:36 PM
> > >> Subject: Re: [ovirt-devel] GWT vs. Java
> > >>
> > >>
> > >>
> > >> ----- Original Message -----
> > >>> From: "Vojtech Szocs" <vszocs at redhat.com>
> > >>> To: devel at ovirt.org
> > >>> Sent: Friday, October 3, 2014 4:29:15 PM
> > >>> Subject: [ovirt-devel] GWT vs. Java
> > >>>
> > >>> Hi guys,
> > >>>
> > >>> I've had a discussion with Roy about GWT vs. Java plans,
> > >>> he asked me to share this information, so here we go.
> > >>>
> > >>> GWT 2.6
> > >>> =======
> > >>> - patch pending merge: http://gerrit.ovirt.org/#/c/32135/
> > >>> - support for Java 7 language syntax like <> operator etc.
> > >>> - once patch ^^ is merged, we can consolidate Java language
> > >>>    compliance for whole Engine -> both frontend and backend
> > >>>    can use Java 7 (yey!)
> > 
> > Good news - @amureini prepare the nose of the Animal Sniffer :)
> 
> :D
> 
> > @Vojtech keep us posted so we'll bump the language version of common
> 
> GWT 2.6 upgrade patch will get merged once we do some more GUI
> tests on IE browser. There was also an issue with bad checksum
> for one of Maven (POM) artifacts, I'll contact the JBoss guy..
> 
> > 
> > Curious to know, does GWT have a WebSockets module for 2 way
> > communication with the backend and are we planning to use it?
> 
> Good question. AFAIK, GWT doesn't have "official" API for
> websocket but there are 3rd party libs that could be used,
> for example:
> 
>   https://github.com/sksamuel/gwt-websockets
>   https://github.com/sockjs/sockjs-client
> 
> But moving GUI to REST API is a big task that's ahead of us
> now, 2-way client/server communication is something we could
> do after that (distant future). I'm all for websockets, btw :)
> 
> > 
> > >>> GWT 2.7
> > >>> =======
> > >>> - planned support for *only* Java 8 language syntax like
> > >>>    lambdas etc. but *without* emulating new Java 8 APIs like
> > >>>    streams etc. (Java 8 API emulation should come in GWT 3.0)
> > >>>
> > >>> Likely, GWT 2.7 will remove GWT deRPC implementation on which
> > >>> we currently rely on. (@Martin, can you please share details?)
> > >>>
> > >>> This means that until we move UI to REST API, we can't upgrade
> > >>> post GWT 2.6, so this will put more pressure to work on oVirtJS
> > >>> project in consequence.
> > >>>
> > >>> GWT 3.0
> > >>> =======
> > >>> - ETA early next year?
> > >>> - planned to fully support Java 8 -> both language and APIs
> > >>> - one of key highlights is better integration with JavaScript,
> > >>>    which fits the scenario where GWT "application" is one module
> > >>>    that's part of bigger application (hybrid approach)
> > >> Thanks for sharing with us!
> > >> Can you please elabroate more on this hybrid approach?
> > > With "hybrid approach" I meant a situation where the web application
> > > consists of distinct modules, each module providing some functionality.
> > >
> > > The common base technology for all modules, as well as for the module
> > > infra itself, is JavaScript. Each module can export APIs that other
> > > modules can consume. The whole complexity of web application is broken
> > > by dividing its logical parts into modules. Each module can be built
> > > (and packaged too) as a separate project.
> > >
> > > For a long time, I felt that GWT lived in its "own" world, with vast
> > > majority of GWT use cases = GWT to implement the whole web application.
> > >
> > > GWT 3.0 should provide better JavaScript integration, so GWT can also
> > > more easily fill the role of a "module" as opposed to the traditional
> > > role of "the whole application".
> > 
> > Does this mean you're thinking of replacing some of the frontend parts
> > with plain javascript and html and make them play with the GWT modules?
> 
> That's my secret plan, now it's not secret anymore :D
> 
> Exactly as you wrote, I was thinking of modularizing the whole frontend
> with JavaScript language as the common base between all modules. Some
> modules could be implemented in JavaScript, some could still use GWT.

Awesome!
Correct me if I'm wrong but currently JS frameworks (Angular and such) are more supported than GWT and
have wider community.

> 
> > 
> > >> Cheers,
> > >> Yair
> > >>
> > >>> Regards,
> > >>> Vojtech
> > >>> _______________________________________________
> > >>> Devel mailing list
> > >>> Devel at ovirt.org
> > >>> http://lists.ovirt.org/mailman/listinfo/devel
> > >>>
> > > _______________________________________________
> > > Devel mailing list
> > > Devel at ovirt.org
> > > http://lists.ovirt.org/mailman/listinfo/devel
> > 
> > _______________________________________________
> > Devel mailing list
> > Devel at ovirt.org
> > http://lists.ovirt.org/mailman/listinfo/devel
> > 
> _______________________________________________
> Devel mailing list
> Devel at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/devel
> 



More information about the Devel mailing list