• For a project I would like to run a discrete wavelets tranform on my Bangle.js 2 watch.

    Because of that, I am wondering if it is possible to install an existing npm package (namely https://www.npmjs.com/package/discrete-wavelets ) in Espruino, to make its functionality available within my JS project.

    Concrete questions I am pondering about:

    • Is it possible at all to install an npm package in Espruino?
    • Which npm package size is okay for the Bangle.js 2 watch - especially when it comes to memory?
    • Can the code of the npm package be stored in and run from the Bangle.js 2 flash memory, instead of RAM? How would I achieve this (or prevent that it moves to RAM for execution)?
    • Could I precompile the npm JS code (to C, to binary), to make it run faster?

    Thanks in advance for any help and hints! :-)

About

Avatar for user157902 @user157902 started