Live data from Hacker News

DoppioVM: a JVM in CoffeeScript

int3.github.com

1–10 of 32 posts

Re: DoppioVM: a JVM in CoffeeScript

#4
post #3

Talk about abstraction! Java -> bytecode -> JVM -> CoffeeScript -> JavaScript -> interpreter/JIT -> machine code -> CPU -> hardware. Turtles all the way down...

I don't think the CoffeeScript step exists in the pipeline. CoffeeScript is the language the JVM is written in, but I don't expect it outputs CoffeeScript itself.

Re: DoppioVM: a JVM in CoffeeScript

#6
post #3

Talk about abstraction! Java -> bytecode -> JVM -> CoffeeScript -> JavaScript -> interpreter/JIT -> machine code -> CPU -> hardware. Turtles all the way down...

I don't think the CoffeeScript step exists in the pipeline. CoffeeScript is the language the JVM is written in, but I don't expect it outputs CoffeeScript itself.

There is the compilation of the JVM via CoffeeScript to Javascript. It's hard to illustrate that in text.

Re: DoppioVM: a JVM in CoffeeScript

#7
post #2

I'm one of the authors. Doppio's not the first JVM in Javascript, but I believe we have the most extensive support for the JRE among the lot. In particular, we can run Rhino and the Java 4 compiler. Feel free to ask me any questions! Check out the demo here: http://int3.github.com/doppio/

Can you run Doppio in Rhino on the JVM?

Re: DoppioVM: a JVM in CoffeeScript

#8
post #7
post #2

I'm one of the authors. Doppio's not the first JVM in Javascript, but I believe we have the most extensive support for the JRE among the lot. In particular, we can run Rhino and the Java 4 compiler. Feel free to ask me any questions! Check out the demo here: http://int3.github.com/doppio/

Can you run Doppio in Rhino on the JVM?

I haven't tried, but I'm almost certain not -- Doppio relies on the existence of either the DOM or the Node API, and Rhino lacks both. Not to mention that our support for Rhino libraries isn't perfect as-is. Of course, one could write another shim layer for Doppio that uses the Rhino API... but I'm not going there :P

Re: DoppioVM: a JVM in CoffeeScript

#10
post #8
post #7

Earlier quoted context omitted.

Can you run Doppio in Rhino on the JVM?

I haven't tried, but I'm almost certain not -- Doppio relies on the existence of either the DOM or the Node API, and Rhino lacks both. Not to mention that our support for Rhino libraries isn't perfect as-is. Of course, one could write another shim layer for Doppio that uses the Rhino API... but I'm not going there :P

You can have a go at EnvJS, dom support for Rhino

https://github.com/thatcher/env-js

Post reply on HN