Live data from Hacker News

DoppioVM: a JVM in CoffeeScript

int3.github.com

21–30 of 32 posts

Re: DoppioVM: a JVM in CoffeeScript

#21
post #3

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

My first thought when reading this was the possibility of removing Clojurescript's compile time Java dependency.

Re: DoppioVM: a JVM in CoffeeScript

#25
Cool project, guys!

Call me crazy, but I think threading could be implemented via green threading or by utilizing a global event loop to manage script execution. Using pop up windows, one for each thread, might also be a solution that takes advantage of system level threads. It might also be possible to implement sleep using a synchronous ajax call to someting that doesn't exist that has a specific timeout attached to it.

Re: DoppioVM: a JVM in CoffeeScript

#26

Cool project, guys! Call me crazy, but I think threading could be implemented via green threading or by utilizing a global event loop to manage script execution. Using pop up windows, one for each thread, might also be a solution that takes advantage of system level threads. It might also be possible to implement sleep using a synchronous ajax call to someting that doesn't exist that has a specific timeout attached t…

There's also the Web Workers API. 'Threads' can be run as workers which call back into the main event loop

Re: DoppioVM: a JVM in CoffeeScript

#27
A potentially cool concept, like GWT it lets me develop Java apps for the browser without touching JavaScript and without dealing with Applet signing issues like we used to have.

One problem though, I tried compiling the Swing Hello World app and after it worked at it for a while got a java.lang error:

http://docs.oracle.com/javase/tutorial/uiswing/examples/star...

Re: DoppioVM: a JVM in CoffeeScript

#28
post #27

A potentially cool concept, like GWT it lets me develop Java apps for the browser without touching JavaScript and without dealing with Applet signing issues like we used to have. One problem though, I tried compiling the Swing Hello World app and after it worked at it for a while got a java.lang error: http://docs.oracle.com/javase/tutorial/uiswing/examples/star...

Yup, Swing isn't supported yet (graphical apps are going to take quite a bit more work). But we'll get there eventually!

Re: DoppioVM: a JVM in CoffeeScript

#29
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/

Rhino on Doppoio on JavaScript has got to be the slowest thing in the world.

Re: DoppioVM: a JVM in CoffeeScript

#30
Cheers guys, this is a project for which there is a clear and pressing need in the world of enterprise layer mediation.

I know that the observed real world running times are all sub-linear, but we can only theoretically proove that in runs in O( n * log(n) * log(n) * log (n) ) .

If you can maybe shave a log(n) off that running time proof, I'm sure that your thesis committee will finally have found big O, and we will make you an extra special hat to wear at graduation.

Post reply on HN