News for hackers. Stuff that matters.
Re:JerryScript – A JavaScript Engine for Internet of Things by dragonwriter on Sunday July 26, 2015 @06:17PM (#9952383)
> I'm struggling to understand - what's the point of using JavaScript for anything embedded?

The point, I would suspect, is lots of people already know JavaScript, so it lowers the barrier to entry to embedded programming.

Re:JerryScript – A JavaScript Engine for Internet of Things by userbinator on Monday July 27, 2015 @01:30AM (#9953504)
lowers the barrier to entry to embedded programming.

Embedded systems often have very different characteristics than e.g. a web app, and just because someone has been doing JS web apps does not mean they'll be any good at using JS with an embedded system (and vice-versa, but maybe less so.) IMHO lowering the barrier to entry is just going to result in many more buggy/insecure IoT devices... (JS does eliminate certain classes of bugs associated with traditional embedded languages like C, but there are plenty other bugs you can find in web apps that are not buffer overflows.)

Re:JerryScript – A JavaScript Engine for Internet of Things by dottrap on Monday July 27, 2015 @06:07AM (#9954296)
Be careful not to conflate web programming with plain-old JavaScript the language. A lot of the horrible bugs in web programming come from the massive complexity and size related to web browsers, the DOM, and over-engineered frameworks.

If we're talking about streamlined, embeddable JavaScript, we're not bringing the web and all those bloated frameworks.

You are right that those writing web apps won't necessarily be good at embedded systems, especially since (for now), they will have to also separate web APIs from JS-the-language and will not have the APIs they are used to.

But those who survive the transition process will likely pick up better habits. I suspect the APIs and usage will end up looking a lot like the Lua sphere, though perhaps more fragmented since none of JavaScript engines have anything remotely resembling compatible C API interfaces.

Re:JerryScript – A JavaScript Engine for Internet of Things by dragonwriter on Monday July 27, 2015 @01:47AM (#9953556)
> Embedded systems often have very different characteristics than e.g. a web app, and just because someone has been doing JS web apps does not mean they'll be any good at using JS with an embedded system

Indisputably. Lowering a barrier to entry isn't the same thing as guaranteeing success for every entrant.

Re:JerryScript – A JavaScript Engine for Internet of Things by sklogic on Sunday July 26, 2015 @06:41PM (#9952452)
Language is the least important barrier to entry to any field. Domain knowledge is much more important.
Re:JerryScript – A JavaScript Engine for Internet of Things by nostrademons on Sunday July 26, 2015 @06:49PM (#9952474)
Depends on the age of the field. When fields are young, nobody has any domain knowledge anyway, because the "domain" just got started. At this point, things like technical knowledge, familiar programming languages, and common data protocols are crucial, because that's all the knowledge that exists.

As a field ages and accumulates best practices and social patterns, domain knowledge becomes relatively more important and technology choices become relatively less important.

Many of the biggest profit opportunities in a field come from owning the platform it's built upon, which is why it's logical to try and attract developers early with technologies they're familiar with. Eventually domain knowledge will matter more - but that depends upon the platform becoming big enough that it's a domain.

Re:JerryScript – A JavaScript Engine for Internet of Things by sklogic on Monday July 27, 2015 @03:36AM (#9953884)
This particular field is ages old, with tons of accumulated domain lore.
Re:JerryScript – A JavaScript Engine for Internet of Things by dragonwriter on Sunday July 26, 2015 @11:33PM (#9953190)
Domain knowledge of the type relevant to programmers in many fields is gained through experience programming in that field, not non-programming experience in that field.

Unfamiliar programming language is an impediment, for many, to that learning process. If the tradeoff for that is a much clearer mapping to the domain than a more familiar alternative, the unfamiliar language may be, pedagogically, a net win, but -- especially for self-study -- people are more likely to learn enough to look deeply into the domain (including through unfamiliar languages) if the initial entry path is easy from where they currently are.

Re:JerryScript – A JavaScript Engine for Internet of Things by AdieuToLogic on Monday July 27, 2015 @02:19AM (#9953645)
The problem in this particular case is that the concerns of embedded systems are orthogonal to what anyone who knows _only_ JavaScript has ever dealt with. Those worlds are simply too far apart.

Your case is entirely valid when, say, a person is hired to work in a retail system and who had previously worked in some form of a decision support system.