r25797 - docs/Perl6/Spec

2009-03-10 Thread pugs-commits
Author: wayland Date: 2009-03-11 04:10:30 +0100 (Wed, 11 Mar 2009) New Revision: 25797 Modified: docs/Perl6/Spec/S06-routines.pod Log: Added a cross-reference to S07-iterators, as suggested by ruoso/skids on IRC. Modified: docs/Perl6/Spec/S06-routines.pod ===

Re: Git workflow

2009-03-10 Thread fREW Schmidt
On Mon, Mar 9, 2009 at 11:47 PM, fREW Schmidt wrote: > Hey guys, > > I just threw together a workflow for git with rakudo ( > http://wiki.github.com/rakudo/rakudo/frews-recommended-workflow) and I > think it will help a lot. Hopefully I didn't make any mistakes. Anyway, I > plan on trying it ou

Re: .map/.reduce with larger arity

2009-03-10 Thread Daniel Ruoso
Em Seg, 2009-03-09 às 12:24 -0700, Larry Wall escreveu: > On Mon, Mar 09, 2009 at 02:40:43PM -0300, Daniel Ruoso wrote: > : ... $capture ~~ $signature ...; > : my $args_matched = @($/).elems; > : &code.(|$/); > That API still would not tell the match whether signature must match the > entire

Re: Some setting candidates

2009-03-10 Thread Patrick R. Michaud
On Tue, Mar 10, 2009 at 12:46:29PM -0500, Jonathan Scott Duff wrote: > For those who are interested in adding some of the Perl 6 > builtins to Rakudo's core settings files -- I've created > a wiki page that lists some prime candidates that I think > ought to be relatively easy to co

http://nopaste.snit.ch/15851

2009-03-10 Thread Andrew Whitworth
http://nopaste.snit.ch/15851

Some setting candidates

2009-03-10 Thread Patrick R. Michaud
For those who are interested in adding some of the Perl 6 builtins to Rakudo's core settings files -- I've created a wiki page that lists some prime candidates that I think ought to be relatively easy to convert (perhaps using inline PIR). http://wiki.github.com/rakudo/rakudo/setting-candidates S

[perl #63778] Rakudo doesn't numify operands to min

2009-03-10 Thread Carl Mäsak via RT
anyway, S03 says that "By default C and C use C semantics." I don't think that implies numification of the arguments. oh. but what happens when you cmp a Num and a List? I don't know. Neither does Parrot, which is why we get "No suitable candidate found ... " :-) pasting this addendum to the

[perl #63776] [BUG] Failed spectest

2009-03-10 Thread Patrick R. Michaud via RT
On Tue Mar 10 08:38:38 2009, nelo.ony...@googlemail.com wrote: > Hi, > > I have just updated my rakudo installation. I ran the tests and spectest. > The tests passed. Here was the summary of the spectest: > > Test Summary Report > --- > t/spec/S32-list/reduce.rakudo

Re: [perl #63764] [PATCH] Reimplement Any.reduce in Perl6

2009-03-10 Thread Patrick R. Michaud
On Tue, Mar 10, 2009 at 03:40:20AM -0700, Vasily Chekalkin wrote: > +multi method reduce(Code $expression) { > +my Int $arity = $expression.count; > +die('Cannot reduce() using a unary or nullary function.') if $arity > < 2; > + > +my $list := @.list or fail('Cannot red

[perl #63778] Rakudo doesn't numify operands to min

2009-03-10 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #63778] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=63778 > rakudo: my @a = 1,2,3; say @a min 4 rakudo 531ca2: OUTPUT«Multiple Dispatch: No suitab

[perl #63776] [BUG] Failed spectest

2009-03-10 Thread Ifejinelo Onyiah
# New Ticket Created by "Ifejinelo Onyiah" # Please include the string: [perl #63776] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=63776 > Hi, I have just updated my rakudo installation. I ran the tests and spectest. The

Re: Recursive Runtime Role Reapplication Really Rebounds

2009-03-10 Thread David Green
On 2009-Mar-9, at 3:32 am, Ovid wrote: Since you cache resultsets if they've not changed, you could easily have the XML and YAML roles getting reapplied at runtime multiple times. Could this issue be mitigated with temp variables? { temp $resultset does Role::Serializable::YAML; pr

Re: r25775 - docs/Perl6/Spec

2009-03-10 Thread Larry Wall
On Tue, Mar 10, 2009 at 11:12:13AM +, Aaron Crane wrote: : pugs-comm...@feather.perl6.nl writes: : > Modified: : >docs/Perl6/Spec/S05-regex.pod : > +The result object is available in the C object via a C<< . >> lookup. : : I think I understand the reasoning behind this change. : : Howeve

never mind, found it

2009-03-10 Thread yary
Synopsis 6 has arity arity vs count for manditory vs optional parameters sorry for the noise

Is "arity" described in a synopsis?

2009-03-10 Thread yary
I've browsed the discussions on re-implementing reduce in perl6, and saw the comment how "arity" returns the # of required arguments. I wanted to refer back to a discussion of arity in the synopsis, looking to see if there was a way to get the # of optional args, but grepping through the directory

Re: Git workflow

2009-03-10 Thread Patrick R. Michaud
On Tue, Mar 10, 2009 at 09:02:08AM -0500, Jonathan Scott Duff wrote: > On Tue, Mar 10, 2009 at 08:40:12AM -, Rafael Garcia-Suarez wrote: > > Moritz Lenz wrote in perl.perl6.compiler : > > > Hi, > > > > > > fREW Schmidt wrote: > > >> I just threw together a workflow for git with rakudo ( > > >>

[perl #63772] Rakudo can't bind an array element to an array

2009-03-10 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #63772] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=63772 > perl6: my @a = 1,2,3; @a[2] := []; say @a.perl elf 25787: OUTPUT«[1,2,3]␤» ..rakudo 9

[perl #63770] Rakudo does the Wrong Thing when calling a method which returns a closure

2009-03-10 Thread Carl Mäsak via RT
$.a.() is equivalent to $.a().() which is equivalent to $.a()() ruoso: ok. I buy that. I just don't see why .() and () aren't equivalent in this particular case. they are but you're missing that $.a is a method call not a variable ah. so, the full version of $.a is $.a() * masak sees now

[perl #63770] Rakudo does the Wrong Thing when calling a method which returns a closure

2009-03-10 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #63770] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=63770 > hmm something's wrong there rakudo: class A { method a { { .say } }; method foo { $.a

Re: Git workflow

2009-03-10 Thread Jonathan Scott Duff
On Tue, Mar 10, 2009 at 08:40:12AM -, Rafael Garcia-Suarez wrote: > Moritz Lenz wrote in perl.perl6.compiler : > > Hi, > > > > fREW Schmidt wrote: > >> I just threw together a workflow for git with rakudo ( > >> http://wiki.github.com/rakudo/rakudo/frews-recommended-workflow) and I > >> think

[perl #63764] [PATCH] Reimplement Any.reduce in Perl6

2009-03-10 Thread via RT
# New Ticket Created by Vasily Chekalkin # Please include the string: [perl #63764] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=63764 > --- src/builtins/any-list.pir | 61 -

perl6-all@perl.org

2009-03-10 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #63766] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=63766 > rakudo: &map.assuming({}) rakudo 95ce39: OUTPUT«Null PMC access in find_method() [...]

[perl #63762] Slightly better implementation of Any.reduce

2009-03-10 Thread via RT
# New Ticket Created by Vasily Chekalkin # Please include the string: [perl #63762] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=63762 > After some discussions on #perl6 I've created new version of Any.reduce. pmichaud++

[perl #63760] Rakudo thinks there is an implied semicolon after loop { ... }

2009-03-10 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #63760] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=63760 > rakudo: loop { say "OH HAI"; last } while 1 rakudo 95ce39: OUTPUT«OH HAI [...] moritz

Re: Git workflow

2009-03-10 Thread Rafael Garcia-Suarez
Moritz Lenz wrote in perl.perl6.compiler : > Hi, > > fREW Schmidt wrote: >> I just threw together a workflow for git with rakudo ( >> http://wiki.github.com/rakudo/rakudo/frews-recommended-workflow) and I think >> it will help a lot. Hopefully I didn't make any mistakes. Anyway, I plan >> on tryi

[perl #63698] [PATCH] Reimplement List.reduce in Perl6.

2009-03-10 Thread Vasily Chekalkin via RT
Hello. This one is latest vesion. Sorry for messing with git-send-email :-/ -- Bacek

Re: r25775 - docs/Perl6/Spec

2009-03-10 Thread Aaron Crane
pugs-comm...@feather.perl6.nl writes: > Modified: >docs/Perl6/Spec/S05-regex.pod > +The result object is available in the C object via a C<< . >> > lookup. I think I understand the reasoning behind this change. However, using . in particular says "boolean" to me. How about .<*> instead, wit

Re: .map/.reduce with larger arity

2009-03-10 Thread Larry Wall
On Tue, Mar 10, 2009 at 07:46:51PM +1300, Martin D Kealey wrote: : I'd like to be able to use grep, map, etc in a currying fashion. Can I do: : : my &square_list := -> $x { $x * $x }.map(); my &square_list := &map.assuming(-> $x { $x * $x}); : And if so, what is the signature of &squar

Re: Git workflow

2009-03-10 Thread Moritz Lenz
Uhm, ignore me, it seems I can't read, it's already in there. Sorry for the noise. Moritz Moritz Lenz wrote: > Hi, > > fREW Schmidt wrote: >> I just threw together a workflow for git with rakudo ( >> http://wiki.github.com/rakudo/rakudo/frews-recommended-workflow) and I think >> it will help a l

listing all files in all sub directories

2009-03-10 Thread steve
I am trying to list all files in all sub-directories and have the code below but this is listing the . directories as well as the directories themselves. I just want the full path filenames and not the individual directories out. Here is what I have #!c:/Perl/bin/Perl.exe @ARGV = qw(.) unless @AR

Re: Git workflow

2009-03-10 Thread Moritz Lenz
Hi, fREW Schmidt wrote: > I just threw together a workflow for git with rakudo ( > http://wiki.github.com/rakudo/rakudo/frews-recommended-workflow) and I think > it will help a lot. Hopefully I didn't make any mistakes. Anyway, I plan > on trying it out tomorrow (Boo Haman!) and I'd appreciate i