Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: Re: Perl myths ?

by tilly (Archbishop)
on Feb 22, 2004 at 21:12 UTC ( [id://330975]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Perl myths ?
in thread Perl myths ?

There likely will be a version of a Java compiler that can target Parrot. However Parrot does not consider all languages equal. It considers highly dynamic languages as first class citizens, and all other languages will pay overhead whether or not it makes sense for them. This means that Java running on Parrot will be far slower than Java running on a traditional JVM.

Therefore while it is an interesting proof of concept, people will only run Java on Parrot if they really, really have to.

Replies are listed 'Best First'.
Re: Re: Re: Re: Perl myths ?
by jryan (Vicar) on Feb 22, 2004 at 21:31 UTC

    You're definitely right about the (probably huge) speed loss, but don't forget that parrot-compiled languages will be able to use each other's libraries. So, even though I couldn't imagine anyone running a pure-java app on parrot, I could see a lot of people wanting to take advantage of the huge number of Java libraries out there.

      I'm more likely to want to take advantage of perl libraries from within Java. I have no doubt that there are a lot of high-quality Java libraries available, but finding them is made too hard because there's no JPAN.

        Well, thats a whole 'nother ball game right there. To make parrot/perl libraries to java, one would have to pretty much re-implement much of parrot in java or java bytecode, kinda like how Jython works. Why? The Java bytecode spec is very sparse; to support things like closers, and eval, and other things not natively in java, one heck of a lot of plumbing would be needed. (For instance, parrot has something like a bajillion opcodes, while the JVM spec has under 200).

Re: Re: Re: Re: Perl myths ?
by stvn (Monsignor) on Feb 23, 2004 at 01:46 UTC
    It considers highly dynamic languages as first class citizens, and all other languages will pay overhead whether or not it makes sense for them.

    The .NET Common Language Runtime is pretty much the other way around. It seems much better suited to more static languages. I suspect that Java would more likely migrate there than Parrot. It will be interesting to see when Parrot is finished how it will compare against the CLR.

    -stvn

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://330975]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-09-11 22:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (15 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.