Maybe this is a dumb idea, but it seems to me that being able to store code outside of the JsVars would be helpful. A reference/handle to the allocated memory can still be stored as a JsVar. It immediately saves 25%, if I understand the 12 chars per 16 bytes correctly. But beyond that, it would also allow code to be stored in flash, which would be a big help with larger modules from a library, in particular.
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.
Maybe this is a dumb idea, but it seems to me that being able to store code outside of the JsVars would be helpful. A reference/handle to the allocated memory can still be stored as a JsVar. It immediately saves 25%, if I understand the 12 chars per 16 bytes correctly. But beyond that, it would also allow code to be stored in flash, which would be a big help with larger modules from a library, in particular.