Hacker News new | past | comments | ask | show | jobs | submit login
Doppio: A Java Virtual Machine, Compiler and Disassembler in JavaScript (badassjs.com)
87 points by tsergiu on Oct 3, 2012 | hide | past | favorite | 31 comments



I liked the part where it suggested a JS JVM was useful since JS could be compiled for the JVM.


It is only a matter of time until somebody gets a webbrowser running inside another with javascript as a joke.

What will be interesting is to see how long we have to wait afterwards until someone decides that it might be a useful thing to do in production.


Get a performant IE6 running inside Chrome, and I'd pay good money for that.


While it's not running INSIDE the browser per-say there is http://www.browserling.com/ that'll let you use another browser inside another browser (and use browserling inside that other browser if you need to go deeper).


Various people from Opera Software mentioned that their company had plans to do this in case of success and possible monopoly of Chrome OS.


With all due respect to the fine folks at Opera Software, I think they should have much bigger concerns than the possibility that Chrome OS will ever hold anything close to a monopoly.


I know you're kidding, but I'd love to play with a sandboxed browser-in-a-browser.


And to run doppio.js in that, for a sandbox-in-a-sandbox, ... ad infinitum?



It is only a matter of time until somebody gets a webbrowser running inside another with javascript as a joke.

And just a bit longer until someone has it running inside Minecraft



Ample SDK does that, kinda-sorta -- http://www.amplesdk.com/about/compatibility/


What a wonderful world, on one end you have people moving client side code to the server (node.js, Dart, Meteor) on the other hand you have people trying to move it to the client (GWT, Doppio)


I'm thinking the client people have the edge. If you're running a web site, why pay for a big machine when you can let each client use their own.


Because the alternative is writing javascript shudder.


I don't see anything like a Java compiler in the Doppio source.

edit: I get it. In the demo they are using a Java compiler from Sun that is itself a Java program running in the Doppio JVM. Neat.


Check out the demo. It definitely contains javac http://int3.github.com/doppio/


Does this mean it might be possible to run java in the browser with out it grinding your computer to a halt?


"I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question."


- Charles Babbage, Passages from the Life of a Philosopher


I don't know, but if a JavaScript VM will succeed where native Java Applets/JavaFX failed, someone at Sun will not be getting a bonus that year.


hate to break it to you, but Sun hasn't existed as a company since early 2010...


RIP OpenSolaris. You are in a better place now.


I wouldn't really call Oracle a better place...


I was thinking of the Illumos fork, and where key developers ended up (Joyent, Nexenta, OmniTI, etc)


Yes, I was aware of the acquisition by Oracle, but wasn't aware it was completely merged into Oracle, live and learn.


I doubt it, straight Java is much faster than converting Java to Javascript and then executing it, even with JIT.


Actually, if Doppio generated JS instead of interpreting JVM bytecode, it could be quite fast.


In current form no (Looking at demo and quick snap shot of whats in there) but might happen in future.


This is so cool how can you not like the concept. I even tried "globalthermonuclearwar" but it just wanted to play Tic Tac Toe. :-)


I guess the letter campaign was the slower path to getting Java on iOS.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: