Re: Are there already some JSInterop repositories available somewhere?

2016-08-25 Thread Renaud Pawlak
True, JSweet is not a Java emulation, so there are some limitations (for example, no runtime distinction between int and double). However, it is not accurate that you cannot share code between a Java server and a web client. If your code only uses the Java APIs as defined in J4TS (it is

Re: Are there already some JSInterop repositories available somewhere?

2016-08-24 Thread Bruno Salmon
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

Re: Are there already some JSInterop repositories available somewhere?

2016-08-24 Thread Vassilis Virvilis
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

Re: Are there already some JSInterop repositories available somewhere?

2016-08-23 Thread Bruno Salmon
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: > > >

Re: Are there already some JSInterop repositories available somewhere?

2016-08-23 Thread Jens
A post from the thread I linked before: https://groups.google.com/d/msg/google-web-toolkit-contributors/6ycG2nm0OSM/mUP-GnJ0EAAJ So once the elemental2 generator is open source and supports typescript definition files, you should be able to use everything that

Re: Are there already some JSInterop repositories available somewhere?

2016-08-23 Thread Bruno Salmon
Thanks but Elemental only gives the basics (such as the DOM API and some HTML5 features). I'm more asking about a project that would expose many JS libraries. A kind of set like this one offered by JSweet. I would like for example use the pixi.js

Re: Are there already some JSInterop repositories available somewhere?

2016-08-23 Thread Jens
Take a look at Elemental 2: https://groups.google.com/d/msg/google-web-toolkit-contributors/6ycG2nm0OSM/RW3psRrqAAAJ Its experimental but covers all browser APIs (auto generated from closure externs: https://github.com/google/closure-compiler/tree/master/externs). Its the JsInterop version of

Are there already some JSInterop repositories available somewhere?

2016-08-23 Thread Bruno Salmon
hi, I haven't used JSInterop yet but in all examples I watched, people are writing all their interfaces themselves including the DOM API... I guess this is a temporary situation because JSInterop is new and that some JSInterop repositories will appear in the future so we will have most of JS