• @Robin, you may take a look at the https://www.espruino.com/Internals page that talks about variables and memory layout - and btw, there you also find how ESPRUINO JavaScript is processed: Parser (regarding 'byte code' mentioned in a different conversation of yours. Conversation about memory usage (google for Espruino Internals Variables, Memory, Storage) are a good information source as well.

    There are certain types of objects - pointed to by variables - that have all their bytes as ducks in a row, where others have them in units of a few daisy chained - latter was first and only way Espruino handled memory for a long time, until performance hit the ceiling, mainly by trying to drive these colored RGB LED strips, and it was not enough, so the module became built-in natively implemented...

    Looking at the interpreter's source may help you as well with understanding to take advantage of your C desires and skills..

About

Avatar for allObjects @allObjects started