Wednesday, June 26, 2013

Re: Is there a way to create "cross-platform scripting" in GWT?

wrt numbers in JavaScript...

All numbers in JavaScript are stored as 64-bit (8-bytes) base 10, floating point numbers. This will probably provide enough space for your IDs. 

On Wednesday, 26 June 2013 12:06:42 UTC+1, Sebastien Diot wrote:

I would like to make a "web game" with GWT, and have some of the code "scripted" rather then compiled, to allow dynamic updates/tweaking without rebuilding and re-deploying.

Now the hard part is, what scripting language could I use to execute the scripts that would both run within the JVM and in JavaScript on the browser?

While "JavaScript" would seem like an obvious answer, I fear it would not do, due to the fact that is doesn't support "longs" natively (which I use a lot as IDs ...). Maybe there is an easy work-around, I haven't actually dived into GWT, yet so I would not know about it. I do know that GWT can compile Java code to work correctly as JavaScript even with long, but I don't know if the same solution can be used within hand-made scripts.


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
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment