Wednesday, August 24, 2016

Re: Are there already some JSInterop repositories available somewhere?

There is still a big difference between JSweet and GWT because although JSweet supports Java 8 syntax, it doesn't do any JRE emulation. So JSweet is much simpler and it can be a good choice if you just want to write your JS code from Java (with all the advantage provided by your Java IDE like auto completion, refactoring, etc...) and if you don't need to refer to any JRE class (List, Map, etc...) in your code. With JSweet your code is only a Java (better) view of your JS code. But if you want to use the JRE emulation or share some Java code between your frontend and your backend (client and/or server), JSweet can't do it whereas GWT can.

The candies are a big advantage of JSweet but yes GWT will soon fill the gap and offer exactly the same so, as you said, it's really cool.

My understanding is that JsInterop.xyz is not hand crafted and has a generator. But it is an individual initiative (and not sure it is still active) whereas Elemental2 and its generator are more official (and active) parts of the GWT project.

It seems we don't know yet exactly when the Elemental2 generator will be out. Very exciting stuff but let's be patient first...


On Wednesday, 24 August 2016 13:37:03 UTC+2, Vassilis Virvilis wrote:
Bruno thanks for the links. I didn't know about jsweet and jsinterop.xyz.

It would be really cool if GWT could tap on all of these js libraries (candies) offered by jsweet. Then of course the differences between GWT and jsweet become hard to see.

jsinterop.xyz is of also interesting. Isn't this the same thing as elemental2 - DOM and window APis are exposed via jsinterop - what's the difference?
The only difference I can spot is the fact that jsinterop.xyz looks like hand crafted as opposed to the automated elementa2.

    Vassilis

On Tue, Aug 23, 2016 at 10:26 PM, Bruno Salmon <dev.s...@gmail.com> wrote:
I didn't know there was a DefinitelyTyped to JSInterop generator project in the pipeline, glad to hear about it, it's exactly what I was looking for :-)

Thank you. 


On Tuesday, 23 August 2016 19:16:19 UTC+2, Jens wrote:
A post from the thread I linked before:


So once the elemental2 generator is open source and supports typescript definition files, you should be able to use everything that https://github.com/DefinitelyTyped/DefinitelyTyped provides (which is what JSweet also uses)

For the time being there is no such generator, you would need to write the bindings yourself. Also the author of jsinterop.xyz has not published its generator (at least not at the time I looked at it).

-- J.

--
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-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.



--
Vassilis Virvilis

--
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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment