News for hackers. Stuff that matters.
Re:XS7 – A compact JavaScript engine for embedded applications by megous on Saturday April 21, 2018 @01:51AM (#16890163)
Is there some documentation on how to run code from a string in C. I guess I can setup a getter for a buffer and then call fxParseScript? Is that all?
Re:XS7 – A compact JavaScript engine for embedded applications by phoddie on Saturday April 21, 2018 @10:23AM (#16891519)
FWIW - we usually don't parse scripts on the MCU because that takes time and memory. Instead, we compile on the development machine using xsc and link using xsl. This leaves more memory free for scripts to use for data, and allows scripts to start running almost instantly.
Re:XS7 – A compact JavaScript engine for embedded applications by megous on Monday April 23, 2018 @01:24AM (#16900714)
I understand, though I meant to use xs engine separately on bigger platforms, where this is not an issue.
Re:XS7 – A compact JavaScript engine for embedded applications by megous on Saturday April 21, 2018 @01:59AM (#16890180)
Ah, I found some nice example in fx_agent_start_aux() function. :)