News for hackers. Stuff that matters.
Re:JavaScript right on the hardware by wyager on Wednesday August 14, 2013 @08:09PM (#6215340)
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