Talk about abstraction! Java -> bytecode -> JVM -> CoffeeScript -> JavaScript -> interpreter/JIT -> machine code -> CPU -> hardware. Turtles all the way down...
DoppioVM: a JVM in CoffeeScript
21–30 of 32 posts
Re: DoppioVM: a JVM in CoffeeScript
#22The JVM is the only redeeming feature of Java (the language). You're nerfing the high performance features for what, exactly? A half assed tracing ability? "Write once, run anywhere"?
Javascript won in the browser, move on.
Re: DoppioVM: a JVM in CoffeeScript
#23Re: DoppioVM: a JVM in CoffeeScript
#24Would this facilitate JRuby in the browser?
Re: DoppioVM: a JVM in CoffeeScript
#25Call 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
#26Cool 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…
Re: DoppioVM: a JVM in CoffeeScript
#27One 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
#28A 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
#29I'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/
Re: DoppioVM: a JVM in CoffeeScript
#30I 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.