Friday, December 18, 2015

Re: use of large java math library from javascript

Yes,
in the specific case of the post we essentially 'nullified' the referenced parts of java.io and left some alert just in case we will end trying to use it (IIRC). 

Reading a file from a browser is somewhat different than in a jvm and you probably need to work on the library itself (and eventually you can super-source classes in the library too) but for  a specific use  maybe you can end up with and and-hoc implementation of some part of java.io that works in the context.

Cheers,
   Alberto. 


On Fri, Dec 18, 2015 at 5:16 PM Andreas Plesch <andreasplesch@gmail.com> wrote:

On Friday, December 18, 2015 at 10:37:59 AM UTC-5, Alberto Mancini wrote:
Hello,
well, in my opinion "porting large existing java libraries" is one of the strengths of GWT and in my experience it works really well in this.

Were to find informations. 

Well, JSInterop is the way for the part  "use the exposed, public classes from Javascript."

Thanks, this is very instructive, in particular the talk. I would have to do quite a bit of annotating, it looks like. Is there a WebIDL approach using an external file as well ?
 
For the part of transpiling the library you need  more or less to transform the library in a GWT module, i think  you need
to follow

http://www.gwtproject.org/doc/latest/DevGuideOrganizingProjects.html , where you will find essentially what a module is and what <super-source> is intended to (in case you need) and http://www.gwtproject.org/doc/latest/RefJreEmulation.html that covers the emulated jre. 
 
Yes, I just discovered this. Hopefully, the emu would cover most what is used.
 
I'm biased about that but a few years ago we wrote a post on this subject 
old but still not completely useless.  

This looks similar, and talks a bit about (unused) java.io . Should be very helpful.

Thanks !
 



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

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