2 ms·
Neat stuff. What's all the hate is about. Not every embedded system is running real-time sensitive industrial machinery or medical equipment. Many things like
by manigandham 8y ago
Neat stuff. What's all the hate is about. Not every embedded system is running real-time sensitive industrial machinery or medical equipment.
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.
- deleted 8y ago[deleted]
- partycoder 8y agoThe choice of node.js means putting developer convenience in front of everything else. The end user does not care about developer convenience, cares about a working product that is reliable.
- manigandham 8y agoIs it though? I'd prefer many other languages that are more convenient to code in that dealing with the quirks of JS, but I don't see why Node must be unreliable either. I think for simple devices this works just fine.
- vvanders 8y agoMost of the 'hate' has to do with the fact that the language isn't suited to platforms with memory constraints. Specifically there's semantics around closure capture that make it pretty easy to leak variables. 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.
- kbumsik 8y agoI think it is somewhat related to the hate around Electron. You can develop great Eletron apps like VSCode but people hate most of Eletectron apps taking much memory and CPU load. This is mainly because of the developers who don't care about rhe differences between the desktop environment and the broswer environment e.g. users can click the refresh button in the browser when it's slow while it's not the case in the desktop environment. 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.