My impression is that "compilation" of functions has some important (and perhaps undocumented) limitations I do not know yet.
@Gordon should we limit compiled functions to computations only? Can they access local variables in their lexical context? Or should we pass any such variables as invocation parameters? Can compiled functions handle Uint8ClampedArray properly? (i.e., incl. clamping?)
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.
Ok, I have to give up for today.
My impression is that "compilation" of functions has some important (and perhaps undocumented) limitations I do not know yet.
@Gordon should we limit compiled functions to computations only? Can they access local variables in their lexical context? Or should we pass any such variables as invocation parameters? Can compiled functions handle
Uint8ClampedArray
properly? (i.e., incl. clamping?)