Thursday, January 21, 2016

Re: JsInterop and indexed types

Yes, this is really needed. 
Also it is needed to have a compiler switch that compiles all java arrays an native typed arrays. 
So that I can write code in Java, and use native platform arrays when needed in Graphics and Sound 
(expect all java arrays to be native typed arrays in JS)

Famous TeaVM also can`t do that, unfortunately. 
TeaVM java array class has a field "data" with the underlying native array, so that each access requires to read that field which dramatically hurts real-time performance.

   

On Wednesday, January 20, 2016 at 11:32:20 PM UTC+3, rhmoller wrote:
Hi

Is there any way of mapping to indexed types via JsInterop. Fx to model Uint8Array

var uint8 = new Uint8Array(2);
uint8[0] = 42;


I have not any luck so far.

/Rene

--
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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment