I hate java, I hate javascript, I hate node.js, so basically, I just leave a comment here, and you can make a conclusion about what I think about all this.
Just out of curiosity, what are your preferred languages and server environments?
Java Virtual Machine in pure Node.js
81–90 of 143 posts
Re: Java Virtual Machine in pure Node.js
#82Interesting! It looks like you've reimplemented portions of the Java Class Library rather than use e.g the existing class files from OpenJDK. My current research project, Doppio [1], implements the native portions of the OpenJDK Java Class Library so it can use an unmodified copy of the OpenJDK JCL. As a result, it can run a bunch of nontrivial programs (javac/javap/Rhino/Kawa-Scheme). One issue you will run into is…
Re: Java Virtual Machine in pure Node.js
#83I'm sure I'll see a demo showing off something that barely runs on modern hardware that we were more than capable of running with good performance in 1990.
sigh I feel like I'm being such a Debbie-downer even if this is a really cool hack.
Re: Java Virtual Machine in pure Node.js
#84Would be interested in seeing a JVM written in Go.
Considering Go is slower than C, and the JVM is written in C/C++, I'd say the JVM would be slower. I'm not trying to say I wouldn't like to see it, but I don't think anyone would use it, is all. And it's sad when cool software doesn't get used.
Re: Java Virtual Machine in pure Node.js
#85Re: Java Virtual Machine in pure Node.js
#86How hard is it to write a JVM? I'd think it pretty easy, as it's intended to be small and easily portable. You could even write one in Java (and I'm sure it's been done, many times). EDIT e.g. http://igormaznitsa.com/projects/mjvm/index.html Of course, doing all the tricky JIT etc of the JVM is a different story...
Re: Java Virtual Machine in pure Node.js
#87Just 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.
Please feel free to fork it, improve and post back.
Re: Java Virtual Machine in pure Node.js
#88I'm waiting for a JavaScript interpreter written in Javascript. Edit: It's already here :) https://github.com/jterrace/js.js/
Re: Java Virtual Machine in pure Node.js
#89Interesting! It looks like you've reimplemented portions of the Java Class Library rather than use e.g the existing class files from OpenJDK. My current research project, Doppio [1], implements the native portions of the OpenJDK Java Class Library so it can use an unmodified copy of the OpenJDK JCL. As a result, it can run a bunch of nontrivial programs (javac/javap/Rhino/Kawa-Scheme). One issue you will run into is…
Re: Java Virtual Machine in pure Node.js
#90Finally, I can run JRuby on my node server!
From poster with similar project above: https://github.com/int3/doppio/wiki/Successes > We're also making progress on others, but we're not quite there yet: JRuby, Clojure, Scala REPL I think I just had a micro heart attack reading that.