Re: [perl #63712] [PATCH] Reimplement List.min in Perl6 instead of PIR

2009-03-09 Thread Vasily Chekalkin
Patrick R. Michaud via RT wrote: On Sat, Mar 07, 2009 at 09:50:02PM -0800, Vasily Chekalkin wrote: +our List multi min(*...@values) { +my $by = @values[0] ~~ Code ?? shift @values !! sub { $^a cmp $^b }; +@values.min($by); +} This doesn't match the spec -- the $by parameter is required

Re: Recursive Runtime Role Reapplication Really Rebounds

2009-03-09 Thread Ovid
- Original Message > From: Ovid > Eventually, the code broke and threw a bunch of weird "recursive inheritance" > warnings due to multiple anonymous classes being applied to the object. This > was *real fun* to debug, but I can imagine a scenario for this being natural: > > Your RE

[perl #63740] Rakudo can't reduce with optional params

2009-03-09 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #63740] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=63740 > rakudo: say reduce -> $a, $b?, $c? { $a + ($b//0) + ($c//0) }, 1,2; rakudo 8bbc31: OUT

[perl #63744] Rakudo's ObjectRef doesn't proxy .signature properly

2009-03-09 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #63744] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=63744 > rakudo: sub f (Code $c) { say +$c.signature.params }; f(-> $a, $b? {...}) rakudo 8bbc3

[perl #63742] Rakudo doesn't count $_ in the arity of a block

2009-03-09 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #63742] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=63742 > rakudo: my $x = { $_*2 }; say $x.arity rakudo 8bbc31: OUTPUT«0␤» that however is wron

Parrot Bug Summary

2009-03-09 Thread Parrot Bug Summary
Parrot Bug Summary http://rt.perl.org/rt3/NoAuth/parrot/Overview.html Generated at Mon Mar 9 13:00:01 2009 GMT --- * Numbers * New Issues * Overview of Open Issues * Ticket Status By Version * Requestors with mo

Re: [perl #63742] Rakudo doesn't count $_ in the arity of a block

2009-03-09 Thread Patrick R. Michaud
On Mon, Mar 09, 2009 at 02:43:40AM -0700, Carl Mäsak wrote: > rakudo: my $x = { $_*2 }; say $x.arity > rakudo 8bbc31: OUTPUT«0␤» > that however is wrong > * masak submits > > Expected result: 1. I'm not sure what it takes for a block to > "recognize" that it has a $_ as an implicit parameter, t

[perl #63744] Rakudo's ObjectRef doesn't proxy .signature properly

2009-03-09 Thread Patrick R. Michaud via RT
Now fixed in d16d3c3. We probably want to add a test in the suite, so I'm leaving the ticket open (assigning to moritz) until that's done. Thanks! Pm

Re: r25745 - docs/Perl6/Spec

2009-03-09 Thread Larry Wall
On Sun, Mar 08, 2009 at 09:43:17AM +0100, pugs-comm...@feather.perl6.nl wrote: : added new rule to enable definition of . is bad design, because people will think it matches a whole word, and it's unnecessary because it duplicates \w. Larry

Re: .map/.reduce with larger arity

2009-03-09 Thread Patrick R. Michaud
On Sun, Mar 08, 2009 at 09:31:19PM -0700, Larry Wall wrote: > On Sun, Mar 08, 2009 at 09:36:17PM +0100, Moritz Lenz wrote: > : But both pugs and rakudo respect the arity of the code ref passed to it, > : so that (1..6).map({$^a + $^b + $^c}) returns the list (6, 15), which is > : very nice and very

Re: Masak List, take 3

2009-03-09 Thread Patrick R. Michaud
On Fri, Mar 06, 2009 at 01:37:16PM +1100, Timothy S. Nelson wrote: > I guess the way I decide things like this is: > - If it's a method on a role/object, then it lives in S32 > - If it's not a method, then it lives in S29 Do we have many things that aren't methods? >> * Should t

Re: r25745 - docs/Perl6/Spec

2009-03-09 Thread Patrick R. Michaud
> On Sun, Mar 08, 2009 at 09:43:17AM +0100, pugs-comm...@feather.perl6.nl wrote: > =item * ws > > Match whitespace between tokens. > > =item * space > > Match a single whitespace character. Hence C< > is equivalent to C< > + >. The definitions of and above are incorrect, or at least mislea

Re: r25745 - docs/Perl6/Spec

2009-03-09 Thread jerry gay
On Mon, Mar 9, 2009 at 10:16, Patrick R. Michaud wrote: >> On Sun, Mar 08, 2009 at 09:43:17AM +0100, pugs-comm...@feather.perl6.nl >> wrote: >> =item * ws >> >> Match whitespace between tokens. >> >> =item * space >> >> Match a single whitespace character. Hence C< > is equivalent to C< >> + >.

Re: .map/.reduce with larger arity

2009-03-09 Thread Daniel Ruoso
Em Dom, 2009-03-08 às 21:31 -0700, Larry Wall escreveu: > I think the basic rule has to be simply can the signature bind to > the remaining arguments. If not, we get a warning on unused arguments. Just to put here an idea I sent on irc... What if Signature.ACCEPTS set $/ with the matched argumen

Re: r25745 - docs/Perl6/Spec

2009-03-09 Thread Patrick R. Michaud
On Mon, Mar 09, 2009 at 10:32:02AM -0700, jerry gay wrote: > > To make things a bit quicker for people writing custom versions of > > (which may need to include "comment whitespace"), the Parrot > > Compiler Toolkit also provides an optimized rule that matches > > only between a pair of word char

Re: r25745 - docs/Perl6/Spec

2009-03-09 Thread Larry Wall
: - PGE doesn't implement by default, because that's not (yet?) : part of the spec. It only appears in PCT::Grammar, for people : using the Parrot Compiler Toolkit to create languages. I have wanted a number of times, particularly after generic tokens that might or might end in \w. So feel

Re: .map/.reduce with larger arity

2009-03-09 Thread Larry Wall
On Mon, Mar 09, 2009 at 02:40:43PM -0300, Daniel Ruoso wrote: : Em Dom, 2009-03-08 às 21:31 -0700, Larry Wall escreveu: : > I think the basic rule has to be simply can the signature bind to : > the remaining arguments. If not, we get a warning on unused arguments. : : Just to put here an idea I s

r25767 - docs/Perl6/Spec

2009-03-09 Thread pugs-commits
Author: pmichaud Date: 2009-03-09 20:50:03 +0100 (Mon, 09 Mar 2009) New Revision: 25767 Modified: docs/Perl6/Spec/S05-regex.pod Log: [spec]: Update S05: remove , add , revise , , , and . Modified: docs/Perl6/Spec/S05-regex.pod

Re: r25745 - docs/Perl6/Spec

2009-03-09 Thread Patrick R. Michaud
On Mon, Mar 09, 2009 at 10:53:12AM -0700, Larry Wall wrote: > : - PGE doesn't implement by default, because that's not (yet?) > : part of the spec. It only appears in PCT::Grammar, for people > : using the Parrot Compiler Toolkit to create languages. > > I have wanted a number of times, par

r25768 - docs/Perl6/Spec/S32-setting-library

2009-03-09 Thread pugs-commits
Author: wayland Date: 2009-03-09 22:43:40 +0100 (Mon, 09 Mar 2009) New Revision: 25768 Modified: docs/Perl6/Spec/S32-setting-library/Basics.pod docs/Perl6/Spec/S32-setting-library/Numeric.pod Log: Added real/imaginary to Complex, and true/not to Object Modified: docs/Perl6/Spec/S32-setting

Re: Masak List, take 3

2009-03-09 Thread Timothy S. Nelson
On Mon, 9 Mar 2009, Patrick R. Michaud wrote: On Fri, Mar 06, 2009 at 01:37:16PM +1100, Timothy S. Nelson wrote: I guess the way I decide things like this is: - If it's a method on a role/object, then it lives in S32 - If it's not a method, then it lives in S29 Do we have

r25769 - docs/Perl6/Spec/S32-setting-library

2009-03-09 Thread pugs-commits
Author: wayland Date: 2009-03-09 22:49:00 +0100 (Mon, 09 Mar 2009) New Revision: 25769 Modified: docs/Perl6/Spec/S32-setting-library/Numeric.pod Log: Changed real to re, and imaginary to im, as perl moritz_++ suggestion Modified: docs/Perl6/Spec/S32-setting-library/Numeric.pod ===

r25770 - docs/Perl6/Spec

2009-03-09 Thread pugs-commits
Author: lwall Date: 2009-03-09 22:54:20 +0100 (Mon, 09 Mar 2009) New Revision: 25770 Modified: docs/Perl6/Spec/S02-bits.pod docs/Perl6/Spec/S05-regex.pod Log: .i should be \i .text should be .Str Modified: docs/Perl6/Spec/S02-bits.pod ===

r25771 - docs/Perl6/Spec/S32-setting-library

2009-03-09 Thread pugs-commits
Author: wayland Date: 2009-03-09 23:02:28 +0100 (Mon, 09 Mar 2009) New Revision: 25771 Modified: docs/Perl6/Spec/S32-setting-library/Basics.pod Log: Removed "is export" from true/not, as per pmichaud++ s suggestion Modified: docs/Perl6/Spec/S32-setting-library/Basics.pod =

r25772 - docs/Perl6/Spec

2009-03-09 Thread pugs-commits
Author: lwall Date: 2009-03-09 23:19:26 +0100 (Mon, 09 Mar 2009) New Revision: 25772 Modified: docs/Perl6/Spec/S12-objects.pod Log: clarify semantics of invocant type checking on exported methods Modified: docs/Perl6/Spec/S12-objects.pod ===

r25773 - docs/Perl6/Spec/S32-setting-library

2009-03-09 Thread pugs-commits
Author: wayland Date: 2009-03-09 23:24:01 +0100 (Mon, 09 Mar 2009) New Revision: 25773 Modified: docs/Perl6/Spec/S32-setting-library/Rules.pod Log: Updated in line with Larry's changes to S05 Modified: docs/Perl6/Spec/S32-setting-library/Rules.pod =

r25774 - docs/Perl6/Spec

2009-03-09 Thread pugs-commits
Author: lwall Date: 2009-03-09 23:33:54 +0100 (Mon, 09 Mar 2009) New Revision: 25774 Modified: docs/Perl6/Spec/S05-regex.pod Log: ~ and + now just stringify/numify the matched string, not the result object Modified: docs/Perl6/Spec/S05-regex.pod ===

r25775 - docs/Perl6/Spec

2009-03-09 Thread pugs-commits
Author: lwall Date: 2009-03-09 23:46:07 +0100 (Mon, 09 Mar 2009) New Revision: 25775 Modified: docs/Perl6/Spec/S05-regex.pod Log: more result object demotion Modified: docs/Perl6/Spec/S05-regex.pod === --- docs/Perl6/Spec/S05-reg

Re: .map/.reduce with larger arity

2009-03-09 Thread Larry Wall
On Mon, Mar 09, 2009 at 11:38:29AM -0500, Patrick R. Michaud wrote: : On Sun, Mar 08, 2009 at 09:31:19PM -0700, Larry Wall wrote: : > On Sun, Mar 08, 2009 at 09:36:17PM +0100, Moritz Lenz wrote: : > : But both pugs and rakudo respect the arity of the code ref passed to it, : > : so that (1..6).map(

Git workflow

2009-03-09 Thread fREW Schmidt
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 out tomorrow (Boo Haman!) and I'd appreciate it if anyone who knows

Re: .map/.reduce with larger arity

2009-03-09 Thread Martin D Kealey
On Mon, 9 Mar 2009, Larry Wall wrote: > the only difference between C and C is that you can only use > C at the start of a statement. But we're more liberal about where > statements are expected in Perl 6, so you can say things like: > > my @results = do for @list -> $x {...}; > my @resul