Re: [perl #63606] Rakudo can't iterate on a Match object

2009-03-02 Thread Patrick R. Michaud
On Mon, Mar 02, 2009 at 08:33:16AM -0800, Carl Mäsak wrote: > rakudo: rule w { . }; 'a' ~~ m//; for %($/).kv {} > rakudo 50279c: RESULT«Method 'HOW' not found for invocant of > class 'Iterator' [...] While I agree that the error message is likely incorrect -- I'm not sure what the intent of the

Re: [perl #63458] Null PMC access in isa() when callingnon-existant rule

2009-03-02 Thread Vasily Chekalkin
Patrick R. Michaud wrote: This is also related to RT #62948, where null values appear in arrays and other aggregates. Instead of adding a bunch of "is this value null" checks throughout the code, I'd prefer to look for a way to automatically promote nulls into undefs at the appropriate points

Re: [perl #63458] Null PMC access in isa() when callingnon-existant rule

2009-03-02 Thread Vasily Chekalkin
Patrick R. Michaud wrote: Is it feasible to catch all "Null PMC access" exceptions at the top-level, promote PMCNULL to Undef (or Failure) and resume from exception? Good thinking... but there's not anything to "promote" -- i.e., from an exception handler we wouldn't have the ability to change

[perl #63606] Rakudo can't iterate on a Match object

2009-03-02 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #63606] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=63606 > rakudo: rule w { . }; 'a' ~~ m//; for %($/).kv {} rakudo 50279c: RESULT«Method 'HOW' n

Re: [perl #63458] Null PMC access in isa() when callingnon-existant rule

2009-03-02 Thread Patrick R. Michaud
On Tue, Mar 03, 2009 at 11:01:22AM +1100, Vasily Chekalkin wrote: > Patrick R. Michaud wrote: >>> Is it feasible to catch all "Null PMC access" exceptions at the >>> top-level, promote PMCNULL to Undef (or Failure) and resume from >>> exception? >> >> Good thinking... but there's not anything to "p

Re: [perl #63458] Null PMC access in isa() when callingnon-existant rule

2009-03-02 Thread Patrick R. Michaud
On Tue, Mar 03, 2009 at 10:21:33AM +1100, Vasily Chekalkin wrote: > Patrick R. Michaud wrote: >> This is also related to RT #62948, where null values appear in arrays and >> other aggregates. Instead of adding a bunch of "is this value null" checks >> throughout the code, I'd prefer to look for

Re: [perl #63458] Null PMC access in isa() when calling non-existant rule

2009-03-02 Thread Patrick R. Michaud
On Fri, Feb 27, 2009 at 02:21:59AM -0800, Vasily Chekalkin via RT wrote: > On Wed Feb 25 00:49:42 2009, ml...@physik.uni-wuerzburg.de wrote: > > 09:45 <@moritz_> rakudo: sub m (&f) { say "a" ~~ m// }; regex outer { > > a }; > > m(&a) > > 09:45 < p6eval> rakudo 7f8ba6: OUTPUT«Null P

Re: Rakudo's fork queue on GitHub

2009-03-02 Thread Patrick R. Michaud
On Sat, Feb 28, 2009 at 04:56:55PM -0600, Chris Dolan wrote: > On Feb 28, 2009, at 11:07 AM, Patrick R. Michaud wrote: >> On Sat, Feb 28, 2009 at 10:46:10AM -0600, Andy Lester wrote: >>> On Feb 28, 2009, at 10:29 AM, Patrick R. Michaud wrote: So, for the time being Rakudo's official policy wil

Re: Rakudo's fork queue on GitHub

2009-03-02 Thread Patrick R. Michaud
On Sun, Mar 01, 2009 at 11:06:53AM -0600, Andy Lester wrote: > So how about this for the workflow, Patrick: > > 1) Developer creates a branch to work on a feature or cleanup or > whatever > 2) Developer commits to dev/rakudo work branch however much she wants. > 3) Developer merges back to dev/ra

Re: Help re-building rakudo

2009-03-02 Thread Patrick R. Michaud
On Sun, Mar 01, 2009 at 03:32:46PM -0600, Chris Dolan wrote: > On Feb 26, 2009, at 3:06 PM, Moritz Lenz wrote: > >> But after that please do a 'make clean; perl Configure.pl' to make >> sure >> that the fallout of the previous build don't affect the new one. > > Time to update tools/rebase-rakudo

Re: [perl #63566]

2009-03-02 Thread Patrick R. Michaud
On Sun, Mar 01, 2009 at 10:38:01AM -0800, Patrick R. Michaud via RT wrote: > Patch applied in 023bb60, thanks! I should also note that Test::Harness 3 actually uses TAP::Harness, and that Test::Harness becomes a somewhat backwards-compatible interface for TAP::Harness. Pm

Statement modifiers as list comprehension operators

2009-03-02 Thread Dave Whipp
S04 mentions that statement modifiers behave as for perl5 (excpet that you can have both an conditional modifier and a looping modifier on a single statement. Both then it gives this example, with be modifiers being operators within an expression, not as modifiers of a statement. line 260:

Re: Meta- and Hyperoperators and Anonymous Subroutines

2009-03-02 Thread Thomas Chust
2009/3/2 Moritz Lenz : > Thomas Chust wrote: >> [...] >> Therefore I think that it would be a nice addition for Perl 6 if the >> X...X, <<...>> and similar operators could be applied to anonymous >> subroutines in addition to other operators. If such a syntactic change >> wasn't possible it would p

Re: $?OS change

2009-03-02 Thread Brandon S. Allbery KF8NH
On 2009 Mar 2, at 6:19, Timothy S. Nelson wrote: On Mon, 2 Mar 2009, Chris Dolan wrote: On Mar 2, 2009, at 12:04 AM, Timothy S. Nelson wrote: Hi. I note that we have $?OS, $?VM, and $?DISTRO (and their $* counterparts). I'd like to recommend that we eliminate $?OS, and replace it with $?K

[perl #63594] [BUG] memory leaks

2009-03-02 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #63594] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=63594 > It seems that even the simplest programs leak memory: $ perl6 -e 'while 1 { }' Watching

Re: Meta- and Hyperoperators and Anonymous Subroutines

2009-03-02 Thread Moritz Lenz
Hi, Thomas Chust wrote: > Hello, > > looking into Perl 6 syntax I noticed that there are meta- and > hyperoperators to perform among others the classical functional map > and fold operations. However, if I understood this correctly, you can > only use these constructs to lift scalar *operators* t

Re: $?OS change

2009-03-02 Thread Timothy S. Nelson
On Mon, 2 Mar 2009, Daniel Ruoso wrote: Em Seg, 2009-03-02 às 23:47 +1100, Timothy S. Nelson escreveu: On Mon, 2 Mar 2009, Daniel Ruoso wrote: So, I think the proper name to the variables would be $?ARCH and $*ARCH Where they would stringify to the arch triplet, while providing convenience me

[Rakudo] branch for Match.perl

2009-03-02 Thread Moritz Lenz
Hi, I've pushed the branch match_perl to github which implements Match.perl. What it emits is valid Perl 6 (I hope), but since Match.new() doesn't seem to work with named parameters yet, the result can not be evaluated back to match object. The output is extremely useful for debugging, IMHO: $ .

[perl #63590] BUILD receives wrong arguments

2009-03-02 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #63590] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=63590 > Rakudo 08b789048: ./perl6 -e 'class A { submethod BUILD(*...@a) { say @a.perl } }; A.new

Re: Google's Summer of Code 2009

2009-03-02 Thread Jonathan "Duke" Leto
Hello Hinrik, I will be the organization admin for TPF in GSoC 2009, please read more about it here: http://leto.net/dukeleto.pl/2009/03/applying-to-google-summer-of-c.html If you are a Perl-related project that wants to mentor a student in GSoC, please contact me directly. Cheers,

[perl #63596] [BUG] shadowing a parameter leads to "Null PMC access in type()"

2009-03-02 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #63596] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=63596 > # file next-bug.pl use v6; sub s($i is copy) { my @array; for 1..3 { @arr

Re: [perl #63584] AutoReply: Error Building Rakudo/Parrot on Mac OS X 10.5.6

2009-03-02 Thread Christian Kirsch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The bug seems to be due to two different Perl versions installed on the mac (one in /usr/bin, the other one in /opt/local/bin). After changing the PATH so that the version in /usr/bin was used exclusively, the build process terminated without any erro

[perl #63592] repeated 0.substr(-10) leads to segfault

2009-03-02 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #63592] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=63592 > Rakudo 08b789048: $ time perl6 -e 'while 1 { 0.substr(-10) }' Segmentation fault real

[perl #63588] [BUG] Accessing global variable in a class results in Null PMC access

2009-03-02 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #63588] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=63588 > Rakudo 08b789048: ./perl6 -e 'our $x; class Foo { $x = 3 }; say $x' Null PMC access in g

Re: Google's Summer of Code 2009

2009-03-02 Thread Moritz Lenz
Hi, Hinrik Örn Sigurðsson wrote: > Google has announced this year's Summer of Code[1]. The Perl > Foundation accepted one project (mentored by Moritz) related to Perl 6 > last year[2]. I was wondering if there are any developers interested > in mentoring students on Perl 6-related projects this ye

[perl #63584] Error Building Rakudo/Parrot on Mac OS X 10.5.6

2009-03-02 Thread via RT
# New Ticket Created by Christian Kirsch # Please include the string: [perl #63584] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=63584 > -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm trying to build rakudo/parro

Parrot Bug Summary

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

Re: $?OS change

2009-03-02 Thread Daniel Ruoso
Em Seg, 2009-03-02 às 10:39 -0300, Daniel Ruoso escreveu: > Em Seg, 2009-03-02 às 23:47 +1100, Timothy S. Nelson escreveu: > > Are we talking about $?VM vs. $?XVM here? > Well, yes... that adresses $?HOST_PERL and $?TARGET_PERL... but still > leaves $?HOST_ARCH and $?TARGET_ARCH, assuming not a

Re: $?OS change

2009-03-02 Thread Daniel Ruoso
Em Seg, 2009-03-02 às 23:47 +1100, Timothy S. Nelson escreveu: > On Mon, 2 Mar 2009, Daniel Ruoso wrote: > > So, I think the proper name to the variables would be > > $?ARCH and $*ARCH > > Where they would stringify to the arch triplet, while providing > > convenience methods for .cpu, .platform a

Re: $?OS change

2009-03-02 Thread Timothy S. Nelson
On Mon, 2 Mar 2009, Daniel Ruoso wrote: Em Seg, 2009-03-02 às 17:04 +1100, Timothy S. Nelson escreveu: Hi. I note that we have $?OS, $?VM, and $?DISTRO (and their $* counterparts). I'd like to recommend that we eliminate $?OS, and replace it with $?KERNEL (ie. Linux) and maybe $?ARCH

Re: $?OS change

2009-03-02 Thread Daniel Ruoso
Em Seg, 2009-03-02 às 17:04 +1100, Timothy S. Nelson escreveu: > Hi. I note that we have $?OS, $?VM, and $?DISTRO (and their $* > counterparts). I'd like to recommend that we eliminate $?OS, and replace it > with $?KERNEL (ie. Linux) and maybe $?ARCH (ie. i386). Thoughts? The usual way

Re: $?OS change

2009-03-02 Thread Timothy S. Nelson
On Mon, 2 Mar 2009, Chris Dolan wrote: On Mar 2, 2009, at 12:04 AM, Timothy S. Nelson wrote: Hi. I note that we have $?OS, $?VM, and $?DISTRO (and their $* counterparts). I'd like to recommend that we eliminate $?OS, and replace it with $?KERNEL (ie. Linux) and maybe $?ARCH (ie. i386). Th

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

2009-03-02 Thread pugs-commits
Author: leto Date: 2009-03-02 11:09:04 +0100 (Mon, 02 Mar 2009) New Revision: 25654 Modified: docs/Perl6/Spec/S32-setting-library/Numeric.pod Log: Fix typo in Numeric Modified: docs/Perl6/Spec/S32-setting-library/Numeric.pod === -

Re: perl6 tutorials

2009-03-02 Thread Carl Mäsak
Hej Lars, Lars (>): > I do not know Perl at all, but I'm very interested in perl6. > My problem is I do not find a good tutorial how to do real perl6 > development, all I find seems to assume you know perl5 and the perl > community. And I do not. That's an interesting question! I guess most of th

Re: $?OS change

2009-03-02 Thread Chris Dolan
On Mar 2, 2009, at 12:04 AM, Timothy S. Nelson wrote: Hi. I note that we have $?OS, $?VM, and $?DISTRO (and their $* counterparts). I'd like to recommend that we eliminate $?OS, and replace it with $?KERNEL (ie. Linux) and maybe $?ARCH (ie. i386). Thoughts? I disagree. User-space cod

perl6 tutorials

2009-03-02 Thread lars . a . johansson
Hi, I do not know Perl at all, but I'm very interested in perl6. My problem is I do not find a good tutorial how to do real perl6 development, all I find seems to assume you know perl5 and the perl community. And I do not. As an example I like to build a routine that connects to SAP and fetch dat

Meta- and Hyperoperators and Anonymous Subroutines

2009-03-02 Thread Thomas Chust
Hello, looking into Perl 6 syntax I noticed that there are meta- and hyperoperators to perform among others the classical functional map and fold operations. However, if I understood this correctly, you can only use these constructs to lift scalar *operators* to the domain of arrays. Coming from

[perl #63568] Null PMC access when calling .arity on a multi sub in Rakudo

2009-03-02 Thread Carl Mäsak via RT
Also .signature on multis: rakudo: sub f($z) {}; &f.signature.perl.say rakudo af4b73: OUTPUT«:(Any $z)␤» rakudo: multi sub f($z) {}; &f.signature.perl.say rakudo af4b73: OUTPUT«Null PMC access in find_method() [...]

[perl #63570] Null PMC access in &f.signature.params in Rakudo

2009-03-02 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #63570] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=63570 > rakudo: sub f($z) {}; &f.signature.params rakudo af4b73: RESULT«Null PMC access in fin

[perl #63568] Null PMC access when calling .arity on a multi sub in Rakudo

2009-03-02 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #63568] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=63568 > oh and is arity defined on multi subs ? rakudo: sub f($z) {}; &f.arity.say rakudo af4