A suggestion about parrot sugar

2010-06-24 Thread Xi Yang
For example: "use parrot Foo::Bar", which would load parrot library under Foo/Bar. However, this would be easy and useful for rakudo, but would not for other possible Perl6 implementations. _ Hot

Re: Two questions on Perl 6 functionality

2010-06-20 Thread Xi Yang
t. 2: It seems that wrapping will affect the closure globally, but I only want class with specific role has specific modification. > Date: Sun, 20 Jun 2010 13:53:59 +0200 > From: mor...@faui2k3.org > To: jianding...@msn.com > CC: perl6-us...@perl.org > Subject: Re: Two questions on P

RE: Two questions on Perl 6 functionality

2010-06-20 Thread Xi Yang
Very subtle implementation, I'm trying to understand those things. Thanks! > Date: Sun, 20 Jun 2010 13:53:59 +0200 > From: mor...@faui2k3.org > To: jianding...@msn.com > CC: perl6-us...@perl.org > Subject: Re: Two questions on Perl 6 functionality > > > >

RE: Two questions on Perl 6 functionality

2010-06-20 Thread Xi Yang
You might mis-understood method modifiers. I mean: before x() after x() around x() > Date: Sun, 20 Jun 2010 12:17:46 +0200 > From: mor...@faui2k3.org > To: jianding...@msn.com > CC: perl6-us...@perl.org > Subject: Re: Two questions on Perl 6 functionality > > Hi, >

Two questions on Perl 6 functionality

2010-06-19 Thread Xi Yang
1: Does Perl 6 has method modifiers like those in Moose? Where can I get the doc about that? By reading apocalypse? 2: Does Perl 6 has build-in support for message passing (like those in Glib and Actionscript)? _

Is there already have these utilities?

2010-06-17 Thread Xi Yang
Like those in perl5: File::Spec;File::Path;Getopt::Long; P.S.: There seems has something wrong with my damned windows hotmail, as it weirdly ignores newlines... _ Hotmail: Trusted email with

RE: Something wrong with str.reverse

2010-06-17 Thread Xi Yang
Thanks!So the API has changed permanently? > Date: Fri, 18 Jun 2010 13:29:11 +0800 > From: qiuhong...@gmail.com > To: perl6-us...@perl.org > Subject: Re: Something wrong with str.reverse > > 于 2010年06月18日 13:25, Xi Yang 写道: > > I'm using rakudo 2010_05, w

Something wrong with str.reverse

2010-06-17 Thread Xi Yang
I'm using rakudo 2010_05, with parrot 2.4.0. I found the $str.reverse just don't work at all: $ perl6 -e 'my $str="abcde"; say $str; say $str.reverse;'abcdeabcde _ Hotmail: Powerful Free email

Severe performance loss, comparing with perl 5

2010-06-12 Thread Xi Yang
I'm trying to use use Perl 6 to process some nucleotide sequences. However, I found it strangely slow on substr or string concat operations, compared with its Perl 5 equivalent. Here are the codes, Perl 6 on top, Perl 5 on middle, a test input file on bottom (should be stored to "makeseq.fasta"