How to embed Espruino in a C-application, then interacting with Espruino #316
Replies: 2 comments
-
Posted at 2014-09-30 by @gfwilliams Hi Gunther, It's probably best if I answer in order:
Having said all that, it might be worth looking at something like duktape instead. Espruino is designed for chips with 8-128kB RAM. As such it's really efficient for them, but if you start to use it for bigger things then it will probably start to show some weaknesses (like in the handling of big arrays). |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-09-30 by gstrube Thank you! Duktape seems to be an excellent choice, since I only would want to expose certain API's. Warm regards |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-09-30 by gstrube
Hi Gordon,
First of all, thanks for implementing the Espruino engine and the possibilities it may provide for the community.
I'm considering using the Espruino engine to be embedded into a Ansi-C console application (Open Source project), running on generic Linux.
I haven't really found any documentation about how this can be done, just trying to get my head around it all by looking sporadically into the sources. So my questions are:
With possible answers to these questions, Espruino would ultimately become a low-ressource embeddable JavaScript interpreter as an alternative to the big V8 and Spidermonkey engines.
Kindest regards
Gunther
Beta Was this translation helpful? Give feedback.
All reactions