News for hackers. Stuff that matters.
Re:Low.js – Node.js for embedded devices by Apaec on Saturday September 15, 2018 @11:34PM (#17997190)
I like js, but I won't sacrifice all the performance aspects in the sole name of productivity.

Node(nor any GC lang) is simply not designed for embedded dev. I'll gladly switch to C or Rust that are designed for this kind of work.

Re:Low.js – Node.js for embedded devices by zokier on Sunday September 16, 2018 @03:04AM (#17997680)
It is debatable if any (mainstream) language is designed for embedded use. C was designed for "minicomputers" (aka small mainframes), not for embedded devices.
Re:Low.js – Node.js for embedded devices by e12e on Sunday September 16, 2018 @05:53AM (#17998139)
"minicomputers" with 256kb ram and a cpu running at ~10mhz?

How would you differentiate them from today's embedded devices? ;)

Re:Low.js – Node.js for embedded devices by zokier on Sunday September 16, 2018 @06:46AM (#17998295)
> How would you differentiate them from today's embedded devices? ;)

Intent and usage type. Minicomputers were still "general-purpose" computers, expected to run varying user code while embedded devices are more or less fixed-function.

From a more technical perspective, one difference is the expectation of (hard) real time control. While I have no doubt that some genius has put PDP-11 into industrial process control loop or something, generally UNIX (and C by extension) was not designed for real-time applications

Re:Low.js – Node.js for embedded devices by monocasa on Sunday September 16, 2018 @01:52PM (#18000088)
Throwing out there that PDP-11/20s were borderline running the entire manufacturing sector for a decade or so there. Parts are still super expensive because some ancient steel mill or something will buy them up as soon as they're on ebay or what have you.

But yeah, those weren't running UNIX for the most part, but probably RT-11 if their developers were sane.

Re:Low.js – Node.js for embedded devices by pjmlp on Sunday September 16, 2018 @06:46AM (#17998294)
Modern embedded devices are more powerful that the computer I had on high school to play Defender of the Crown on the computer club.

Amstrad PCW 1512 vs ESP32.

If I could use high languages in MS-DOS when performance wasn't critical enough to warrant being written in Assembly, so can we in our modern embedded devices.

The exception being micro-controllers like PICs.

Re:Low.js – Node.js for embedded devices by imtringued on Sunday September 16, 2018 @01:07PM (#17999886)
If you have 512MB RAM you can run the atom editor on your IoT device. At that point why would anyone even care about whether the software is designed for constrained systems?
Re:Low.js – Node.js for embedded devices by pjmlp on Sunday September 16, 2018 @01:24PM (#17999957)
Well, some of the stuff I linked to works with KB, including Cortex-Mx class devices.

Genereally speaking embedded devices is a very broad area, from a tiny PIC up to a couple of MBs.

There are many factors at play and in many cases it is actually worthwhile to spend 5€ more per unit and get a better development experience.

It is a decision per case basis and not really something that we can generalise as all embedded development is like X.