The topic for #perl6 is: pugscode.org/ planetsix.perl.org/ | nopaste: sial.org/pbot/perl6 | pugs: [~] <m oo se> (or rakudo:, kp6:, elf: etc.) (or perl6: for all) | irclog: irc.pugscode.org/
Set by TimToady on 25 November 2008.
rakudo_svn r33495 | jonathan++ | [rakudo] When we see a proto routine, mark it :multi() so it ends up in the Perl6MultiSub and set a proto property on it. 00:00
r33496 | jonathan++ | [rakudo] Some initial work on proto support. This finds and extracts the proto from the other candidates, and if there is an ambiguity or we don't have any applicable candidates then we hand back the proto instead. This patch also adds a mixing bit of documentation and fixes a
..memory leak that could happen if we ended up with a circularity in the narrowness graph (need to free memory up before throwing the exception).
pugs_svn r24154 | jnthn++ | [t/spec] Some simple tests for proto, which aren't related to operators. 00:01
rakudo_svn r33497 | jonathan++ | [rakudo] Add S06-multi/proto.t, which has some tests we pass and has been fudged. 00:10
[particle]1 sigh. i can't remember how to match a repeated pattern in the same regex 00:34
token foo { $<sym>=[\w+] ... $<sym> } doesn't seem to work
[particle]1 timtoady: got a distracted sec to remind me of the syntax for the above? 00:49
i wanna match 'ABC foo ABC'
TimToady that should work 00:50
lambdabot TimToady: You have 2 new messages. '/msg lambdabot @messages' to read them.
[particle]1 rats. thanks.
mncharity "You have reached the answering machine of Murphy. I am out of the office until tomorrow. Please leave your name, number, and project, and I'll be happy to break it tomorrow. Beeep." 02:12
pugs_svn r24155 | putter++ | [rx_on_re] Instead of the AST directly emitting rx engine runtime subs, it now emits p5 code which creates them later. No regressions. 02:31
r24155 | putter++ | STD_blue-based elfx now runs /a/.match("bac") (but still returns a non-elf rx_on_re Match class), and passes its first rx_on_re/t/ tests.
literal perl6: say «oh h\»i» 02:45
p6eval pugs: OUTPUT[ohh»i␤]
..rakudo 33499: OUTPUT[Statement not terminated properly at line 1, near "\x{ab}oh h\\\x{bb}i\x{bb}"␤␤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)␤]
..elf 24155: OUTPUT[Parse error in: /tmp/4JAp577RWb␤panic at line 1 column 0 (pos 0): Can't understand next input--giving up␤WHERE: say «oh h\»i»␤WHERE:/\<-- HERE␤ STD_red/prelude.rb:99:in `panic'␤ STD_red/std.rb:76:in `scan_unitstopper'␤ STD_red/std.rb:224:in `comp_unit'␤ STD_red/std.rb:210:in
.....
mncharity well, that went smoothly. Match unification and fleshing out blue AST->IR next I think. should be able to start it tomorrow. 02:46
literal perl6: say <<oh h\>i>> 02:48
p6eval elf 24155: OUTPUT[o␤]
..pugs, rakudo 33499: OUTPUT[ohh>i␤]
diakopter help alias 03:25
erm
/help alias I mean 03:26
buu 18
pugs_svn r24156 | hinrik++ | [util/perl6.vim] treat sigils, twigils, and package scope separately from variable names, improve numbers, autoquoting, strings, and a bunch of other fixes 06:53
pugs_svn r24157 | moritz++ | [t/spec] some unfudges for rakudo 07:43
literal perl6: say <1e-9 08:04
p6eval rakudo 33499: OUTPUT[␤]
..elf 24157: OUTPUT[Parse error in: /tmp/w3Q6ed5bp4␤panic at line 1 column 5 (pos 5): Error in quotesnabber␤WHERE: say <1e-9␤WHERE: /\<-- HERE␤ STD_red/prelude.rb:99:in `panic'␤ STD_red/std.rb:1307:in `quotesnabber'␤ (eval):1:in `__quote_2074984'␤ STD_red/prelude.rb:406:in `block in
..longest_...
..pugs: OUTPUT[*** ␤ Unexpected end of input␤ expecting "\\", variable name, ">" or "<"␤ at /tmp/DCIfRbrEB8 line 2, column 1␤]
moritz_ rakudo: class Foo { has $bar; method baz($baz) { given ($baz) { foo($baz, $bar); } } } 09:14
p6eval rakudo 33502: No output (you need to produce output to STDOUT)
moritz_ rakudo: class Foo { has $bar; method baz() { given (1) { foo($bar); } } }; say '2' 09:16
p6eval rakudo 33502: No output (you need to produce output to STDOUT)
pugs_svn r24158 | jnthn++ | [t/spec] Unfudge a .match test for Rakudo and add a few more. 12:08
rakudo_svn r33504 | jonathan++ | [rakudo] Fix our ability to smart-match against Match (which checks the LHS is of type Match). 12:10
alester perlbuzz.com/2008/12/database-acces...icely.html 15:17
pugs_svn r24159 | moritz++ | [docs] update feather/syn_index.html, pmichaud++ 16:36
moritz_ the irc logs will go down in a few minutes (server reboot) 16:41
rakudo: say 3.WHO
p6eval rakudo 33513: OUTPUT[Method 'WHO' not found for invocant of class 'Int'␤current instr.: '_block11' pc 23 (EVAL_13:15)␤]
rakudo_svn r33515 | pmichaud++ | [rakudo]: spectest-progress.csv update: 228 files, 4710 passing, 0 failing 17:20
ruoso Hello! 17:49
ruoso trying to backlog since yesterday...
rakudo_svn r33524 | jonathan++ | [rakudo] Switch us from using Perl6Str to using Str. Either this, one of the Parrot changes that were required to make this work or something else entirely means we are failing a couple of tests in S02-builtin_data_types/bool.t. These relate to expecting an isa test for Int is 19:20
..a Num to work (it works with smartmatch, where we override the Num proto's ACCEPTS to specially handle this, but they aren't actually in a type relationshp); not sure how that test ever passed, and if we're really testing isa rather than just some kind of wider acceptance, I'm not completely sure
..they're correct.
pugs_svn r24160 | jnthn++ | [t/spec] Unfudge 'is also on Str' test. 19:23
ruoso wow... now *that*'s a big commit message ;) 19:34
moritz_ I'm pretty sure that 'isa_ok(3.2, Int)' is wrong 19:35
perlgeek.de/blog-en/perl-6/tidings-2008-12.html 19:52
(if you have comments/corrections, I'll backlog) 19:53
ruoso moritz_++ 19:54
ruoso later & 20:28
pugs_svn r24161 | moritz++ | [t/spec] some corrections and fudges 20:52
r24162 | moritz++ | [t/spec] sqrt.t fudging 21:03
pugs_svn r24163 | moritz++ | [t/spec] Int conforms to Num, but still !Int.isa(Num) 21:17
pugs_svn r24164 | moritz++ | [t/spec] fix mis-spelled type names, and fudge for rakudo accordingly 21:20
meppl good night 21:21
pugs_svn r24165 | moritz++ | [t/spec] skip a few more Inf/Nan tests for rakudo that will fail once the type 21:22
r24165 | moritz++ | registry is in place
pugs_svn r24166 | moritz++ | [t/spec] more skipping of Inf/NaN tests 21:23
masak moritz_: is it still ok(eval('...')), or is that written somehow else nowadays? 22:15
moritz_ masak: there's eval_lives_ok and eval_dies_ok 22:17
moritz_ masak: but not all old code has to be ported, if it still works 22:18
(ie returns true from the eval)
masak moritz_: ok.
rakudo_svn r33527 | jonathan++ | [rakudo] Fix lookup of attributes in nested scopes of methods when they are declared twigilless. 22:40
mncharity rakudo: "bac" ~~ /a/ 22:42
p6eval rakudo 33525: RESULT[{}]
mncharity rakudo: ("bac" ~~ /a/).perl
p6eval rakudo 33525: RESULT["\{}"]
mncharity wonders what he's missing... 22:43
masak mncharity: what are you expecting?
mncharity a Match object?
masak well, isn't it?
mncharity rakudo: ("bac" ~~ /a/).WHAT
p6eval rakudo 33525: OUTPUT[Null PMC access in get_integer()␤current instr.: 'parrot;PGE;Match;get_bool' pc 522 (compilers/pge/PGE/Match.pir:337)␤]
masak whoa! 22:44
mncharity ?
masak mncharity: submit a bug report :)
don't we have tests for that?
moritz_ we should :()
masak yarr. 22:45
mncharity that would be a yak too far. the only question was, if array-ness was independent of hash-ness, I'd unify rx_on_re's Match directly into elf's, but if not, or uncertain, I'll leave the separate for now. I think.
masak submits the rakudobug, then 22:46
masak perl6: say do given 1 { when 1 { 1 }; default { 5 } } # what should this print? 22:55
p6eval elf 24166: OUTPUT[Can't locate object method "cb__Given" via package "EmitSimpleP5" at ./elf_f line 1561.␤]
..rakudo 33527: OUTPUT[5␤]
..pugs: OUTPUT[1␤]
moritz_ 1
masak is it a known flaw in Rakudo? 22:56
moritz_ it's a known "feature" that rakudo tries all 'when' blocks instead of leaving the scope
masak ah, right.
masak remembers now
then I guess I'll use an array of closures instead. 22:57
moritz_ #57652
[BUG] successfull 'when' does not skip the following tests.
masak yeah. 22:58
moritz_ calls it a day, TTFN folks 22:59
slavik rakudo: say "hello" 23:34
p6eval rakudo 33527: OUTPUT[hello␤]
slavik rakudo: say 1..5 Z 6..10
p6eval rakudo 33527: OUTPUT[16273849510␤]
slavik rakudo: my %hash 1..5 Z 6..10; say %hash.perl; 23:35
p6eval rakudo 33527: OUTPUT[Statement not terminated properly at line 1, near "1..5 Z 6.."␤␤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)␤]
slavik rakudo: my %hash = 1..5 Z 6..10; say %hash.perl;
p6eval rakudo 33527: OUTPUT[{"1" => 6, "2" => 7, "3" => 8, "4" => 9, "5" => 10}␤]
slavik rakudo: my %hash = 1..5 Z 6..8; say %hash.perl; 23:38
p6eval rakudo 33527: OUTPUT[{"1" => 6, "2" => 7, "3" => 8}␤]
mncharity drat. out of time. working to remove Match overloading from rx_on_re, as part of unifying its Match class(es) with elf's. back at it Monday. cheers. & 23:40