You are reading a single comment by @Robin and its replies. Click here to read the full conversation.
  • Most of the output I received was New interpreter error: Execution Interrupted. I tried running it with and without minification, but that didn't make a difference. Supposedly something could have went wrong when transpiling, as a lot of the code uses features not available on Espruino (async comes to mind).

    @Gordon the bundled file is essentially a process engine that expects the PIXL to perform certain tasks on events. An example would be the task of writing something to the screen based on an interaction with another IOT device running the engine.

    Can you elaborate what you mean by saying "around 40k JS code"? Is there a list of JavaScript features/libraries available on Espruino? Maybe I don't need to transpile the entirety of code.

  • Mon 2019.07.29

    'Is there a list of JavaScript features/libraries available'

    https://github.com/espruino/Espruino/tre­e/master/libs

    Not entirely sure if this satisfies your 'features' request

    http://www.espruino.com/Reference


    'what you mean by saying "around 40k JS code"'

    In #4 my request enabled you the discovery of total space available. The suggestion of reading over the 'Internals' documentation will show a JsVar is typically 12 or 16 byte blocks. I mentioned in#4 the ability to u/l a 30K file with mixed code/comments to a Pico. Gordon suggests a possible larger file. It all depends on coding style. At roughly 30 bytes/line of code would generate ~1000 code lines file length. Gordon's estimate seems to be a direct 2500*16 bytes/JsVar == 40000 total bytes of Javascript code. Feel free to use your best estimates.

About

Avatar for Robin @Robin started