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

I decided to start experimenting with Rakudo and installed from source following the instructions here.

The problem is, a simple "hello world" script takes between fifteen and twenty seconds to run.

Can I assume this isn't normal? My old G5 Mac isn't great, but it's got plenty of RAM and the processor wasn't particularly busy.

Replies are listed 'Best First'.
Re: Rakudo on PowerPC Mac...
by matze77 (Friar) on Nov 26, 2009 at 06:39 UTC

    Hello I dont know Rakudo on Mac, you built from source i assume? Maybe you want to show us the script, just in case?

      Yes, I built from source, make, make install, and so on.

      And the script is literally just

      say "hello world";
Re: Rakudo on PowerPC Mac...
by jmcnamara (Monsignor) on Nov 27, 2009 at 12:02 UTC

    It is definitely slower than Perl5 but I don't see it that slow, even on a PowerPC G4:
    ~/tmp/rakudo$ time ./perl6 -e 'say "Hello, World"' Hello, World real 0m2.923s user 0m2.274s sys 0m0.244s And for comparison, here is perl 5.8.8 on the same machine: ~/tmp/rakudo$ time perl -le 'print "Hello, World"' Hello, World real 0m0.012s user 0m0.003s sys 0m0.008s

    --
    John.

Re: Rakudo on PowerPC Mac...
by moritz (Cardinal) on Nov 27, 2009 at 12:07 UTC
    I concur with the others: something is seriously broken with your build of Rakudo.

    Does it still take so long if you try parrot_install/bin/parrot perl6.pbc -e 'say "hello"', instead of using the perl6 executable? Did you try both one-liner (-e) and a script?

    If you look at a CPU monitor, is the CPU actually 100% busy while running the script?

    Perl 6 - links to (nearly) everything that is Perl 6.
Re: Rakudo on PowerPC Mac...
by Anonymous Monk on Nov 27, 2009 at 05:10 UTC
    Hmmm
    $ time perl6 -e "say 'Hello'" Hello real 1.00 user 0.00 sys 0.00 $ time perl6 -e "say 'Hello'" Hello real 2.00 user 0.00 sys 0.00
Re: Rakudo on PowerPC Mac...
by Cody Fendant (Hermit) on Dec 02, 2009 at 04:13 UTC

    Sorry I've taken a while to come back to this thread.

    A while later, having rebooted a couple of times for unconnected reasons, all is well and the script runs fine.