News for hackers. Stuff that matters.
Re:XS7 – A compact JavaScript engine for embedded applications by ricardobeat on Friday April 20, 2018 @04:41PM (#16888305)
Any benchmarks available? Would love to know how it compares to Duktape (http://duktape.org/).
Re:XS7 – A compact JavaScript engine for embedded applications by lprader on Friday April 20, 2018 @05:54PM (#16888727)
We can run our helloworld sample (https://github.com/Moddable-OpenSource/moddable/tree/public/...) with the xsbug debugger attached in 6000 bytes of RAM on the ESP8266. 5456 bytes for the stack and heaps, 256 for the dynamic symbol table, and 288 for the alias array.

With the 26KB RAM Duktape needs for "Hello world" we can run apps like the Sensor hub described in this blog post (run on a Thunderboard that only has 32KB of RAM total): http://blog.moddable.tech/blog/moddable-tech-presentation-to...

Re:XS7 – A compact JavaScript engine for embedded applications by svaarala on Sunday April 22, 2018 @07:53AM (#16895783)
By default Duktape maintains the built-in objects purely in RAM, but for low footprint targets the built-in objects (and also custom user objects) can be made pure ROM objects which reduces memory usage quite a bit; the lowest startup RAM usage is around 1,5kB, see https://github.com/svaarala/duktape/blob/master/doc/low-memo....
Re:XS7 – A compact JavaScript engine for embedded applications by gravypod on Saturday April 21, 2018 @11:23AM (#16891739)
I though many of the options in duktape could be turned off to reduce the memory footprint.