News for hackers. Stuff that matters.
Re:Is Node.js declining already? by bryanlarsen on Saturday June 13, 2015 @10:25PM (#9713607)
Node's event driven design is also called "co-operative multi-threading", and is more efficient than OS threading. It is annoying that you have to use multiple processes or Web Workers to use more than one core, but that is far from being the main pain point.
Re:Is Node.js declining already? by duaneb on Sunday June 14, 2015 @12:24AM (#9713705)
A), that does not allow parallelism, only concurrency. B), that is a description of all single threaded systems. "Event driven design" is euphemism for "bolted on async primitives to a single threaded language." Multi threading is a super-set of "event driven design", and a much more scalable one.
Re:Is Node.js declining already? by verbin217 on Sunday June 14, 2015 @02:12AM (#9713906)
Node is largely a reaction to advances in event multiplexing like kqueue and epoll. It was intended to be a scripting language bolted on top of a single-threaded concurrency model. This design-decision corresponds to the before unseen degree of callback hell that is Node's primary pain point.
Re:Is Node.js declining already? by duaneb on Sunday June 14, 2015 @02:18PM (#9715811)
Who would ever design a language to be concurrent but not parallel? Seems like a work of masochism.
Re:Is Node.js declining already? by verbin217 on Sunday June 14, 2015 @09:52PM (#9717090)
It was intended for low latency services that mostly wait on I/O. These services don't compute enough to need parallelism. Especially when you can just fork another process or FFI to a C library with proper threading if you need it. It is necessary that they be concurrent but parallelism introduces a LOT of complexity beyond that.
Re:Is Node.js declining already? by stevewepay on Saturday June 13, 2015 @10:36PM (#9713634)
>Node's event driven design is also called "co-operative multi-threading"

I think you mean multi-tasking, not multi-threading. And isn't cooperative multi-tasking the Windows 3.1 model on DOS? Not sure how cooperative multitasking is better than OS threading.

And am I mistaken, or is Node.js the same thing as Windows programming model from 1990 repackaged in Javascript? Windows programs have single message loop, and Windows events and you write callbacks that handle those particular events, like when a mouse clicks, when it moves, etc.

Re:Is Node.js declining already? by pags on Saturday June 13, 2015 @10:39PM (#9713648)
It's a common paradigm for UI programming. This is the basic backdrop of JS in the browser as well.
Re:Is Node.js declining already? by duaneb on Sunday June 14, 2015 @01:47AM (#9713855)
It's a hell of a restriction for everything but UI programming, though.