apigee / trireme

Embed Node.js inside a Java Virtual Machine
Other
479 stars 55 forks source link

Trireme on Nashorn #142

Open sparty02 opened 8 years ago

sparty02 commented 8 years ago

Feature request/question.... being aware of the performance limitations of Rhino, and that Nashorn (while still not as fast as V8) can be significantly faster than Rhino, is running Trireme on Nashorn part of the roadmap?

gbrail commented 8 years ago

Nashorn and Rhino are quite different in the way that you connect Java and JavaScript code together. For that reason, it's less of a switch than a rewrite of a bunch of the native code.

A while back, I created a project called "rowboat" that does what Trireme does, but using Nashorn. Both rowboat and Trireme share a "kernel" of the most annoying stuff like asynchronous I/O and SSL handling. But the actual modules of rowboat are different.

https://github.com/apigee/rowboat

We don't have any plans to use Rowboat at Apigee, and I have a lot of other projects, so I'm not doing any work on it. However the code runs a decent number of Node 0.12 apps, and if anyone else is interested then they are certainly welcome to contribute.