Slashdot Mirror


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.

14 of 220 comments (clear)

  1. Awesome! by eln · · Score: 4, Funny

    Finally, a way to combine the feature-rich capabilities of Javascript with the speed of Java!

    1. Re:Awesome! by omeomi · · Score: 5, Funny

      If nothing else it means that the next time (in about 3 minutes if today is a normal day) somebody gets Java and Javascript confused, I can say they really ARE "basically the same thing" now!

      Fantastic. Somebody's found a way to make the morons of the world slightly more correct without them even knowing it.

  2. The Octoparrot of the programming world by Hoplite3 · · Score: 4, Funny

    This just reminds me of the "octoparrot" from The Simpsons. "Braawk! Polly shouldn't be!"

    --
    Use the Firehose to mod down Second Life stories!
  3. I just need to get this out of my system by Daishiman · · Score: 5, Funny

    'Orto' means 'ass' in Spanish.

    1. Re:I just need to get this out of my system by kellyb9 · · Score: 2, Funny

      'Orto' means 'ass' in Spanish. Oh wow, initially I didn't understand the point of this project. Thanks for clearing that up for me.
  4. Re:Doing things the slow way by hanshotfirst · · Score: 5, Funny

    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?
  5. crazy japanese by trybywrench · · Score: 2, Funny

    writing a java VM in javascript? *head asplodes*

    that's pretty cool but man, talk about a daunting tedious task. I'd rather bail 600 acres with a weed wacker and twisty-ties.

    --
    I came to the datacenter drunk with a fake ID, don't you want to be just like me?
  6. Language stacks galore! by serviscope_minor · · Score: 4, Funny

    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.
    1. Re:Language stacks galore! by mweather · · Score: 2, Funny

      We could run Linux in Firefox in Linux in Firefox!

    2. Re:Language stacks galore! by g1zmo · · Score: 2, Funny

      It's Ice Weasels all the way down....

      --
      I have found there are just two ways to go.
      It all comes down to livin' fast or dyin' slow.
      -REK, Jr.
  7. * Urk * by Tarlus · · Score: 2, Funny

    Anybody else twitch at the sight of that headline?

    --
    /* No Comment */
  8. As a side note... by Decameron81 · · Score: 2, Funny

    As a side note: "orto" in argentina means ass. I don't think I'd want to run anything through it.

    --
    diegoT
  9. Number #1 app by bigsexyjoe · · Score: 2, Funny

    Clearly the top application of this project is me playing that Tetris game and telling my boss that it's research for my job.

  10. This is just a prototype! by Kryptikmo · · Score: 4, Funny

    They don't know if it works properly yet - they're still waiting for it to finish running "Hello World"....