Finally, I can run JRuby on my node server!
Java Virtual Machine in pure Node.js
11–20 of 143 posts
Re: Java Virtual Machine in pure Node.js
#12Really cool proof of concept! I would really enjoy seeing more projects like this!
Re: Java Virtual Machine in pure Node.js
#13Would be interested in seeing a JVM written in Go.
Re: Java Virtual Machine in pure Node.js
#14Re: Java Virtual Machine in pure Node.js
#15Next step: Java compiler in node
Re: Java Virtual Machine in pure Node.js
#16-Reads in real .class files
-Uses the JS run-time to implement the Java run-time (e.g. there isn't a garbage collector written in JS, the JS collector is used)
-Only implemented part of java.lang and java.io
Re: Java Virtual Machine in pure Node.js
#17Just 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.
Re: Java Virtual Machine in pure Node.js
#18For anyone interested in the details: -Reads in real .class files -Uses the JS run-time to implement the Java run-time (e.g. there isn't a garbage collector written in JS, the JS collector is used) -Only implemented part of java.lang and java.io
Re: Java Virtual Machine in pure Node.js
#19Finally, I can run JRuby on my node server!