Had some time to work on memory manger - solidifying code, adding regression, auto gc(). In the cross-implementation environment, I'm about ready for connecting it to the actual memory device API/module - recently published by @DrAzzy (also intended to be cross emulated in the code before moving the memory manager into Espruino context). The attached file has a memory manager configured for 128 byte with a set of tests that can be run as a whole or also step by step to see what's going on. Each step has a pre and post validation... and it was already very helpful in catching glitches on changes and extensions (ability to write/read besides a string also true, false, null, and undefined into the memory). Download the html file and run it by stepping through the tests... behaves like a slide show for geeks... ;)
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Had some time to work on memory manger - solidifying code, adding regression, auto gc(). In the cross-implementation environment, I'm about ready for connecting it to the actual memory device API/module - recently published by @DrAzzy (also intended to be cross emulated in the code before moving the memory manager into Espruino context). The attached file has a memory manager configured for 128 byte with a set of tests that can be run as a whole or also step by step to see what's going on. Each step has a pre and post validation... and it was already very helpful in catching glitches on changes and extensions (ability to write/read besides a string also true, false, null, and undefined into the memory). Download the html file and run it by stepping through the tests... behaves like a slide show for geeks... ;)
1 Attachment