Re: [perl #67356] [TODO] implement two-arg log in Rakudo

2009-07-08 Thread Patrick R. Michaud
On Wed, Jul 08, 2009 at 02:44:24PM -0700, Carl Mäsak wrote: p6eval rakudo 70bfd5: OUTPUT«1.48547529722733␤» moritz_ our Num multi method log ( Num $x: Num :$base = Num::e ) is export moritz_ it *should* work. Please please please don't constrain the arguments to Num when you actually write

Re: [pugs-commits] r27435 - t/spec/S12-attributes

2009-07-05 Thread Patrick R. Michaud
On Mon, Jul 06, 2009 at 06:28:27AM +0200, pugs-comm...@feather.perl6.nl wrote: +# RT #57336 +{ +# XXX Right message? +my $good_message = q{Lexical 'self' not found}; +my $bad_code; + +$bad_code = '$.a'; +eval $bad_code; +ok $! ~~ Exception, bad code: '$bad_code';

Re: [perl #67100] [PATCH] Move infix:leg to the setting

2009-07-01 Thread Patrick R. Michaud
On Wed, Jul 01, 2009 at 02:13:03AM -0700, Moritz Lenz via RT wrote: On Tue Jun 30 23:35:04 2009, matt-w wrote: This patch moves operator infix:leg to the setting. S03 says it's defined in terms of cmp, so that's what this does. The old PIR implementation was slightly more complex, and I'm

[perl #67046] [PATCH] - implemented: not Object's method, and sign Num's method

2009-06-30 Thread Patrick R. Michaud via RT
On Mon Jun 29 00:36:42 2009, fernandocor...@gmail.com wrote: implemented: - not Object's method - sign Num's method Thats my first time to send a patch, I don't know if its OK, but I really want to help. Thank you for the patches! However, they may need some refactoring (or at least some

[perl #66826] [BUG] implementing an operator in the setting causes Null PMC access in find_method()

2009-06-30 Thread Patrick R. Michaud via RT
Now fixed in e0a9d86, and we now have several operators being defined in the setting (along with tests using those operators). Closing ticket, thanks! Pm

[perl #66624] [BUG] Bogus unthrown exception when using 'index' on non-substring in Rakudo

2009-06-30 Thread Patrick R. Michaud via RT
Rakudo 95a2c4f now gives a more useful error message when returning the failure for not finding a given substring: pmich...@orange:~/rakudo$ ./perl6 say index abcd, x Substring 'x' not found in 'abcd' Closing ticket, thanks! Pm

[perl #66640] [BUG] minmax operator not working yet

2009-06-30 Thread Patrick R. Michaud via RT
The infix:minmax operator has now been added in Rakudo a4978b9, with a test added to t/spec/S03-operator/misc.t in r27322. Closing ticket, Pm

[perl #66996] [BUG] Null PMC access when Rakudo tries to parse :colonpair[] with empty list

2009-06-30 Thread Patrick R. Michaud via RT
On Fri Jun 26 07:56:40 2009, masak wrote: masak rakudo: my $a = :x[] p6eval rakudo 6c43f9: OUTPUT«Null PMC access in find_method() [...] * masak submits rakuodbug masak rakudo: :x[] p6eval rakudo 6c43f9: OUTPUT«Null PMC access in find_method() [...] What should $a contain in the above case?

[perl #60142] A line-counting program in Rakudo reports one more line than wc

2009-06-30 Thread Patrick R. Michaud via RT
On Sun Oct 26 12:27:26 2008, masak wrote: Rakudo r32151 contains a bug which makes it read a nonexistent blank line at the end of files. $ wc README | awk '{ print $1 }' 102 $ README ./perl6 -e 'my $l = 0; while !$*IN.eof { $l++; my $dummy = =$*IN; }; say $l' 103 IO.pod:1207 claims

[perl #66928] [BUG] Null PMC access when doing .WHAT on a built-in infix op in Rakudo

2009-06-30 Thread Patrick R. Michaud via RT
On Tue Jun 30 18:47:59 2009, KyleHa wrote: I've written a test for this in S12-methods/what.t in r27345. Thanks! Closing ticket! Pm

[perl #66840] [BUG] rakudo dies when Ternary Error occurs

2009-06-30 Thread Patrick R. Michaud via RT
On Sun Jun 21 23:57:17 2009, amoc wrote: : bash$ perl6 : 1 ?? 1,2 !! 3,4 : Ternary error : bash$ this is not wrong as infix:, has looser precedence than the ternary operator( ?? !! ) but when ternary error occurs, the program emits the error and dies. should provide the proper error

[perl #66818] Inconsistent behaviour when iterating over %*VM.kv

2009-06-30 Thread Patrick R. Michaud via RT
On Sun Jun 21 10:44:43 2009, moritz wrote: iterating over $*VM.kv shows more than one key: $ perl6 -e 'my $keys = 0; for %*VM.kv - $k, $v { $keys++}; say $keys' 141 Somehow the inner hash is flattened. Using a normal hash I couldn't reproduce this behaviour. Now fixed in 6c6299f: $

[perl #58290] [spec] define meaning of prior in S05

2009-06-30 Thread Patrick R. Michaud via RT
I've changed this ticket to indicate that it's waiting on spec clarification as to the exact meaning of prior in regexes. Pm

Re: [perl #66640] [BUG] minmax operator not working yet

2009-06-27 Thread Patrick R. Michaud
On Fri, Jun 26, 2009 at 08:37:20AM -0700, Richard Hainsworth via RT wrote: my @a=1,2,3,4; my @b=9,8,7,1; say (@a minmax @b).perl While rakudo doesn't implement infix:minmax yet, the operator is constrained to having two elements on either side, so the above code wouldn't work anyway.

[perl #65546] No STDOUT output

2009-06-25 Thread Patrick R. Michaud via RT
I don't have any idea where the problem might be; since the Rakudo team doesn't build the packages you installed I'm not quite sure where to being troubleshooting. I suggest contacting the packager who put together the binaries; try with the latest Rakudo release; or see if you can build Rakudo

[perl #66640] [BUG] minmax operator not working yet

2009-06-25 Thread Patrick R. Michaud via RT
On Tue Jun 16 10:14:11 2009, richardh wrote: my @a=1,2,3,4; my @b=9,8,7,1; say (@a minmax @b).perl While rakudo doesn't implement infix:minmax yet, the operator is constrained to having two elements on either side, so the above code wouldn't work anyway. It would be good to have some tests for

[perl #66620] [BUG] t/spec/S10-packages/basic.rakudo gives a Parrot backtrace in Rakudo

2009-06-25 Thread Patrick R. Michaud via RT
This is a Parrot bug. Recently the Parrot team have been working to clean up memory leaks in context handling, and as a result we're starting to see double free errors on exit again. Running Rakudo with Parrot's -G flag avoids the backtrace. I'll leave this ticket open for now but mark it as

[perl #66790] [BUG] Perl6MultiSub and MultiSub do not stringify well

2009-06-20 Thread Patrick R. Michaud (via RT)
# New Ticket Created by Patrick R. Michaud # Please include the string: [perl #66790] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=66790 The following code demonstrates that MultiSub and Perl6MultiSub do

Rakudo Perl 6 development release #18 (Pittsburgh)

2009-06-18 Thread Patrick R. Michaud
On behalf of the Rakudo development team, I'm pleased to announce the June 2009 development release of Rakudo Perl #18 Pittsburgh. Rakudo is an implementation of Perl 6 on the Parrot Virtual Machine [1]. The tarball for the June 2009 release is available from

[perl #66538] [BUG] Rakudo falls in the infinite loop in Range with non-ascii

2009-06-15 Thread Patrick R. Michaud via RT
At the moment string ranges are only defined for certain subsets of Unicode. See the description under Autoincrement precedence in Synopsis 3. More to the point, if you want to cycle through a range of codepoints, you probably want: map { .chr }, 44032..45208; I agree that the string form

Re: [perl #66352] reduce with user-defined sub fail

2009-06-14 Thread Patrick R. Michaud
On Sat, Jun 06, 2009 at 08:01:50AM -0700, Daniel Ruoso wrote: ruoso rakudo: multi a (Str $a, Str $b) { [+$a, +$b] }; multi a (Array $a, $b where '+') { [+] @($a) }; ('1', '2', '+').reduce: a; p6eval rakudo fb2fd4: OUTPUT«Unknown introspection value 'pos_required'␤in method Any::reduce

[perl #66270] [TODO] get Perl::Grammar.parse (with the Perl6::Grammar::Actions) to work

2009-06-05 Thread Patrick R. Michaud via RT
Now added in 056847f. Please add a test to t/spec so we can close this ticket. :-) Pm

[perl #66270] [TODO] get Perl::Grammar.parse (with the Perl6::Grammar::Actions) to work

2009-06-05 Thread Patrick R. Michaud via RT
Test now added to S05-grammar/std.t, closing ticket. Pm

[perl #66250] Trouble with white space in Rakudo grammars

2009-06-04 Thread Patrick R. Michaud via RT
On Wed Jun 03 06:08:46 2009, haakonsk wrote: This doesn't work: grammar A { rule TOP { 'a' ' b' {*} } }; my $m = A.parse('a b'); say $/; Result: Empty string Expected result: a b Rakudo is correct here. Whitespace in rules is metasyntactic -- it gets replaced by .ws. So, the above rule is

[perl #66280] [BUG] Ranges appear to modify readonly lexicals in pointy nested for loops

2009-06-04 Thread Patrick R. Michaud via RT
Now fixed in 9e2b9ad: $ cat 66280 for 1,3 - $i { for $i..4 - $j { say $j,$i }; $i.say; } $ ./perl6 66280 1,1 2,1 3,1 4,1 1 3,3 4,3 3 $ Test added to range.t. Closing ticket, thanks! Pm

[perl #66182] No die sub found in Rakudo

2009-06-03 Thread Patrick R. Michaud via RT
The current version of Rakudo (after Jonathan's merge) now reports: $ cat 66182 my $x; [$x.WHAT, $x.HOW, $x].say; $ ./perl6 66182 Failure() Method 'say' not found for invocant of class 'P6metaclass' $ I don't know if this is more along the lines of what you were

[perl #61988] $.foo doesn't accept args

2009-06-02 Thread Patrick R. Michaud via RT
Now fixed in c907d37: $ cat 61988 class A { method foo { say @_; } method bar { $.foo(42); } } A.bar; $ ./perl6 61988 42 $ Assigning ticket for spectest verification. Thanks! Pm

[perl #61774] Private methods in classes misparsed as variables?

2009-06-02 Thread Patrick R. Michaud via RT
This now works as of c907d37: $ cat 61774 class A { has @something is rw; method doit { @something = 1 2 3; say self!something; } my method something { Hello, world; } } my A $a .= new; $a.doit; $ ./perl6 61774 Hello,

[perl #63800] Method 'result_object' not found calling make in a grammar action method

2009-06-02 Thread Patrick R. Michaud via RT
Rakudo now gives a much more useful error message for the case where make() cannot set a result object: $ cat 63800 grammar G { regex TOP { 'a' {*} } } class GA { method TOP($m) { make GA.new } } G.parse('a', :action(GA.new)); $ ./perl6 63800

[perl #65412] Null PMC caused by implicit return of regex

2009-06-02 Thread Patrick R. Michaud via RT
This code appears to be working for me: $ cat 65412 class A { has $!rx; method do { $!rx = / xyz / } } A.new.do $ ./perl6 65412 $ I suspect the problem is really with the evalbot attempting to evaluate the returned regex in boolean context after the

Re: [perl #65942] Missing %*ENV values are defined, but don't exist

2009-05-26 Thread Patrick R. Michaud
On Sun, May 24, 2009 at 02:18:26PM -0700, Larry Wall wrote: On Sun, May 24, 2009 at 12:08:58PM -0700, yary wrote: : I don't recall if defined autovivifies, but assuming it does that would make : sense. : : Agreed that if defined autovivifies, it explains observed behavior in : current

Rakudo Perl 6 development release #17 (Stockholm)

2009-05-21 Thread Patrick R. Michaud
On behalf of the Rakudo development team, I'm pleased to announce the May 2009 development release of Rakudo Perl #17 Stockholm. Rakudo is an implementation of Perl 6 on the Parrot Virtual Machine [1]. The tarball for the May 2009 release is available from http://github.com/rakudo/rakudo/downloads

Re: Perl6 won't compile on Cygwin/Win (configure.pl won't run)

2009-05-19 Thread Patrick R. Michaud
On Mon, May 18, 2009 at 06:28:19PM -0400, Peter Schwenn wrote: Chromatic, PM, I got a fresh copy of parrot; configured and built. And parrot_config revision still returns 0 (zero). How are you obtaining Parrot? Are you doing an SVN checkout, or some other mechanism? Pm

Re: Perl6 won't compile on Cygwin/Win (configure.pl won't run)

2009-05-19 Thread Patrick R. Michaud
On Mon, May 18, 2009 at 02:54:55PM -0700, chromatic wrote: On Monday 18 May 2009 12:20:47 Patrick R. Michaud wrote: I'm more likely to suspect that something in your Parrot build is causing parrot_config to not provide the SVN revision number for Parrot. I have an SVK checkout of Parrot

Re: Perl6 won't compile on Cygwin/Win (configure.pl won't run)

2009-05-18 Thread Patrick R. Michaud
On Mon, May 18, 2009 at 01:01:55PM -0400, Peter Schwenn wrote: I get: Reading configuration information from ../../parrot_config ... Parrot revision r38795 required (currently r0) What do you get if you manually run ..\..\parrot_config revision from the command line (from within the

[perl #65208] .print on Match objects does not print anything in Rakudo

2009-05-14 Thread Patrick R. Michaud via RT
On Tue Apr 28 07:44:46 2009, masak wrote: masak rakudo: grammar A { regex TOP { foo } }; A.parse(foo).say; say bar; A.parse(foo).print; say bar p6eval rakudo ae5e29: OUTPUT«foo␤bar␤bar␤» * masak submits rakudobug Expected output: «foo␤bar␤foobar␤». The problem here is that .print is

Re: [perl #65208] .print on Match objects does not print anything in Rakudo

2009-05-14 Thread Patrick R. Michaud
On Thu, May 14, 2009 at 11:34:21AM -0700, Patrick R. Michaud via RT wrote: I'm not sure what the correct behavior should be here, so I'm converting this ticket into a request to confirm/clarify the spec. Followup... Larry has since clarified that .print on a Cursor object (used while

Re: [perl #65512] [BUG] non-ASCII characters in named arguments

2009-05-09 Thread Patrick R. Michaud
On Sat, May 09, 2009 at 04:17:53AM -0700, Moritz Lenz wrote: 13:09 @moritz_ rakudo: sub f(*%a) { say %a.perl }; f(ä = 1) 13:09 p6eval rakudo 1f4ec5: OUTPUT«error:imcc:syntax error, unexpected USTRINGC, expecting STRINGC ('unicode:\x{e4}')␤ in file 'EVAL_17' line 53␤{}␤» This looks like

Re: [perl #57788] rakudo doesn't recognize when subs or methods are being redefined

2009-05-08 Thread Patrick R. Michaud
On Fri, May 08, 2009 at 04:20:28AM -0700, jn...@jnthn.net via RT wrote: On Fri Dec 12 13:54:14 2008, masak wrote: peters rakudo: sub foo { }; sub foo {}; say ok; polyglotbot OUTPUT[ok␤] masak peters: nice one. that's a bug. * masak submits rakudobug It warns now. Can't close this

[perl #64868] [TODO] build system improvements

2009-05-08 Thread Patrick R. Michaud via RT
Thanks for the patch. I ultimately decided to refactor things slightly differently from the patch (although it did help me to crystallize exactly where the problems were). In particular, I basically reconfigured the build system so that the proper way to address a dependency issue is to re-run

Re: [perl #65344] Rakudo's hash is broken

2009-05-06 Thread Patrick R. Michaud
On Tue, May 05, 2009 at 08:36:37PM +0200, Moritz Lenz wrote: hash((a = 2) = 3) Note that this stringifies the pair. Clarification: In Rakudo it currently stringifies the pair. In Perl 6 hash keys are (afaik) allowed to be any type. Pm

[perl #65344] Rakudo's hash is broken

2009-05-04 Thread Patrick R. Michaud via RT
On Sun May 03 13:24:39 2009, masak wrote: moritz_ rakudo: say (hash(a = '3' )).perl p6eval rakudo cddb16: OUTPUT«{}␤» moritz_ wait a sec moritz_ let me look up the semantics of hash() first masak sure. moritz_ If you wish to be less ambiguous, the Chash list operator will moritz_

[perl #65346] [spec] Does the body of a class declaration have a lexical 'self'?

2009-05-04 Thread Patrick R. Michaud via RT
On Sun May 03 13:51:11 2009, s1n wrote: I ran into a bug where I couldn't refer to 'self' when it logically made sense I could: (15:33:15) s1n: rakudo: class A { has %.H = (a = - $x { self.c($x) }); I don't see anything in the spec that indicates that the body of the class declaration has a

[perl #65346] [spec] Is self defined in class declaration bodies?

2009-05-04 Thread Patrick R. Michaud via RT
21:00 TimToady pmichaud: note that for the self ticket, the phrase in question is a has initializer, which runs in BUILD context, and hence does have an obvious instance self, so this isn't really about binding self to the class 21:04 pmichaud TimToady: okay, thanks. 21:04 pmichaud So we

[perl #65260] [BUG] .perl on protoobject should not have parens

2009-04-29 Thread Patrick R. Michaud (via RT)
# New Ticket Created by Patrick R. Michaud # Please include the string: [perl #65260] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=65260 21:31 TimToady rakudo: string.WHAT.perl.say 21:31 p6eval rakudo 39e45d

[perl #63908] ~$stuff.WHAT should end in ()

2009-04-28 Thread Patrick R. Michaud via RT
Now fixed in f5bbcad (and tests in t/spec updated to match). Thanks, Pm

[perl #64742] [PATCH] Simplification from resolution of RT 53926

2009-04-28 Thread Patrick R. Michaud via RT
On Wed Apr 15 03:27:17 2009, ronaldxs wrote: The source documentation switched two digits in its claim on the parrot RT holding up the enhancement and gives the RT as 53296. There is no RT 53296 but 53926 matches and has been resolved. Patch noticeably simplifies

Re: [perl #65138] [PATCH] Foo::_foo() parsefails

2009-04-27 Thread Patrick R. Michaud
On Sat, Apr 25, 2009 at 04:33:44PM -0700, Geoffrey Broadwell wrote: Rakudo doesn't parse Foo::_foo() properly, while Foo::foo() works fine. [...] $ ./perl6 -e 'module Foo { sub _foo { say foo } }; Foo::_foo()' Statement not terminated properly at line 1, near _foo() While the patch appears

Re: [perl #65006] mingw32-make realclean doesn't clean everything

2009-04-27 Thread Patrick R. Michaud
On Sun, Apr 26, 2009 at 07:04:28AM -0700, webmas...@cosmicperl.com via RT wrote: Infinoid helped me track the problem down to * being escaped on some of the directories for the cleanup. So things like:- $(PMC_DIR)\*.h Need to be:- $(PMC_DIR)\\*.h Parrot already does this in it's makefile

Re: [perl #65138] [PATCH] Foo::_foo() parsefails

2009-04-27 Thread Patrick R. Michaud
On Mon, Apr 27, 2009 at 08:31:38AM -0500, Patrick R. Michaud wrote: On Sat, Apr 25, 2009 at 04:33:44PM -0700, Geoffrey Broadwell wrote: Rakudo doesn't parse Foo::_foo() properly, while Foo::foo() works fine. [...] $ ./perl6 -e 'module Foo { sub _foo { say foo } }; Foo::_foo()' Statement

[perl #65138] [PATCH] Foo::_foo() parsefails

2009-04-27 Thread Patrick R. Michaud via RT
Now fixed in f93154a. We need to verify there's a spectest for this particular problem. We should also add spectests to make sure that alpha matches underscores. Assigning to moritz++ for test updates. Thanks! Pm

[perl #64208] Segfault when make()ing things in a when-block in grammar actions

2009-04-27 Thread Patrick R. Michaud via RT
I think this bug should now be fixed in 456ade5 -- it no longer segfaults on the test program I'm giving it. The problem appears to have been that 'when' statements (and 'loop' and 'repeat') were failing to create the implicit $/ lexical var (as well as $_ and $!), and thus the 'make' function

Re: [perl #64208] Segfault when make()ing things in a when-block in grammar actions

2009-04-27 Thread Patrick R. Michaud
On Mon, Apr 27, 2009 at 08:45:47PM -0400, Will Coleda wrote: On Mon, Apr 27, 2009 at 8:10 PM, Patrick R. Michaud via RT perl6-bugs-follo...@perl.org wrote: I think this bug should now be fixed in 456ade5 -- it no longer segfaults on the test program I'm giving it.   [...] I'll assign

Re: Rakudo can't run on cygwin (WinXP), can anyone help me?

2009-04-24 Thread Patrick R. Michaud
On Thu, Apr 23, 2009 at 10:11:21PM +0800, Ma Jinke wrote: I put Rakudo from git under C:\cygwin\home\admin\rakudo(cygwin:/home/admin/rakudo), It compiled nicely. but it didn't do anything and just went back to the prompt parrot:make test is OK rakudo: make test is OK, but make spectest is

Re: [perl #65046] [BUG] external class names are not parsed properly when precompiling

2009-04-24 Thread Patrick R. Michaud
On Thu, Apr 23, 2009 at 09:33:37AM -0700, Jeff Horwitz wrote: The result is that Foo.new() becomes: $P20 = Foo() $P21 = !dispatch_method($P20, new) with the out-of-place Foo() failing miserably. The offending code can be easily reproduced using the pir target: [j...@groovy

[perl #64822] S05 and Rakudo disagree on :: or . for grammar rules

2009-04-23 Thread Patrick R. Michaud via RT
S05 has been updated, closing ticket. Pm

[perl #64276] [TODO] implement embedded comments

2009-04-23 Thread Patrick R. Michaud via RT
There are lots of spectests for embedded comments already, so closing ticket. Thanks! Pm

[perl #64090] Cannot store a regular expression in a Regex variable in Rakudo

2009-04-23 Thread Patrick R. Michaud via RT
Now fixed in f0fab249. Forwarding ticket to moritz to verify there's a spectest available for this. Thanks! Pm

Re: [perl #64958] Fixes for log10 of Complex numbers

2009-04-22 Thread Patrick R. Michaud
On Wed, Apr 22, 2009 at 08:21:49AM -0400, Will Coleda wrote: On Wed, Apr 22, 2009 at 3:49 AM, Jonathan Leto perl6-bugs-follo...@perl.org wrote: The attached patch makes calling log10 as a method on Complex numbers work, as well as making all tests in t/spec/S32-num/log.t pass. This

Re: [perl #64858] PATCH: Add .get method to Iterator

2009-04-22 Thread Patrick R. Michaud
On Sun, Apr 19, 2009 at 07:38:07PM -0400, Brian S. Julin wrote: Iterator will support .get. It's unclear whether IO will as well, or whether it will stay exclusively with .getc/.readline. It's fairly certain that IO will use .get -- indeed, it was IO that caused us to change from prefix:=

Re: [perl #64878] Greek letters in variable names do not work in Rakudo

2009-04-22 Thread Patrick R. Michaud
On Mon, Apr 20, 2009 at 12:32:05AM -0700, Carl Mäsak wrote: wayland rakudo: my $βοο = καλλω; print $βοο; p6eval rakudo 0d5515: OUTPUT«error:imcc:syntax error, unexpected USTRINGC, expecting STRINGC ('unicode:$\u03b2\u03bf\u03bf') [...] * masak submits rakudobug The problem seems to be that

Rakudo Perl 6 development release #16 (Bratislava)

2009-04-22 Thread Patrick R. Michaud
On behalf of the Rakudo development team, I'm pleased to announce the April 2009 development release of Rakudo Perl #16 Bratislava. Rakudo is an implementation of Perl 6 on the Parrot Virtual Machine [1]. The tarball for the April 2009 release is available from

[perl #63616] Named captures are Str's, not Matches

2009-04-21 Thread Patrick R. Michaud via RT
Now fixed in 6ea0aa1. If we have confirmation of tests then this ticket can be closed. Thanks! Pm

Re: [perl #64888] Anonymous classes are not quite as anonymous as one would wish in Rakudo

2009-04-21 Thread Patrick R. Michaud
On Mon, Apr 20, 2009 at 07:58:42AM -0700, Carl Mäsak wrote: masak rakudo: sub foo() { return class { method Str() { return OH HAI }; method Num() { return 42 } } }; say ~foo; say +foo p6eval rakudo 480902: OUTPUT«!ANON10␤Class !ANON10 already registered! [...] jnthn Ugh. Anonymous classes

Re: [perl #64890] Build dependencies

2009-04-21 Thread Patrick R. Michaud
On Mon, Apr 20, 2009 at 08:56:16AM -0700, Helmut Wollmersdorfer wrote: it would be nice to have some build dependencies documented in e.g. README or on the website (compare http://docs.parrot.org/parrot/latest/html/docs/book/ch02_getting_started.pod.html Build requirements). Patches to

[perl #64694] [BUG] Rakudo fails to build against parrot r38094

2009-04-20 Thread Patrick R. Michaud via RT
On Sun Apr 19 17:47:13 2009, cosmicnetworks wrote: After a painful process of building different Parrots and trying to build Rakudo I found the problem starts with Parrot r38030. This revision of Parrot has the files \src\pmc\sharedref.pmc and src\pmc\ref.pmc removed. I guess there is

[perl #64816] [PATCH] build/PARROT_REVISION embeds a newline on Win32, makes --gen-parrot fail

2009-04-18 Thread Patrick R. Michaud via RT
This should be fixed in afd8ff1. Thanks! Pm

Oslo Perl 6 Hackathon Notes

2009-04-13 Thread Patrick R. Michaud
As some of you are aware, this week is the Nordic Perl Workshop [1], and in the days immediately following the workshop we will have the Oslo Perl 6 Hackathon [2]. During the first day of the hackathon Gabor Szabo will be doing a Hands-on Perl 6 training course [3], the other two days will be for

[perl #64096] [spec] Synopsis 32 doesn't have trim() listed

2009-03-26 Thread Patrick R. Michaud via RT
Applied in 00cd1fd, thanks! The 'trim' function is still not listed in any of the Synopses, though, so I'm converting this ticket to be a synopsis bug in hopes that someone will update S32 accordingly. Thanks again! Pm

[perl #64092] [PATCH] Add Perl 6 versions of p5chomp and p5chop to Any.pm

2009-03-26 Thread Patrick R. Michaud via RT
Applied in a0c6e3d, with a small change (switching \o12 to \x0a) in 5c07c7b. There are already tests for p5chomp and p5chop in the test suite, so I'll add them to spectest.data. I'm also curious if checking for only \x0a is correct; the synopsis says it removes anything that matches /\n/ which

[perl #64060] [PATCH] Move capitalize from builtins to setting

2009-03-25 Thread Patrick R. Michaud via RT
I'm declining this patch in favor of a slightly shorter version taken almost directly from the synopsis: our Str multi method capitalize() is export { self.lc.subst(/\w+/, { .ucfirst }, :global) } Just for reference (and for consideration in other upcoming patches) -- the patch

[perl #64092] [PATCH] Add Perl 6 versions of p5chomp and p5chop to Any.pm

2009-03-25 Thread Patrick R. Michaud via RT
On Sun Mar 22 10:11:06 2009, cspencer wrote: The following patch adds Perl 6 versions of the p5chomp and p5chop methods to Any-str.pm Applying this patch causes me to get failures in t/spec/S05-mass/rx.t . I'm not exactly sure _why_ I'm getting the failures yet, but perhaps others can try

Re: [perl #63874] [PATCH] floor-ceiling-round-sign-and-abs-in-perl6

2009-03-24 Thread Patrick R. Michaud
On Mon, Mar 16, 2009 at 09:41:37PM -0700, Geoffrey Broadwell wrote: On Mon, 2009-03-16 at 21:08 -0500, Patrick R. Michaud wrote: By putting floor/ceiling/round/sign/abs as a candidates for the setting I was really aiming more for inline PIR than a pure Perl 6 solution. We still need those

Re: [perl #63908] ~$stuff.WHAT should end in ()

2009-03-24 Thread Patrick R. Michaud
On Tue, Mar 17, 2009 at 11:36:52AM -0700, jn...@jnthn.net via RT wrote: On Sun Mar 15 15:27:41 2009, moritz wrote: S12-objects.pod 1581:WHATthe protoobject of the type, stringifies to short name ~ '()' Currently it stringfies to short name without trailing (). If

Re: [perl #63874] [PATCH] floor-ceiling-round-sign-and-abs-in-perl6

2009-03-16 Thread Patrick R. Michaud
On Sun, Mar 15, 2009 at 01:25:28AM -0500, fREW Schmidt wrote: Lesson from the Forth world: In cases where the semantic of a high-level word exactly (or very closely) matches an instruction in the hardware's ISA, it really deserves to be a primitive. Yeah, the main reason I did it was

Re: [perl #63800] Method 'result_object' not found calling make in a grammar action method

2009-03-12 Thread Patrick R. Michaud
On Thu, Mar 12, 2009 at 01:42:47AM -0700, Matthew Walton wrote: Run this: grammar G { regex TOP { 'a' {*} } } class GA { method TOP($m) { make GA.new } } G.parse('a', :action(GA.new)); And this happens: rakudo ea3283: OUTPUT«Method 'result_object' not found for invocant of

Re: [perl #63796] [PATCH] Add Perl6 versions of ucfirst, lcfirst, chop and fmt to Any.pm

2009-03-12 Thread Patrick R. Michaud
On Wed, Mar 11, 2009 at 07:49:16PM -0700, Cory Spencer wrote: +our Str multi method lcfirst is export { +self ?? self.substr(0,1).lc ~ self.substr(1) !! +} + +our Str multi method ucfirst is export { +self ?? self.substr(0,1).uc ~ self.substr(1) !! +} We need to

pynie moved to pynie.googlecode.com

2009-03-12 Thread Patrick R. Michaud
The pynie compiler (Python on Parrot) has now moved out of the Parrot repository into its own repository at http://pynie.googlecode.com/ . I'll be updating the README and other documentation items in the repository over the next few days. If other people would like commit access to the repo,

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 reduce()

[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

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

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

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: moritz_ rakudo: my $x = { $_*2 }; say $x.arity p6eval rakudo 8bbc31: OUTPUT«0␤» moritz_ 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

[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: [perl #63700] [BUG] Rakudo unable to take reference for infix operators.

2009-03-08 Thread Patrick R. Michaud
On Sat, Mar 07, 2009 at 06:28:29PM -0800, Vasily Chekalkin wrote: bacek std: my $c = infix:cmp; say $c(5, 42); p6eval std 25744: OUTPUT«ok 00:03 48m␤» bacek rakudo: my $c = infix:cmp; say $c(5, 42); p6eval rakudo ed4cd1: OUTPUT«Statement not terminated properly at line 1, near :cmp;

[perl #63704] [PATCH] Replace PIR pairs method with Perl 6 version

2009-03-08 Thread Patrick R. Michaud via RT
+our List multi method pairs(@values: *...@indices) { +gather { +for (@values.keys Z @values) - $key, $val is rw { +take ($key = $val) +unless (@indices ($key !~~ any(@indices))); +} +} +} Especially in class

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

2009-03-08 Thread Patrick R. Michaud
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. At any rate, the first

[perl #63724] Change to List.perl

2009-03-08 Thread Patrick R. Michaud (via RT)
# New Ticket Created by Patrick R. Michaud # Please include the string: [perl #63724] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=63724 For someone looking for something to do -- the recent change to evaluating

Re: [perl #63704] [PATCH] Replace PIR pairs method with Perl 6 version

2009-03-08 Thread Patrick R. Michaud
On Sun, Mar 08, 2009 at 08:15:32PM +0100, Moritz Lenz wrote: I hope I fixed both of your concerns with this commit: commit 051ad5115268e5415bebb1988cbf0b1be626156b Yes, they look much better now. Thanks! Pm

rakudo.org web site

2009-03-04 Thread Patrick R. Michaud
We're now putting together a revamped rakudo.org website that we plan to be _the_ central location for information about Rakudo Perl, and a lot of useful information about Perl 6 as well. We're looking for people to contribute content and update pages -- see the How to help page at

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

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.pl! Not

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

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/f/ }; regex outer { a }; m(a) 09:45 p6eval rakudo 7f8ba6: OUTPUT«Null PMC access in

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 a way

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 promote -- i.e

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: moritz_ rakudo: rule w { . }; 'a' ~~ m/w/; for %($/w).kv {} p6eval 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

[perl #63566]

2009-03-01 Thread Patrick R. Michaud via RT
Patch applied in 023bb60, thanks! Pm

Rakudo's fork queue on GitHub

2009-02-28 Thread Patrick R. Michaud
A few people have asked about submitting patches via the fork queue on GitHub; after working with the queue this morning and largely being frustrated by it, I'm going to request that patches continue to be submitted as patches through RT. The biggest difficulty that I'm encounter with the fork

Re: Rakudo's fork queue on GitHub

2009-02-28 Thread Patrick R. Michaud
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 will be to accept patch submissions via RT. I've now cleared the fork queue on GitHub; any patches that were previously

<    1   2   3   4   5   6   7   >