This is a design doc that describes a proposal for improving interoperability with GWT and javascript. The proposal provides some essential pieces to provide better and easier interoperability with JS while putting more complex scenarios (e.g. Web Components) and testability into account. Please take a look and provide us some feedback. Cheers, - Goktug
![]() |
Nextgen GWT/JS Interop (Public) |
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
---
You received this message because you are subscribed to the Google Groups "GWT Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-co...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Nice writeup. Comments/questions (since comments seem disabled in the docs):
* @Entry looks great - there has been some discussion in IRC about some way to do this for easier library wrapping code, but every direction we looked at with JSOs ended up with a little more cruft than we really wanted to see. Maybe worth mentioning that $entry doesn't just do exceptions, but also makes scheduleFinally behave as expected.
* Constructors - how is one supposed to new up an object that implements a specific interface without making your own implementation (and thus declaring new implementations)? Are we keeping the static-method-only restriction, or can we use new?
button = new Button.Prototype("Click");
button = Js.Object.create(Button.class); // subject to change
Similarly, how will these objects pass through the java/js barrier - are they to be a special class of objects in JSNI, allowed to be manipulated in plain JS instead of opaque objects, but still able to be instanceof'd?
* Java 8 support/requirement - currently the GWT release jars are compiled to target java 6 (according to common.ant.xml), so that they can be used in a project that supports either 6 *or* 7 (and of course newer). If this new code is used at all internally with java8-only features, does this mean that support will be *dropped* for both 6 and 7 instead of merely *adding* java 8 support?
* (JSNI doc) primitives - why support for long, which JS VMs don't actually support, but not float/short/byte?
* (JSNI doc) forEach - will there be a function/callback interface that will be autowrapped in $entry and bind to be passed in, or will this simply access a JSO that will be treated as a function?
On Tuesday, August 6, 2013 2:24:47 AM UTC-5, Goktug Gokdogan wrote:I've shared an item with you.This is a design doc that describes a proposal for improving interoperability with GWT and javascript. The proposal provides some essential pieces to provide better and easier interoperability with JS while putting more complex scenarios (e.g. Web Components) and testability into account. Please take a look and provide us some feedback. Cheers, - Goktug
Nextgen GWT/JS Interop (Public)
--
--
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/e19b5c6d-cbe0-4993-962b-ca01c3eb6d7a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "GWT Contributors" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit-contributors/TlFmmJfH7Pk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-toolkit-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAN%3DyUA1fWZQQevrPEx1dXkpCJNLJXMAKn7-0ouDJdA2SG1zHNA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/CALUwUVQEshzmwp1ro5_ava8XJa0_viduiFByFCDc8Fe5k8%3Dq8Q%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAN%3DyUA3S_kqqibO_guTNxDYOu6nkWYTQVXHJjxatGN_u0n%3DLJQ%40mail.gmail.com.