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.
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.