News for hackers. Stuff that matters.
Re:Ocean Mobile Linux Server by fla on Sunday April 24, 2016 @08:56AM (#11559527)
Node.js is event oriented I/O. It lets you design some server tasks in a way that is non-blocking and thus more efficient.

(Some other languages let you do that too)

Re:Ocean Mobile Linux Server by regularfry on Sunday April 24, 2016 @09:12AM (#11559573)
Pretty much all general purpose languages let you do that. Only Node makes you.
Re:Ocean Mobile Linux Server by fla on Sunday April 24, 2016 @09:22AM (#11559595)
PHP doesn't
Re:Ocean Mobile Linux Server by tyingq on Sunday April 24, 2016 @10:15AM (#11559740)
Re:Ocean Mobile Linux Server by fla on Sunday April 24, 2016 @10:24AM (#11559772)
Yeah OK :) HHVM is not the usual PHP runtime one expects to build the average web service upon.

Anyway, my point was that Node.js main core value was to let people script evented I/O over a lightweight runtime.

When Node came out, it was something new.

Re:Ocean Mobile Linux Server by tyingq on Sunday April 24, 2016 @10:45AM (#11559835)
Sure. I just happen to agree with the notion that node.js is mostly unique only in that it pushes you down that path.

Java has a fairly rich NIO path that you can choose to take or not, and predates node.js. I believe the Tornado package for Python predates it as well.

Certainly, there's some advantage there...fewer surprises with 3rd party libraries that aren't non-blocking. But, there's downsides as well.

Re:Ocean Mobile Linux Server by hookshot on Monday April 25, 2016 @02:52PM (#11566391)