dragome / dragome-sdk

Dragome is a tool for creating client side web applications in pure Java (JVM) language.
http://www.dragome.com
Other
80 stars 20 forks source link

Valid support operation with long 64-bit java #161

Open nicolaichuk opened 7 years ago

nicolaichuk commented 7 years ago

copy from https://github.com/dragome/dragome-sdk/issues/157

javascript work only with 32-bit value when used bitwise operation.

https://stackoverflow.com/questions/3081271/number-of-bits-to-represent-a-number

And used 53-bit value for other integer operation

https://stackoverflow.com/questions/17320706/javascript-long-integer

I do not sure about valid mirror operation with 64-bit long value between java and javascript code. Maybe need write same wrapper over java native long value.

fpetrola commented 7 years ago

Yes, we can use something like https://github.com/peterolson/BigInteger.js, but it's not a small change for the compiler.