03-23-2018 16:14 - edited 03-23-2018 16:31
03-23-2018 16:14 - edited 03-23-2018 16:31
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?
09-18-2020 22:49
09-18-2020 22:49
I'm happy to announce that Versa 2 has 128K memory now :). Thanks to the recent SDK update.
09-19-2020 15:16
09-19-2020 15:16
Do you think this will be the case for the new Versa 3 and Sense?
10-05-2020 04:33
10-05-2020 04:33
import { 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!