Tuesday, December 1, 2015

Re: Teavm

Not sure if TeaVM serves different need than GWT. Seems like both want to provide a better alternative to JavaScript.
Now TeaVM does not have anything equivalent to GWT widgets but then  it seems, after watching the GWT Create session videos, the recommendation, for newer apps, is not to use the GWT widgets anyway.
Instead of GWT widgets the direction seems to be to use more HTML5 based components like web components polymer etc which technology like the newer GWT JSInterop could make it easier to consume.
Like GWT JSInterop , TeaVM has something called JSO which also propose to make consuming java script libraries easier.
I haven't used JSInterop or JSO so can't compare the two.

Anyway, what is interesting is the Java Source Code to Javascript vs Java Byte Code to JavaScript issue.
Wonder if GWT creators ever debated this issue when they started work on GWT.






On Tuesday, December 1, 2015 at 12:28:20 PM UTC-6, Adam M wrote:
TeavVM seams be very interesting project however for me it looks like it serves different needs that GWT. It has tons of very interesting stuff and using Java Byte Code for compilation to JavaScript makes it almost 100% language agnostic as source code input (in theory - you can compile it to byte code and run it on JVM - you can run it with TeaVM - of course with some reasonable restrictions because of JavaScript nature).
However for me there are two major show stoppers for broad adoption in production:
 - project is still in early growing phase 
 - virtually this is one pony show - except Alexey there are no major contributors (nothing against Alexey of course he is brilliant guy)

On Tuesday, December 1, 2015 at 10:43:44 AM UTC-5, Satguru Srivastava wrote:
So, I recently came across TeaVM (http://teavm.org/)
Similar to GWT but unlike GWT, which compiles Java Source Code to JavaScript, TeaVM compiles Java Byte Code to JavaScript.
It is an interesting approach.
The big advantage to this approach is that you do not have to create and maintain your own compiler.
You ride on the back of the JavaC compiler and can take advantage of the optimizations, latest changes and updates made to the compiler.
So while GWT is working on supporting Java 8 , TeaVM already provides support for that.

What do you guys think?
What are the pros/cons of this approach ?





--
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-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment