const y = new Float32Array( 10000 ); console.log( x[0] );
The code above works. This code, however...
const y = new Float32Array( 10000 );
const y = new Float32Array( 10000 );
console.log( x[0], y[0] );
...gives JerryScript "out of memory" exception.
@JonFitbit JerryScript can support larger heap size, up to 512K in the same configuration with compressed pointers as you have in FitbitOS. Don't you think that 64K heap limit is too small? I just hit the limit in a real application, and this is the showstopper. Can it be increased?
I'm happy to announce that Versa 2 has 128K memory now :). Thanks to the recent SDK update.
Best Answerimport { memory } from "system";
console.log("JS memory: " + memory.js.used + "/" + memory.js.total);JS memory: 10256/131064
Yes, Sense and versa 3 have 128KB of Heap size!
Best Answer