News for hackers. Stuff that matters.
Re:Tessel, a NodeJS-based microcontroller by thedufer on Thursday September 05, 2013 @11:53AM (#6334898)
JavaScript is built around events and the event loop in a way that few languages are, which makes it well-suited to a hardware environment like this.
Re:Tessel, a NodeJS-based microcontroller by cliffbean on Thursday September 05, 2013 @12:12PM (#6335000)
Also, this is not just a property of the language itself, it's a property of the ecosystem built around the language.
Re:Tessel, a NodeJS-based microcontroller by vertex-four on Thursday September 05, 2013 @12:08PM (#6334982)
Not really? Javascript interpreters, and the DOM tend to be (and Javascript interpreters only are because they're geared towards being embedded in browsers, primarily). The language isn't any better for it than any other language that supports closures, though.
Re:Tessel, a NodeJS-based microcontroller by thedufer on Thursday September 05, 2013 @02:11PM (#6335796)
> The language isn't any better for it than any other language that supports closures

Which puts it pretty high up to begin with. Factor in the number of libraries that assume an event loop (all of them that care either way) and that are asynchronous by default because of this (most of them) and it becomes pretty hard to beat.