can be changed while it is running! You don't have to compile/install anything anymore. No deployment-cycles, faster delivery! Instant feedback on every code/function execution: good (ok) / bad (error)
Akka and other popular approaches. (even NPM modules can be used!) More interactive and understandable, because it's the way people naturally describe tasks: "When it's dark, turn on the light." Code is only processed on events and if necessary, this saves energy!
go to sleep, and how deeply. Even the WiFi module doesn't need power while sleeping! Example: Example: LED-flashing with a 700mAh Li-Ion battery: Raspberry PI: 1 - 2 hours Arduino: 1 - 2 days Espruino: ~6 months
if wireless connection can be established. Example 3: HTTP-Server Example 3: HTTP-Server var wlan = require("CC3000").connect(); var http = require("http"); wlan.connect("mySSID", "mySecret", function (s) { if (s == "dhcp") { console.log("My IP is " + wlan.getIP().ip); http.get("http://www.pur3.co.uk/hello.txt", function(res) { res.on('data', function(data) { console.log(">" + data); }); }); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.write('Hello World'); res.end(); }).listen(80); } }); (CC3000)
act like a USB keyboard, mouse or joystick. Make your own input devices for you PC, or make Espruino "play back" a series of keypresses. http://forum.espruino.com/conversations/127079/