techcode has asked for the wisdom of the Perl Monks concerning the following question:

I just readed this interesting news on : News.Com.com
.....Sun Chief Technology Officer Greg Papadopoulos said Sun is examining modified virtual machine software that can run other languages besides Java. The initial focus is on scripting languages, but other options include Fortran and C, and there's "no barrier" to a virtual machine that could run C#, he said. "The virtual machine is capable of executing more."....

Altho they havent realy mentioned Perl, maybe they were thinking of it?

Anyway, what do you think of that idea? Sounds like similar to parrot to me.

  • Comment on Possibility of Perl running on Java VM?

Replies are listed 'Best First'.
Re: Possibility of Perl running on Java VM?
by chromatic (Archbishop) on Jun 17, 2005 at 00:58 UTC

    Dan and Larry went to Sun last fall to talk about Perl and Perl 6 on the JVM. I seem to remember Dan saying that Sun thinks that maybe it might be possible to add an opcode to do dynamic dispatch for method calls, but that's about the extent of their desire and ability to support dynamic languages.

    If Perl runs on the JVM, it's not because the JVM provides rich primitives to make it works. It'll take a really clever hacker to build most of what Perl needs atop the JVM.

      But I belive it will pay off. Most of desktop computers (ones with Win/Mac ussualy) have Java VM installed.

      So if Perl would be able to run on it, you could write apps for basicly "all" computers in the ussage today.

      "ALL" - OK I'm exagerating a little bit, but you get the point.

        Maybe so, but good luck finding a recent JVM for any platform other than MS Windows, Sparc Solaris, x86 Linux (32 bit, I believe), and perhaps Mac OS X. I have code that runs more places than that, and it's not Java code.

Re: Possibility of Perl running on Java VM?
by mhearse (Chaplain) on Jun 17, 2005 at 00:29 UTC
    I think Jython is a similar project.
Re: Possibility of Perl running on Java VM?
by dragonchild (Archbishop) on Jun 17, 2005 at 13:26 UTC
    Isn't it really really hard to do this because of stack-based vs. register-based issues? (Or was that running Java on Parrot?)

    • In general, if you think something isn't in Perl, try it out, because it usually is. :-)
    • "What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against?"