News for hackers. Stuff that matters.
Re:PurpleJS – An alternative to Node.js for Java projects by thalesmello on Thursday October 20, 2016 @08:09PM (#12757237)
I particularly don't find the problem it solves appealing. The power of Node comes specifically from its everything async programming model, Javascript is just a detail.

So what's the point in taking away the good part, and keep the cumbersome one? If you just want to program a Synchronous server in the JVM,just stick to Java.

Re:PurpleJS – An alternative to Node.js for Java projects by _pmf_ on Friday October 21, 2016 @04:21AM (#12758956)
> If you just want to program a Synchronous server in the JVM,just stick to Java.

And if you want to program an asynchronous server on the JVM in Java, all of the major and minor servers also support an asynchronous model (you merely lose the ability to program against the Servlet API, which pre-3 was bound to threads).

There's no reason at all to bring JS in for asynchronous behavior.

Re:PurpleJS – An alternative to Node.js for Java projects by sourcesmith on Friday October 21, 2016 @06:09AM (#12759268)
There is also Vert.x which runs on the JVM but is event driven and asynchronous (as well as providing a reactive API) and supports JavaScript (http://vertx.io/docs/vertx-core/js/) as one of its languages.
Re:PurpleJS – An alternative to Node.js for Java projects by cel1ne on Friday October 21, 2016 @07:33AM (#12759539)
I hope you don't mean the JVM by "the cumbersome part". It think is unparalleled in performance, garbage-collection, general dev-ops and monitoring capabilities.

You can run many different languages on it, all nicely contained within the virtual machine.

As far as I know Twitter replaced their Ruby/Rails with Code on top of the JVM for these reasons.

Also I don't think it's good to religiously stick to async/"just one thread" and sync/"one thread for everything". The most performant answer depends on the real world scenario and almost always lies somewhere in between.

Re:PurpleJS – An alternative to Node.js for Java projects by boggydepot on Friday October 21, 2016 @08:24AM (#12759787)
I think he meant the js not java. Question about node js, So async model is the good part, js is the bad part, why use js then?
Re:PurpleJS – An alternative to Node.js for Java projects by my123 on Friday October 21, 2016 @08:35AM (#12759856)
The JVM is nowhere near as flexible as the CLR.
Re:PurpleJS – An alternative to Node.js for Java projects by cel1ne on Friday October 21, 2016 @09:03AM (#12760031)
The JVM probably lags behind in some aspects. But it's ecosystem is way larger and not biased towards Windows.
Re:PurpleJS – An alternative to Node.js for Java projects by peterashford on Sunday October 23, 2016 @03:44AM (#12772473)
In what way?
Re:PurpleJS – An alternative to Node.js for Java projects by my123 on Sunday October 23, 2016 @10:19AM (#12773665)
The CLR can be used to run C++ code compiled with the C++/CLI (/clr:pure) setting of MSVC. Java apps can even run on the CLR because of IKVM (https://www.nuget.org/packages/IKVM).

Good luck at using pointers in Java.

Re:PurpleJS – An alternative to Node.js for Java projects by amelius on Friday October 21, 2016 @06:48AM (#12759387)
> The power of Node comes specifically from its everything async programming model, Javascript is just a detail.

I don't agree. The power of Node comes from being able to run the same code on the browser and the server (without transpiling performance penalties).