• Mon 2021.04.26

    ref #32: 'so i can write my code beautifulized . . . no needed to minimize manually . . . is it correct?'

    I had this same question over four years ago and several provided responses to clear things up.

    Originally, I had mistaken an observation (noobie incorrect interpretation) for changes that had just occured with the new WebIDE ver ?? around Nov 2016 circa 1V88 Espruino, and was attempting to resolve.

    Just released (then) the WebIDE does a bit of housekeeping before upload along with additional cleanup once Espruino takes over. See @Gordon 's comments:

    'and also strips out whitespace and comments between commands, which would have been ignored by Espruino anyway.'

    http://forum.espruino.com/conversations/­295641/

    'if something happens and data is re-arranged in memory then even that can effect the compression'

    http://forum.espruino.com/comments/13488­204/

    A quick test would be to upload some heavily commented code both inside and outside functions, then upload. Use dump() to see how comments are removed. Then use process.memory() to determine the amount of free JsVars to compare with the source.

    Another useful tool: Many helpful ideas on using trace() to view actual memory contents.

    http://forum.espruino.com/comments/15227­580/

  • I don't know exactly how big my final code will be, but I solved the html processing (including the UTF-8 problem) by reading my html code directly from an sd card. Interestingly, the handling of the SH1106 oled (128x64) is handled very well by Espruino compared to e.g. the Raspberry Pi Pico micropython environment (but maybe I was the only one who was lame).
    Question to the software developers, is there a Raspberry Pi Pico version of the interpreter in the pipeline?

About

Avatar for user127815 @user127815 started