• BTW did you check https://www.espruino.com/Compilation sections "Caveats" and "Doesn't Work"? Also the "How do I use it?" shows type of code that makes sense to use with "compiled" - tight computational loops, hardware access. it is not worth it for random generic js code. Also beware that you cannot distribute your app in sane way, it probably won't work at all with the bangleApps loader. There is workaround for small bits of Inline C, see
    https://github.com/espruino/BangleApps/s­earch?q=%22compiled%22 however "compiled" JS has more issues than inline C and the binary won't work like this across different firmware versions due to value of process.env.EXPTR being different in each firmware build. I have solution for this but it is not pretty and in most cases not worth it.

About

Avatar for fanoush @fanoush started