|Written by Ian Elliot|
|Thursday, 11 December 2014|
Of course "small" is a relative term and 200kB of code may still be too much for some hardware. It also needs 46kB of startup RAM, but this can be reduced to 22kB. From an IoT point of view, it can work with systems that have 256kB of Flash and 96kB of RAM. To put this in perspective this means it could run on an Arduino Due but not on an Uno.
Other advantages are:
It also has a Duktape global object which provides custom built-ins such as print() and alert().
where ctx is the pointer to the Duktape engine. So you can simply provide a buffer for your user to enter code and you can let them run it.
To be informed about new articles on I Programmer, install the I Programmer Toolbar, subscribe to the RSS feed, follow us on, Twitter, Facebook, Google+ or Linkedin, or sign up for our weekly newsletter.
or email your comment to: email@example.com
|Last Updated ( Thursday, 11 December 2014 )|