Live data from Hacker News

PurpleJS – An alternative to Node.js for Java projects

webagility.com

31–40 of 52 posts

Re: PurpleJS – An alternative to Node.js for Java projects

#31

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.

> 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

#33
post #31

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.

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

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

#34

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.

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

Re: PurpleJS – An alternative to Node.js for Java projects

#35
post #32

I wonder if LucasArts is happy with that logo :-) The image and the font brought up some good memories. https://en.m.wikipedia.org/wiki/Day_of_the_Tentacle https://images-na.ssl-images-amazon.com/images/I/514Q95XGV8L...

They have actually stated on Twitter that the mascot is inspired by the DOTT character and the Java character (Duke): https://twitter.com/purple_js/status/732660360348631040

Re: PurpleJS – An alternative to Node.js for Java projects

#36

Interesting offer, would be great to have some benchmarks comparison to see the value of it. Do you happen to have some?

I haven't seen any benchmarks yet, but the framework is actually originally the core engine of the web os / cms Enonic XP. Worth checking out:

https://discuss.enonic.com/t/purplejs-an-alternative-to-node...

https://enonic.com/

Re: PurpleJS – An alternative to Node.js for Java projects

#38
post #7
post #3

Earlier quoted context omitted.

Because it's still javascript, just running on JVM instead of... v8? At least, that's my read of the project.

Ok, that's part of it. This line from the page is what gets me, "create server applications with Javascript but access and use Java libraries" and I think an example of that is very important.

Actually, the best example of that is already mentioned in the article:

"With Enonic XP, the combination of Java and JavaScript is used to speed up the development process and allow frontend developers to implement backend services. I saw that this was a very popular approach to develop software more effectively, and wanted everyone to be able to use the technology for free and in existing investments. PurpleJS was born."

PurpleJS is the core of Enonic XP, made available separately as an open source project (well, both are open source).

Re: PurpleJS – An alternative to Node.js for Java projects

#39

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.

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

#40
post #39

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.

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 on…

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?
Post reply on HN