Node.js for Embedded Systems
embeddednodejs.com
embeddednodejs.com
Many things like general consumer electronics can run fine with Node. The runtime is incredibly well-tested at this point, JS is easily learned and scriptable for extensibility, the single-threaded nature is easy to work with and fast enough, and managed memory makes it easy to crash and recover from failures.
The end user does not care about developer convenience, cares about a working product that is reliable.
I've worked on platforms where we wrote the same logical code in JS and Lua, closures and all. The JS version leaked like a sieve while the Lua version was memory steady.
You can totally use gc'd, interpreted languages in the embedded space. I've used Lua on a product with 8mb of system ram in a 400kb block and it worked like a charm.
I think the hate is not about JS language itself but about some offensive people who believe JS enough to develop everything and who are not willing to learn appropriate knowledges/languages in the field.
It's great for use on the web, just please keep it there!
Javascript is taking over!
You must be kidding, or you want to see everyone dies, right? JS does meet realtime constraints. Maybe someday when nodejs has event priorities, it would be much more interesting to use in that field.
I mean software development skill is only a small part of embedded system development used in autopilot and power plants. You need related engineering expertise (e.g Math) much more than writing C or JS.
The plane would be more useable by the pilot as touchscreens are more versatile than old fashioned buttons. Also you would be more safe because if a lever or button fails on a flight you are pretty much screwed but if a touchscreen fails you can just reboot the touchscreen and you're good.