Re:JavaScript right on the hardware
by tlrobinson on Wednesday August 14, 2013 @07:46PM
(#6215243)
I suspect Arduino (at least the ones I've used, Uno?) are a bit underpowered for higher level managed languages like JavaScript.
Absolutely. On AVRs, `new` and `malloc` work, but just barely. RAII/stack-only programming is basically a necessity. That is simply not possible with languages like Python or Javascript.
Re:JavaScript right on the hardware
by taylorbuley on Wednesday August 14, 2013 @08:27PM
(#6215408)
JS doesn't necessarily have to run natively for this kind of programming model to work out. Johnny5, the library discussed in the link I provided, rather provides an interface to the Arduino's StandardFirmata API http://firmata.org/wiki/Main_Pager
Re:JavaScript right on the hardware
by gfwilliams on Thursday August 15, 2013 @05:52AM
(#6216923)
To be fair, the Espruino JavaScript interpreter manages this pretty well (in around 8kB of RAM). http://www.espruino.com
http://blog.safaribooksonline.com/2013/07/16/javascript-powe...