Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re^2: Getting Involved with Perl 6 - an Update

by moritz (Cardinal)
on Jun 10, 2008 at 06:02 UTC ( #691146=note: print w/replies, xml ) Need Help??

in reply to Re: Getting Involved with Perl 6 - an Update
in thread Getting Involved with Perl 6 - an Update

Does KindaPerl6 use Rakudo?

No. At the time kp6 was started Rakudo wasn't even close to usable.

Its also a bit worrying that there are so many projects - doesn't this dilute the efforts and slow down progress?

Yes and no. Many of these projects have a different focus, and thus they help exploring the specs in different directions. For example one of the design goals of kp6 was to get BEGIN blocks right, smop explores meta object programming, elf focuses on the grammar and parsing.

I don't know if progress was faster if all focused on the same implementation, but in the end everybody can decide what do to with their time.

I hope that Perl6 won't be slower than Perl5 - one of the bad things about Ruby is the lack of speed.

You have to be aware that there are two kinds of speed, one manifesting in short compilation time, the other in short run time.

I would be very surprised if any Perl 6 implementation could keep pace with perl 5's compilation. It's just blazingly fast due to some very evil hacks, for example it doesn't generate an abstract syntax tree. On the plus side some implementations (specifically rakudo) might implement precompilation of modules, which would somewhat reduce compilation time of a given script.

Regarding run time speed, I guess that an initial Perl 6 release will be slower than perl 5. That's because perl 5 has some years of optimizations behind it, which rakudo and other implementations will certainly lack.

But note that Perl 6 is designed with great care to allow many kinds of optimizations. For example the optional static types can allow some very radical optimizations - if some numbers are declared as Int, you can compile down infix:<+> to a single CPU instruction - you can't in perl 5, because you have to beware of overloading and tied variables, and because you can't declare any types.

Also note that rakudo compiles stuff (indirectly) to parrot byte code, and parrot has JIT which perl 5 lacks. Now with JIT you can do all kinds of clever optimizations that you simply can't in perl 5. Optimizations in parrot will benefit all high level languages running on it, so there's great incentive to implement them.

Replies are listed 'Best First'.
Re^3: Getting Involved with Perl 6 - an Update
by spacebat (Beadle) on Jun 13, 2008 at 01:17 UTC

    Thanks for that explanation moritz, looking around it seems KP6 is implemented in perl5, which would explain the slowness.

    Its pleasing to know more funds are starting to flow to perl6 and parrot hackers now. Cheers!

      looking around it seems KP6 is implemented in perl5

      Only the backend. The frontend is written in Perl 6.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://691146]
[Discipulus]: good morning monks! town holiday here.. but super busy
Discipulus time is not comarable with money.. when you have a roof and something to eat
[Corion]: Hi Discipulus! Busy making the town better? ;)
[Discipulus]: the house I hope.. now i'm going on the roof putting some protection for the sun. afternoon 150 km for a water polo training (son, obviously..)
[Corion]: Discipulus: Ah - lazy roof-sitting ;)

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2017-06-29 08:37 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (655 votes). Check out past polls.