Ruby and Java Running in JavaScript
John Resig is reporting on his blog that a recent trip to Tokyo opened up some very interesting JavaScript projects to him that haven't met with widespread popularity outside of Japan yet. "One project, in particular, really caught my eye. It's called Orto and is an implementation of the Java Virtual Machine (JVM) in JavaScript. This means that you can take an existing Java application, compile it to bytecode, run it through Orto (which produces the JavaScript, and embed it in a web page. While it doesn't provide the full capabilities of most Java code it does provide enough to make for some interesting demos." In a separate post he also detailed how the HotRuby project is allowing a Ruby VM to run in a browser using JavaScript or even indirectly using ActionScript in Flash.
Finally, a way to combine the feature-rich capabilities of Javascript with the speed of Java!
This just reminds me of the "octoparrot" from The Simpsons. "Braawk! Polly shouldn't be!"
Use the Firehose to mod down Second Life stories!
'Orto' means 'ass' in Spanish.
Anticipated application stack:
iPhone -> Orto -> Javascript -> Java -> C64 Emulator -> VIC-20 Emulator -> Zork I
Exciting New ways to be eaten by a grue!
Why, oh why, didn't I take the Blue Pill?
Ok, so maybe we can run python in pypy in ironpython in java in javascript.
Now all we need to get is a C compiler to output python code. If someone can then write an x86 VM in python we could then run Linux in Firefox!
SJW n. One who posts facts.
They don't know if it works properly yet - they're still waiting for it to finish running "Hello World"....