Wednesday, December 18, 2019

Re: Jsinterop: java arrays, native arrays, JsArray and strings

  • Arrays, double are mapped to native types.

Not really, for float[] or for double[] there is corresponding Float32Array and Float64Array, or Int32Array for int[].

But the GWT uses JsArray of JsObjects and use JsNumber (boxed double) for any primitive types. 
As result, any generic multiplatform algorithm using arrays is extremely memory and performance inefficient.

Other java->js compilers offer more correct solution.

You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit

No comments:

Post a Comment