Thursday, December 19, 2013

Re: GWT/JavaScript code generation tool

You guys should look at the keynote Ray Cromwell gave at the GWT.create conference where he talked about JS Interop planned for GWT 3.0, which will use annotations to wrap more easily JS libraries within GWT code. One goal is to do something similar on the JS side (some type of JS annotations) to allow automatic generation of a GWT Wrapper from a given JS library:


There was also a presentation that covered more details:


On Thursday, December 12, 2013 4:07:39 PM UTC-5, Thomas Lefort wrote:
What if there were some level of interaction? for instance "tick the types supported" whenever it's ambiguous, and then it generates accordingly.


On Wednesday, 11 December 2013 20:19:26 UTC+1, Jens wrote:
For example take the following JS code

function doSomething(o){

}

How would a tool what the type of o is. Object ? Number ? String ? 


That's what I thought too and I think thats the reason why such a tool does not exist. JavaScript is too dynamic to make such code generation work reliably.

-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" 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/groups/opt_out.

No comments:

Post a Comment