Hi,

I'm new here, so forgive me if this is not the right list.

After having used perl5 a lot years ago, this weekend I
finally decieded to have a look at perl6.

I followed Moritz Lenz' recent series of articles
in iX magazin [1] and got rakudo running:

  git clone git://github.com/rakudo/rakudo.git
  cd rakudo/
  perl Configure.pl --gen-parrot
  make parrot
  make

which worked flawlessly :)

It is not completely clear to me how to get the exact
build version of rakudo and parrot, since the perl6
executable just says

  chris$ perl6 -v
  This is Rakudo Perl 6.

  Copyright 2006-2009, The Perl Foundation.

Anyway, the parrot and rakudo files were downloaded and
built in around May 31 22:00, however.

Now, my problem is that perl6 code runs very slooooooow :(

The following code:

  my $i;
  my $a = 0;
  loop ($i = 0; $i < 10000; $i++) {
      $a = $a + 1;
  }
  print $a;

takes 6 seconds to run (about 0.8 is perl6 startup):

chris$ time perl6 test.pl6
10000
real    0m6.829s
user    0m6.432s
sys     0m0.336s

I understand this is all an early phase of development,
but this is like 2 or 3 orders of magnitude slower
than perl5 :(

So, my question: is there something fundamentally
flawed in how I'm using rakudo (i.e. I'm doing something
silly), or is this just the state of things at the time
being?

Bye :)
Chris.

PS: machine info

chris$ uname -a
Darwin moon.local 9.7.0 Darwin Kernel Version 9.7.0: Tue Mar 31 22:52:17 PDT 2009; root:xnu-1228.12.14~1/RELEASE_I386 i386

chris$ gcc -v
Using built-in specs.
Target: i686-apple-darwin9
Configured with: /var/tmp/gcc/gcc-5465~16/src/configure --disable- checking -enable-werror --prefix=/usr --mandir=/share/man --enable- languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/ $/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/ lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic -- host=i686-apple-darwin9 --target=i686-apple-darwin9
Thread model: posix
gcc version 4.0.1 (Apple Inc. build 5465)


[1] http://www.heise.de/ix/

---
Chris Mair
ch...@1006.org
http://www.1006.org


Reply via email to