Live data from Hacker News

Java Virtual Machine in pure Node.js

github.com

31–40 of 143 posts

Re: Java Virtual Machine in pure Node.js

#33
post #4

Just a toy implementation[1], if someone is wondering. [1]The basic .class file attribute parsers are located in libs/classfile, while a simple bytecode interpreter can be found in jvm.js. It doesn't load a real runtime library (classpath, apache harmony,openjdk,etc...) but it partially implements a few java.* classes in pure javascript under libs/java.

Should be renamed to node-java instead of node-jvm, I think.

[deleted]

Re: Java Virtual Machine in pure Node.js

#35
post #22

With GWT you can translate the Java application to standalone JavaScript files ... and with this implementation you can run Java in a Javascript environment. Which one would perform best?

GWT with out a doubt. It's running on a smaller stack and the translation is done at compile time not runtime.
Post reply on HN