Wednesday, June 26, 2013

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

On Wednesday, June 26, 2013 4:55:19 PM UTC+2, Carl wrote:
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.

This is only true if you assume my IDs start with 0/1, and slowly grow. I also use Java longs to store 64-bit MurmurHash of Strings (class names, ...), which cover the whole "bit range" of a long. This has the great advantage that it allows things that would otherwise be "variable size" to then be "fixed size" when serialized.

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