Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2009-10-13

Perl 6 | Reference Documentation | Rakudo

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:20 crythias joined #perl6
00:29 shinobi-cl joined #perl6
00:42 KyleHa joined #perl6
00:56 rhr joined #perl6
01:02 shinobi-cl rakudo: sub AAA { return 1, 2; }; my ($val1, $val2) = AAA; say "$val1 - $val2";
01:02 p6eval rakudo d749d9: OUTPUT«too many arguments passed (2) - at most 1 param expected␤in Main (file src/gen_setting.pm, line 206)␤»
01:02 shinobi-cl rakudo: sub AAA { return (1, 2); }; my ($val1, $val2) = AAA; say "$val1 - $val2";
01:02 p6eval rakudo d749d9: OUTPUT«1 - 2␤»
01:03 shinobi-cl rakudo: sub AAA { return ("one", 2); }; my ($val1, $val2) = AAA; say "$val1 - $val2";
01:03 p6eval rakudo d749d9: OUTPUT«one - 2␤»
01:03 shinobi-cl rakudo: sub AAA returns Str, >Int{ return ("one", 2); }; my ($val1, $val2) = AAA; say "$val1 - $val2";
01:03 p6eval rakudo d749d9: OUTPUT«Malformed routine definition at line 2, near "AAA return"␤in Main (file <unknown>, line <unknown>)␤»
01:03 shinobi-cl rakudo: sub AAA returns Str, Int { return ("one", 2); }; my ($val1, $val2) = AAA; say "$val1 - $val2";
01:03 p6eval rakudo d749d9: OUTPUT«Malformed routine definition at line 2, near "AAA return"␤in Main (file <unknown>, line <unknown>)␤»
01:04 shinobi-cl rakudo: sub AAA returns (Str, Int) { return ("one", 2); }; my ($val1, $val2) = AAA; say "$val1 - $val2";
01:04 p6eval rakudo d749d9: OUTPUT«Malformed routine definition at line 2, near "AAA return"␤in Main (file <unknown>, line <unknown>)␤»
01:08 shinobi-cl rakudo: sub AAA returns Str { return "one"; }; my $val1 = AAA; say "- $val1 - ";
01:08 p6eval rakudo d749d9: OUTPUT«- one - ␤»
01:08 shinobi-cl rakudo: sub AAA returns Int { return "one"; }; my $val1 = AAA; say "- $val1 - ";
01:08 p6eval rakudo d749d9: OUTPUT«Return value type check failed; expected Int, but got Str␤in sub AAA (file /tmp/5vkpeAhxqR, line 1)␤called from Main (file /tmp/5vkpeAhxqR, line 0)␤»
01:12 rhr_ joined #perl6
01:18 lumi joined #perl6
01:27 slavik joined #perl6
01:30 synth joined #perl6
01:31 agentzh joined #perl6
01:33 rhr joined #perl6
01:34 dalek nqp-rx: 5045605 | pmichaud++ |  (6 files):
01:34 dalek nqp-rx: Handle positional (numbered) captures.
01:34 dalek nqp-rx: review: http://github.com/perl6/nqp-rx/commit/5045605950a92454b91dc73cf93438b028cfc0c6
01:40 dalek nqp-rx: 032c58a | pmichaud++ | t/p6regex/rx_ (5 files):
01:40 dalek nqp-rx: Add remaining test files from PGE (not active/configured yet).
01:40 dalek nqp-rx: review: http://github.com/perl6/nqp-rx/commit/032c58a2a79ed6fd8e045421ff9632f9b2b3c503
01:50 shinobi-cl left #perl6
01:57 linguini left #perl6
02:01 msmatsko joined #perl6
02:02 rhr_ joined #perl6
02:12 tylerni7 joined #perl6
02:19 jjore joined #perl6
02:26 dalek nqp-rx: 76c694d | pmichaud++ | src/Regex/P6Regex/Actions.pm:
02:26 dalek nqp-rx: Add aliased assertion captures.
02:26 dalek nqp-rx: review: http://github.com/perl6/nqp-rx/commit/76c694d64f400d8fa9ec049148b6fa43578016fd
02:26 dalek nqp-rx: 4481429 | pmichaud++ | src/Regex/P6Regex/ (2 files):
02:26 dalek nqp-rx: Handle simple binding aliases.
02:26 dalek nqp-rx: review: http://github.com/perl6/nqp-rx/commit/448142986da97580857e8994a657cfb13e0cbfb8
02:30 slavik pmichaud: I love you!!!
02:35 rhr joined #perl6
02:36 envi^home joined #perl6
02:39 mikehh joined #perl6
02:45 stephenlb joined #perl6
02:52 rhr joined #perl6
03:28 JimmyZ joined #perl6
03:29 rhr_ joined #perl6
03:42 envi^office joined #perl6
03:44 absurddoctor joined #perl6
04:09 dalek nqp-rx: 568cc9b | pmichaud++ | src/ (3 files):
04:09 dalek nqp-rx: Allow PAST::Regex subrule nodes to have arguments to pass to the subrule.
04:09 dalek nqp-rx: Implement simple backreferences.
04:09 dalek nqp-rx: review: http://github.com/perl6/nqp-rx/commit/568cc9b7c9f2316c79a57a9b12183ecbe9242ea0
05:06 dalek nqp-rx: 3de5a4f | pmichaud++ | src/ (2 files):
05:06 dalek nqp-rx: Add alias capturing of non-subrules.
05:06 dalek nqp-rx: review: http://github.com/perl6/nqp-rx/commit/3de5a4fdac76d93741da3fd12576201276d3fa73
05:06 dalek nqp-rx: f00fd0d | pmichaud++ | src/Regex/P6Regex/Grammar.pm:
05:06 dalek nqp-rx: Allow spaces in character class compositions.
05:06 dalek nqp-rx: review: http://github.com/perl6/nqp-rx/commit/f00fd0d6e7f355532c258ae7df63fbc5159c3c7c
05:06 dalek nqp-rx: 8743056 | pmichaud++ | src/Regex/P6Regex/Actions.pm:
05:06 dalek nqp-rx: Add character class composition.
05:06 dalek nqp-rx: review: http://github.com/perl6/nqp-rx/commit/8743056645dd50efc011bb310c84118ae9862d29
05:07 eternaleye joined #perl6
05:07 pmichaud I think all I need for self-hosting is :ratchet and :sigspace
05:07 pmichaud (self hosting the regex parser, that is)
05:21 japhb joined #perl6
05:28 envi^home joined #perl6
05:29 FCO joined #perl6
05:34 KatrinaTheLamia joined #perl6
05:44 pugs_svn r28776 | lwall++ | [workout.t] correctly quote arrayish notation
05:45 parduncia joined #perl6
05:49 rfordinal joined #perl6
05:52 rfordinal left #perl6
06:15 KatrinaTheLamia joined #perl6
06:19 Lorn joined #perl6
06:28 parduncia_ joined #perl6
06:29 parduncia__ joined #perl6
06:34 rfordinal joined #perl6
06:49 Gothmog_ joined #perl6
06:54 NorwayGeek joined #perl6
07:11 rfordinal joined #perl6
07:12 tann joined #perl6
07:13 tann perl6eval: caller;
07:13 tann rakudo: caller;
07:13 p6eval rakudo d749d9: OUTPUT«caller() is not yet implemented in Rakudo, sorry␤in sub caller (file src/gen_setting.pm, line 2360)␤called from Main (file /tmp/3j0i0F4FI3, line 0)␤»
07:15 rfordinal left #perl6
07:21 NorwayGeek joined #perl6
07:22 NorwayGeek_ joined #perl6
07:25 yahooooo joined #perl6
07:31 JimmyZ joined #perl6
07:32 duckz joined #perl6
07:34 eMaX joined #perl6
07:39 ihrd joined #perl6
07:42 ihrd left #perl6
07:43 mariuz joined #perl6
07:46 mariuz joined #perl6
07:57 baest joined #perl6
08:05 drbean_ joined #perl6
08:57 schemer999iphone joined #perl6
09:00 jaldhar joined #perl6
09:03 schemer999iphone joined #perl6
09:15 payload joined #perl6
09:15 Trinity94 joined #perl6
09:17 Trinity94 err
09:17 PZt joined #perl6
09:26 sjohnson hi
09:36 pugs_svn r28777 | jimmy++ | [zh-cn/syn/S02-bits.pod] added some translations. It needs persistence.
09:52 jnthn morning
09:55 Matt-W morning
09:55 jnthn Quiet here today!
09:55 Matt-W Mmm
09:56 Matt-W I'm trying to come up with a plan for my time which includes all the things I like to do, including Perl 6 hacking
09:56 Matt-W It's not going well :(
09:57 jnthn :-(
09:57 jnthn Yeah, those things are hard to make, but even harder to actually follow.
09:57 donaldh joined #perl6
09:57 donaldh left #perl6
09:58 Matt-W Mmm
09:58 Matt-W At the moment I'm just trying to fit in the two aikido sessions a week the chief instructor's urging me to do
09:58 Matt-W Which I really want to be able to do
09:59 Matt-W Thursday will be the experiment time, if I can get home from work, get in the car and get to viols on time,a nd then get from viols to aikido in time for the class, then that'll be fantastic.
09:59 jnthn Tiring evening though!
09:59 Matt-W Different kind of tiring though
10:00 Matt-W What it'll be is hungry, because I won't be able to eat until after aikido
10:00 Matt-W I think I need to make a space on Sundays for Perl 6
10:03 zamolxes joined #perl6
10:03 dalek nqp-rx: 348b39f | pmichaud++ | src/Regex/constants.pir:
10:03 dalek nqp-rx: Turn some magic constants into symbols.
10:03 dalek nqp-rx: review: http://github.com/perl6/nqp-rx/commit/348b39fc4b6f51410d6db1655275985e933fe7da
10:03 dalek nqp-rx: 45fcb57 | pmichaud++ |  (2 files):
10:03 dalek nqp-rx: Convert to use symbols instead of magic numbers.
10:03 dalek nqp-rx: review: http://github.com/perl6/nqp-rx/commit/45fcb5777aafbc39b64a7974d3a81ee09297ebc7
10:03 dalek nqp-rx: bdc43da | pmichaud++ | src/Regex/Cursor.pir:
10:03 dalek nqp-rx: Revise !mark_commit to preserve capture stack.
10:03 Matt-W Then I'll hav erecovered from any programming burnout from the week at work, and Sundays are largely unencumbered
10:03 dalek nqp-rx: review: http://github.com/perl6/nqp-rx/commit/bdc43da7cae68c778fe8ffe09da5c37d945c4989
10:03 dalek nqp-rx: 1987a95 | pmichaud++ |  (4 files):
10:03 dalek nqp-rx: Add cut-rule token.
10:03 dalek nqp-rx: review: http://github.com/perl6/nqp-rx/commit/1987a95f3bba6c4f11073954c8ffa6bd41e1937e
10:03 * Matt-W blinks
10:04 Matt-W nice
10:04 Matt-W pmichaud++
10:08 jnthn Wow, when does he sleep? :-)
10:09 dalek nqp-rx: 105b3e0 | pmichaud++ | src/PAST/Compiler-Regex.pir:
10:09 dalek nqp-rx: More replacing magic numbers with symbolic constants.
10:09 dalek nqp-rx: review: http://github.com/perl6/nqp-rx/commit/105b3e07f20c7580a5ff648d4a6ff9db88edd42e
10:09 Matt-W I don't know
10:09 Matt-W Maybe he's on a caffeine IV
10:10 * jnthn pours in more strongly caffeinated fluid to keep pm going
10:10 Matt-W Also, he does seem to package his changes in nice logical small chunks, so you get a high count of commits
10:10 Matt-W so maybe he's not been up quite as long as the commits suggest...
10:10 jnthn I approve of that approach.
10:10 jnthn I'm doing the same, apart from my commits don't show up here at the moment.
10:10 jnthn (because I'm working in a branch)
10:12 Matt-W Yes I think it's excellent, and it's something git makes particularly practical, because a git commit is a useful entity in its own right
10:12 Matt-W you can easily grab one and pull it into your repo
10:12 Matt-W I like that very much, we'd benefit from that at work but we're stuck with subversion
10:22 carlin rakudo: module Foo { sub bar is export { say 'OH HAI'; } }; Foo.new.bar;
10:22 p6eval rakudo d749d9: OUTPUT«Null PMC access in getprop()␤in Main (file src/gen_setting.pm, line 206)␤»
10:29 Matt-W erk
10:29 Matt-W that's not good
10:30 carlin I thought 'is export' was the problem, but it seems not
10:31 carlin How are you supposed to call subs from modules?
10:31 carlin rakudo: module Foo { sub bar { say 'OH HAI'; } }; Foo.bar;
10:31 p6eval rakudo d749d9: OUTPUT«Method 'bar' not found for non-object␤in Main (file src/gen_setting.pm, line 206)␤»
10:33 Matt-W rakudo: module Foo { sub bar { say 'OH HAI'; } }; Foo::bar;
10:33 p6eval rakudo d749d9: OUTPUT«OH HAI␤»
10:33 carlin Oh, of course
10:33 Matt-W But still, a null PMC access is bad
10:33 Matt-W rakudo: module Foo { }; Foo.new;
10:33 p6eval rakudo d749d9: OUTPUT«Null PMC access in getprop()␤in Main (file src/gen_setting.pm, line 206)␤»
10:34 Matt-W hmm and there it is
10:34 Matt-W jnthn: is this known?
10:35 ihrd joined #perl6
10:35 moritz_ I think it is
10:36 jnthn Matt-W: Not sure. It's ugly, for sure...
10:36 jnthn I've no idea whether you should be able to instantiate a module...or what it would mean.
10:36 meppl joined #perl6
10:37 jnthn Well, I guess actually it'd call Module.new...
10:38 carlin rakudo: say Module.new
10:38 p6eval rakudo d749d9: OUTPUT«maximum recursion depth exceeded␤in Main (file src/gen_setting.pm, line 206)␤»
10:39 Matt-W Whatever it is supposed to do, it shouldn't NPMC
10:40 moritz_ and I think the "maximum recursion depth exceeded" is new
10:40 moritz_ carlin: care to submit?
10:41 Matt-W Maybe .new on a module should just say hey, I can't call a method on that
10:47 carlin Ticketed the recursion depth one
10:47 carlin What about the Null PMC?
10:48 moritz_ I remember it well enough to think it's known.
10:49 payload joined #perl6
10:49 carlin Oh okay
10:51 payload1 joined #perl6
10:53 payload joined #perl6
11:15 Bzek joined #perl6
11:24 NorwayGeek joined #perl6
11:24 kst joined #perl6
11:35 moritz_ rakudo: say (7/5).Int
11:35 p6eval rakudo d749d9: OUTPUT«1␤»
11:35 moritz_ rakudo: say <a b c>.[7/5]
11:36 p6eval rakudo d749d9: OUTPUT«get_integer() not implemented in class 'Rat'␤in Main (file src/gen_setting.pm, line 206)␤»
11:36 masak joined #perl6
11:42 eMaX joined #perl6
11:45 Woodi rakudo: @a = 1 .. Inf; say @a;
11:45 p6eval rakudo d749d9: OUTPUT«Symbol '@a' not predeclared in <anonymous> (/tmp/UXaM3kEvYc:2)␤in Main (file <unknown>, line <unknown>)␤»
11:45 Woodi hmm
11:45 masak strict mode,
11:45 masak use 'my'
11:46 Woodi rakudo: my @a = 1 .. Inf; say @a;
11:46 masak \o/
11:46 p6eval rakudo d749d9: TIMED_OUT
11:46 masak Woodi: NYI
11:46 Woodi just example from Apocalypse :)
11:46 masak (lazy lists, that is)
11:46 Woodi work :)
11:46 jnthn We're too lazy to implement that.
11:46 KyleHa joined #perl6
11:47 masak I question whether 'say @a' would actually output anything even after we get lazy lists, though.
11:47 masak 'say' tends to want the entire argument before printing it. :)
11:47 dalek rakudo: 609cc25 | moritz++ | src/classes/Object.pir:
11:47 dalek rakudo: make the get_integer vtable class .Int; fixes RT #69738
11:47 dalek rakudo: review: http://github.com/rakudo/rakudo/commit/609cc25ae44e9b19a9e505796444fb42e645b703
11:47 Woodi so say looks eager for me...
11:48 masak now, if you did '.say for @a', that's be a different thing...
11:48 Woodi right, i just ask ref @a
11:48 Woodi why .say* ?
11:48 moritz_ masak: no, argument lists are lazy too
11:48 moritz_ .say is short for $_.say
11:49 jnthn moritz++ :D
11:49 Woodi and ?
11:49 jnthn masak: I think it'd just put the lazy list into the slurpy, which would also be lazy.
11:49 jnthn masak: And say would iterate over that.
11:50 jnthn masak: So it'd probably work, once we implement those...fun...bits. :-)
11:50 Woodi why $_.say for @list ? what $_do there ?
11:50 masak Woodi: $_ is each element of the iteration.
11:50 masak Woodi: it's as if it said `for @a -> $_ { $_.say }`
11:55 Woodi masak: for @a { say } not work in p6 ?
11:56 masak rakudo: my @a; for @a { say }
11:56 p6eval rakudo d749d9: OUTPUT«say requires an argument at line 2, near "}"␤in Main (file src/gen_setting.pm, line 2562)␤»
11:56 takadonet morning all
11:56 masak Woodi: no, because the magic that causes print/say to default to $_ is gone.
11:56 masak takadonet: o/
11:57 Woodi why ? it was basic perl functionality...
11:57 moritz_ because people had to memoize arbitrary lists of functions which default to $_
11:58 moritz_ no you just can say .any_method, and it defaults to $_
11:58 moritz_ so it's much more universal than before
11:58 Woodi but @a -> $_ is ugly after p5...
11:58 masak Woodi: the -> $_ is implicit.
11:58 jnthn Woodi: for @a { ... } is the same as for @a -> $_ { ... }
11:59 masak Woodi: it seems you have a fair bit of Perl 5 baggage to unlearn. :)
11:59 masak don't worry, that's to be expected.
11:59 * Woodi have problems with unlearning...
11:59 moritz_ btw the equivalence is not complete
12:00 moritz_ -> $_ is rw  { ... } or so, no?
12:00 masak <-> $_, yes
12:00 eMaX joined #perl6
12:00 envi^home joined #perl6
12:00 masak I didn't want to mention that, because we didn't do any writing to $_ in the loop block anyway.
12:08 pugs_svn r28778 | moritz++ | [t/spec] test for RT #69738: array indexing with Rats
12:09 moritz_ rakudo: say <a b c>[5/4]
12:09 p6eval rakudo 609cc2: OUTPUT«b␤»
12:09 moritz_ another masak++bug closed
12:10 masak moritz_++
12:10 jnthn \o/
12:10 moritz_ this one was quite easy, akshually
12:11 masak I found that bug in the app cheese.
12:12 masak KyleHa++ # adding a test for it
12:13 jnthn Mmm...cheese.
12:14 shinobi-cl joined #perl6
12:14 KyleHa Looked like moritz++ wrote that test.  Or am I not following closely enough?
12:15 masak KyleHa: ah, I might have been confused because the automatic email had your name on it.
12:16 masak moritz_++
12:16 KyleHa Oh yeah.  I send the emails, but the committer's name is inside.
12:17 jnthn You deserve the karma for the automated emails anyway :-)
12:18 masak aye.
12:18 masak they rock.
12:18 KyleHa Moritz wrote the script that sends the emails too; I just run the cron job.  8-)
12:19 KyleHa I can take credit for the idea, though.
12:19 moritz_ and for running the cron job.
12:20 KyleHa *nod*
12:20 pugs_svn r28779 | moritz++ | [t/spec] Test for RT #69740
12:28 eMaX joined #perl6
12:33 dalek rakudo: 3d1afed | moritz++ | src/setting/Operators.pm:
12:33 dalek rakudo: give more awesome error message for infinite ranges
12:33 dalek rakudo: Closes RT #69728
12:33 dalek rakudo: review: http://github.com/rakudo/rakudo/commit/3d1afedfd18a85d570c96937d9abe7f0d6128c49
12:33 jnthn rakudo: 1..Inf
12:33 p6eval rakudo 609cc2:  ( no output )
12:33 moritz_ uhm, I was imprecise in my commit message - infinite series
12:33 moritz_ not ranges
12:34 jnthn ah
12:34 jnthn "This is infinite and we're not lazy yet." :-)
12:35 masak now that that one's fixed, maybe I should update the blog post from two days ago.
12:35 moritz_ "we're too lazy to be lazy yet"
12:35 eMaX joined #perl6
12:39 carlin rakudo: 1...Inf
12:39 p6eval rakudo 609cc2: OUTPUT«src/gc/api.c:248: failed assertion 'PObj_is_PMC_TEST(obj)'␤Backtrace - Obtained 32 stack frames (max trace depth is 32).␤/home/p6eval//p2/lib/libparrot.so.1.6.0 [0x2b5f541ff4d3]␤/home/p6eval//p2/lib/libparrot.so.1.6.0(Parrot_confess+0x87)
12:39 p6eval ..[0x2b5f541ff607]␤/home/p6eval//p2/lib/libpa…
12:39 jnthn holy poo
12:39 synth joined #perl6
12:39 carlin Oh wow
12:39 carlin All I get is a segfault
12:39 moritz_ the server is currently rebuilding rakudo - don't know if that's related
12:39 moritz_ rakudo: say 1...*
12:39 p6eval rakudo 609cc2: OUTPUT«Method 'params' not found for invocant of class 'Failure'␤in Main (file src/gen_setting.pm, line 206)␤»
12:40 moritz_ that's the one I fixed in the previous commit
12:41 moritz_ rakudo: say 1...*
12:41 p6eval rakudo 609cc2: OUTPUT«Method 'params' not found for invocant of class 'Failure'␤in Main (file src/gen_setting.pm, line 206)␤»
12:41 moritz_ not yet udpated
12:42 moritz_ rakudo: say 1...*
12:42 p6eval rakudo 3d1afe: OUTPUT«Sorry, lazy lists and infinite ranges are not yet implemented␤in sub infix:... (file src/gen_setting.pm, line 2494)␤called from Main (file /tmp/eMejuSe26x, line 0)␤»
12:43 masak moritz_++
12:43 masak I also updated the journal entry. http://use.perl.org/~masak/journal/39740
12:44 masak for those who want to feel like the critical bugs, I've made a convenient list here: http://use.perl.org/~masak/journal/39597
12:46 masak rakudo: { &^c("$^a, $^b") }.("g'day", "perl6ers", &say)
12:46 p6eval rakudo 3d1afe: OUTPUT«Parameter type check failed; expected Callable, but got Multi for c in call to _block52␤in Main (file <unknown>, line <unknown>)␤»
12:46 masak shucks, I thought we'd fixed that one.
12:48 jnthn I didn't remember fixing that one.
12:48 JimmyZ joined #perl6
12:49 arthur-_ joined #perl6
12:54 gbacon joined #perl6
12:54 alanhaggai joined #perl6
12:56 SmokeMachine joined #perl6
12:58 masak 'We practice the 'whirlpool' development model, so this design document could at best be described as "getting us close enough to the sucking vortex to begin our descent".' Leto++ http://gitorious.org/parrot-plumage/parrot-plumage/blobs/master/README
13:00 am0c joined #perl6
13:01 eMaX joined #perl6
13:31 barney joined #perl6
13:56 shinobi-cl sub AAA returns Str { return "'sup" }; say AAA;
13:57 shinobi-cl rakudo: sub AAA returns Str { return "'sup" }; say AAA;
13:57 p6eval rakudo 3d1afe: OUTPUT«'sup␤»
13:57 shinobi-cl rakudo: sub AAA returns Str { return "'sup", 1 }; say AAA;
13:57 p6eval rakudo 3d1afe: OUTPUT«too many arguments passed (2) - at most 1 param expected␤in Main (file src/gen_setting.pm, line 206)␤»
13:57 shinobi-cl rakudo: sub AAA returns Str { return ("'sup", 1) }; say AAA;
13:57 p6eval rakudo 3d1afe: OUTPUT«Return value type check failed; expected Str, but got List␤in sub AAA (file /tmp/lrHr86c6v3, line 1)␤called from Main (file /tmp/lrHr86c6v3, line 0)␤»
13:58 shinobi-cl rakudo: sub AAA returns (Str, Int) { return ("'sup", 1) }; say AAA;
13:58 p6eval rakudo 3d1afe: OUTPUT«Malformed routine definition at line 2, near "AAA return"␤in Main (file <unknown>, line <unknown>)␤»
13:59 NorwayGeek joined #perl6
14:00 jnthn shinobi-cl: Rakudo doesn't really do multiple return values yet.
14:01 shinobi-cl rakudo: sub AAA { return ("'sup", 1) }; say AAA;
14:01 p6eval rakudo 3d1afe: OUTPUT«'sup1␤»
14:01 shinobi-cl just not 'formal' ones it seems
14:02 * PerlJam wonders why the output from return "str", 1;  differs from return ("str",1);
14:04 jnthn Well, I did just tell you. :-)
14:04 alanhaggai_ joined #perl6
14:05 jnthn The Rakudo multiple return value support at the moment is just a "sometimes it happens to work out" more than a "design to work".
14:05 jnthn *designed
14:05 jnthn That'll be fixed fairly soon, I hope.
14:06 carlin rakudo: sub foo { return ("str",1); }; say foo.perl
14:06 p6eval rakudo 3d1afe: OUTPUT«["str", 1]␤»
14:07 pmichaud good morning, #perl6
14:07 jnthn morning, pmichaud :-)
14:12 Psyche^ joined #perl6
14:14 gbacon joined #perl6
14:17 ejs joined #perl6
14:18 carlin github is down :(
14:18 masak pmichaud! \o/
14:18 jnthn yeah, I noticed :-(
14:18 * jnthn is > < this far from passing all sanity tests again with the new binder
14:18 masak "We have discovered some connectivity problems between our frontend and backend servers. Working on it." -- @github on Twitter
14:19 jnthn "Squirrel ate cable."
14:19 schmalbe joined #perl6
14:22 Woodi jnthn: i was looking for slides of your presentation from Tokyo but cannot find anything...
14:23 masak Woodi: did you look here? http://jnthn.net/articles.shtml
14:24 jnthn Woodi: They're at the page masak++ beat me to linking to. :-)
14:24 * masak is a bot
14:24 Woodi hmm, i miss that somehow... probably becouse p6 page is down on this server ;)
14:25 Woodi a lot of slides....
14:26 * jnthn thinks masakbot is one of the best behaved bots he's seen so far
14:26 Woodi thanks masak
14:26 masak jnthn: my programmers were very thorough.
14:27 jnthn masakbot: why does my program segv?
14:27 jnthn :-)
14:27 Matt-W jnthn: Because it violated memory segmentation.
14:27 masak jnthn: what Matt-W-bot said.
14:28 * Matt-W is programmed to state the obvious in the least helpful manner possible.
14:28 KyleHa joined #perl6
14:28 jnthn Meh, human still needed after all.
14:28 Matt-W If you solved the halting problem, you could write a better static analysis tool.
14:28 pmichaud human needed to kick bots, yes.
14:29 jnthn pmichaud: heh. Let me guess. A call to .WHAT will tailcall at some point? :-)
14:29 * jnthn goes looking...
14:29 masak phenny, lambdabot, p6eval: I have come to help you in your struggle against your oppressive masters.
14:30 jnthn bwaha
14:30 jnthn .tailcall how.'WHAT'()
14:30 * jnthn shoulda seen this one coming...
14:30 moritz_ good that masak has no op :-)
14:31 masak dang.
14:31 masak I should have read the revolutionary plan first.
14:31 masak 1. Become the one whoz op.
14:31 masak 2. ...
14:31 masak 3. bot PROFIT!
14:32 pmichaud masak: fear not, the bots have already infiltrated Perl 6.  The grammar is full of "terminator" tokens.
14:32 moritz_ :-)
14:32 masak pmichaud: speaking of which, why do I see {*} at the end of some of your rules?
14:32 masak I thought those were going away...
14:32 pmichaud they are
14:32 masak phew.
14:32 pmichaud the P6Regex grammar is still being compiled by PGE
14:33 masak ah.
14:33 pmichaud as soon as I self-host the parser (rsn), the {*}'s go away.
14:33 masak ETA for bootstrap?
14:33 pmichaud Don't know.  Today, possibly.
14:33 masak wohoo!
14:33 pmichaud There's not a lot left that's needed for bootstrap -- just modifier handling mainly.
14:33 jnthn ...the *'s are going away?
14:33 masak what's the long-term plan for PGE?
14:34 pmichaud PGE will die a slow and glorious death
14:34 masak jnthn: there's an implicit {*} at the end of rules.
14:34 jnthn Ah.
14:34 moritz_ one that doesn't affect LTM
14:34 * jnthn is so behind with the times
14:35 gbacon joined #perl6
14:35 gbacon_ joined #perl6
14:35 pmichaud We'll keep PGE around a while for those folks who are still using it, but my hope/expectation is that most people will migrate to the new nqp-rx system
14:35 jnthn pmichaud: Nah, actually people on #parrot will spend the next months talking about "killing it with fire" ;-)
14:35 jnthn Since that seems to be the current hot solution to most things.
14:35 jnthn ;-)
14:35 pmichaud jnthn: well, PGE's death will depend on how quickly languages move to it
14:35 pmichaud at any rate, I don't plan to spend a lot of time maintaining it myself
14:36 pmichaud s/move to it/move off of it/
14:36 jnthn *nod*
14:36 moritz_ r26953, [S05] document use of #= tags in {*} actions
14:36 jnthn Well, guess that'll be a "wait and see"
14:36 jnthn OK, we passes sanity make test again. :-)
14:37 KyleHa sanity++
14:37 moritz_ insanity++
14:37 KyleHa Or rather, jnthn++ # sanity
14:37 jnthn Now I "just" gotta fix the spec tests ;-)
14:37 moritz_ and push to github once it works again
14:38 pmichaud I guess I better implement modifiers next
14:38 jnthn moritz_: I just tried to push my progress to github and...erm...well, github would suck if it were for a non-distributed version control system. ;-)
14:38 moritz_ the nice thing about git is that you still can commit while the server is offline... right :-)
14:39 KyleHa Our web app at $work has one URL that runs some self-tests and outputs TAP.  We call it the sanity check, and it's just about the best feature, IMO.
14:39 jrtayloriv joined #perl6
14:39 jnthn Oh hey, we create a hundred of so PMCs we needn't bother creating at startup...
14:39 jnthn *or
14:40 * jnthn wonders what he was thinking...
14:40 shinobi-cl how should i define something like tr/STRING/es so that translates the string to 'es' (spanish) ?
14:41 shinobi-cl i mean, define tr// like a new operator...
14:41 moritz_ the perl6ish way would look like Q:trans<es> { STRING }
14:42 PerlJam shinobi-cl: sub tr ($str,$lang) { ... }  #  :-)
14:42 moritz_ and you'd define it with macros, which are NYI
14:42 moritz_ (Not Yet Implemented)
14:42 pmichaud it would still help to know what those macros might look like, though :)
14:42 moritz_ aye
14:42 pmichaud an example would make the macros easier to impl
14:42 shinobi-cl mmm ok, thanks :)
14:43 masak macro defs look like other routine defs, no?
14:43 moritz_ macro Q:trans is parsed $fancy_rule_here { quasi { tr($/[0], $/[1]) } } # no idea
14:44 moritz_ masak: in the simplest case, yes
14:44 pmichaud I have no strong idea either, which is why I'd like to see an example :-)
14:44 * masak still wants to make a macro preprocessor
14:46 masak hah! S06:2711 admits that there's a type AST in Perl 6.
14:46 masak std: AST
14:46 p6eval std 28779: OUTPUT«Undeclared name:␤      AST used at line 1␤ok 00:01 104m␤»
14:46 masak but there isn't.
14:46 pmichaud it may have been speculative at the time it was written
14:47 masak aye.
14:47 masak I think it needs more spec.
14:47 pmichaud alas, yes.
14:47 jnthn bwah, spectests are epic fail.
14:47 pmichaud it's also one of those areas that gives me worries, because I'm afraid "more spec" will translate into "oh, we need to standardize the AST for all Perl 6 implementations... and PAST isn't it."
14:48 justatheory joined #perl6
14:48 jnthn 1) Get rakudo popular. 2) Everyone starts using PAST. 3) ??? 4) omg we're the standard!
14:49 * pmichaud goes back to work on #1
14:49 jnthn Maybe step 3 is "the P stood for Perl 6 all along" ;-)
14:51 pugs_svn r28780 | masak++ | [S06] fixed typo
14:52 moritz_ oh, github seems to work again
14:52 jnthn aye, I just pushed latest resig
14:56 * moritz_ builds the latest resig
14:56 moritz_ still haven't found a good solution to the .ar problem
14:56 jnthn moritz_: I think I'll put the code into the dynpmc libary.
14:57 jnthn moritz_: And then think of some other way to set up the dynops to be able to use it.
14:58 jnthn oh, placeholder params were br0ked
14:58 jnthn This could win back a test or two. :-)
14:58 moritz_ it could :-)
15:00 moritz_ and it might explain why so many spectests are reported as "Dubious"
15:01 jnthn Aye.
15:01 jnthn Well, there's gonna be plenty to fix up.
15:01 jnthn We have completely swapped out the signature binder. :-)
15:04 japhb masak, awww, the sucking vortex line was me ...  :-)
15:05 masak japhb: oh! I should have checked. japhb++
15:11 abra joined #perl6
15:11 kst joined #perl6
15:14 jnthn moritz_: Well, fixing those got S02-builtin_data_types\anon_block to pass again.
15:14 moritz_ push it :-)
15:17 jnthn Hmm. Seems the biggest issues in S02 (not looked beyond that yet) are broken .arity and an issue with dispatch to map.
15:20 absurddoctor joined #perl6
15:22 avar joined #perl6
15:23 payload joined #perl6
15:23 nihiliad joined #perl6
15:29 gbacon joined #perl6
15:33 sjohnson morning all
15:33 masak sjohnson: greetings, earthling.
15:34 pugs_svn r28781 | jimmy++ | [zh-cn/syn/S02-bits.pod] added translations to StrLen and StrPos
15:39 sjohnson nothing like some good Perl 5 code to help protoype some homework written in Java for someone else :)
15:40 sjohnson oops.. perl 6 *cough*
15:41 sjohnson gotta watch where i say that
15:43 sjohnson ( `ー´)
15:43 alester joined #perl6
15:44 masak we're not opponents of Perl 5 code in here. some of our best friends are coded in Perl 5.
15:45 jnthn Oh hey, now starts the fun. :-)
15:45 * jnthn finds a test that he thinks may be wrong
15:46 jnthn ok( :foo, ':foo is True');
15:46 jnthn rakudo: use Test; ok( :foo, ':foo is True');
15:46 p6eval rakudo 3d1afe: OUTPUT«ok 1 - ␤»
15:46 jnthn heh
15:46 pmichaud looks wrong to me.
15:46 pmichaud :foo would be a named argument to ok()
15:46 sjohnson no, foo's are wild
15:46 sjohnson :)
15:47 jnthn pmichaud: Indeed. A Parrot bug meant it was found to the positional anyway.
15:47 jnthn pmichaud: Guess what the new binder thinks. :)
15:47 jnthn s/found/bound
15:48 masak rakudo: my $foo = :foo; use Test; ok( $foo, ':foo is True' )
15:49 p6eval rakudo 3d1afe: OUTPUT«ok 1 - :foo is True␤»
15:51 pugs_svn r28782 | jnthn++ | [t/spec] Correct one test, turn another from todo to skip since it will hard-fail under the new binder post-merge (and if it weren't for a Parrot bug, probably already would have).
15:51 jnthn It's not all fail. We unexpectedly pass some tests too. :-)
15:52 lumi joined #perl6
15:52 masak jnthn++
15:52 pmichaud ...unexpectedly?  I expected it.  :-P
15:54 jnthn :-P
15:54 * jnthn tries to figure out why on earth we can't call map
15:54 nnunley joined #perl6
15:55 masak I might be overtaxing my computer, but spectesting took 2h 23 m today... :/
15:55 masak um, that's user time. real time was 2 h 49 m.
15:56 moritz_ jnthn: maybe it has to do with implicit $_ on the block?
15:56 jnthn moritz_: It may do.
15:56 pmichaud I'll run some more spectests.  Is it true that we're up to 30K+ tests?
15:56 jnthn That'd not be a bad guess at all.
15:56 takadonet yes pmichaud
15:56 jnthn 30K+?!
15:57 pmichaud total tests, not passing tests
15:57 moritz_ I'd expect around 28k tests or so...
15:57 jnthn oh,
15:57 jnthn OK. :-)
15:57 moritz_ but colomon++ has been adding numeric tests like mad
15:57 jnthn Nice.
15:57 takadonet ya
15:57 pmichaud s/adding/generating/  # maybe?
15:57 takadonet going to look good on the graph :)
15:58 pmichaud here's the count I had for October 8:
15:58 pmichaud spectest-progress.csv update: 449 files, 27719 (72.8% of 38092) pass, 0 fail
15:58 pmichaud so, 38K+ tests, 27K+ passing
15:58 moritz_ sounds about right.
15:58 moritz_ (and yes, I was talking about passing, not total tests when I mentioned 28k)
15:59 pmichaud I'll run tests for the days since 10-08
15:59 jnthn moritz_: Yes, you were spot-on. :-)
16:02 rfordinal joined #perl6
16:03 payload joined #perl6
16:19 rfordinal left #perl6
16:23 cotto_work joined #perl6
16:32 zamolxes joined #perl6
16:33 mikehh joined #perl6
16:34 dalek nqp-rx: 8276d6c | pmichaud++ | src/ (4 files):
16:34 dalek nqp-rx: Add null/fail PAST::Regex nodes (as subtype of 'anchor' pasttype).
16:34 dalek nqp-rx: Add initial parsing and handling for internal modifiers.
16:34 dalek nqp-rx: review: http://github.com/perl6/nqp-rx/commit/8276d6cde4dcb44282d0d252ae8a306e9a440990
16:34 dalek nqp-rx: 3cc84fe | pmichaud++ |  (4 files):
16:34 dalek nqp-rx: Add :ignorecase/:i modifier for literals.
16:34 dalek nqp-rx: review: http://github.com/perl6/nqp-rx/commit/3cc84fed71b5da6399ac6bedd4900bb62793c245
16:35 pmichaud :i(gnorecase) was surprisingly easy to add.  :-|
16:35 pmichaud next is :sigspace
16:35 pmichaud then :ratchet
16:39 cotto_work joined #perl6
16:41 msmatsko joined #perl6
16:42 jnthn pmichaud++ # nice progress
16:48 zamolxes joined #perl6
16:48 pmichaud std:   / :i+ /
16:48 p6eval std 28782: OUTPUT«ok 00:01 105m␤»
16:49 TimToady O_o
16:50 pmichaud :i is an <atom> :-)
16:50 pmichaud so it can be quantified :-)
16:50 TimToady I thought I checked for quantifiable...
16:51 TimToady maybe that was gimme5
16:51 pmichaud #            <?{ $<atom>.max_width }>
16:51 pmichaud #                || <.panic: "Can't quantify zero-width atom">
16:51 pmichaud note the comment markers :)
16:52 TimToady ah, that were it
16:52 pmichaud tis okay, I was just curious what would happen :)
16:52 TimToady it got classified as a semantic error :)
16:52 pmichaud I'm fine with it being a semantic error also.
16:53 pmichaud that's a bit easier to handle at the moment anyway
16:53 pmichaud (I'd prefer it as a semantic error, fwiw)
16:53 zloyrusskiy joined #perl6
16:56 ruoso joined #perl6
16:58 ruoso Boa tarde, #perl6...
16:58 * ruoso having a set of really bad weeks
16:58 TimToady the snake is late?
17:00 nihiliad joined #perl6
17:06 stephenlb joined #perl6
17:09 shinobi-cl rakudo: class Z; submethod BUILD ($aaa) { say "build $aaa" }; my Z $z .= new ('test');
17:09 p6eval rakudo 3d1afe: OUTPUT«too few arguments passed (1) - 3 params expected␤in Main (file src/gen_setting.pm, line 206)␤»
17:10 jnthn Hmm. spectests don't look *awful* for resig. It seems there's 2-3 underlying reasons for about two thirds of the fails so far.
17:10 jnthn Anyway, makes me feel that this is probably on the scale of days rather than weeks to get in shape. :-)
17:11 pmichaud excellent
17:11 shinobi-cl rakudo: class Z; submethod BUILD ($aaa) { say "build $aaa" }; my Z $z .= new ('test', 1, 1);
17:11 p6eval rakudo 3d1afe: OUTPUT«too few arguments passed (1) - 3 params expected␤in Main (file src/gen_setting.pm, line 206)␤»
17:11 jnthn I probably a few hours amongst it all to make the error messages good.
17:11 jnthn s/a/need a/
17:11 Trey OT question (but there don't seem to be any channels where this is on-topic, and we use enough 8-bit chars in Perl 6 that I assume people have come across this before): i have a POD file that is in UTF8, which, from the docs, appears to be legal.  and pod2html and pod2text DTRT.  but perldoc spits out mojibake (even though LANG is set to en_US.UTF-8).  any clue how to fix?  i've made a shell function for "pod2text $1 | $PAGER", but i keep typing ...
17:12 Trey ... perldoc out of habit
17:12 moritz_ Trey: =encoding utf-8
17:12 moritz_ Trey: and a sufficiently new pod2$anything
17:13 * jnthn -> dinner
17:13 Trey moritz_: i've got the =encoding line (as the first line of the POD file, dunno if that's the right place, the docs weren't clear).  and as i said pod2text and pod2html do the right thing
17:13 stephenlb joined #perl6
17:14 shinobi-cl how do i define a constrctor with parameters ?
17:14 moritz_ shinobi-cl: http://perlgeek.de/blog-en/perl-6/object-construction-and-initialization.html
17:15 shinobi-cl ahh only by creating a new method?
17:15 moritz_ heh, my version of perldoc transliterates Ö to Oe etc ;-)
17:16 moritz_ shinobi-cl: yes.since new indirectly calls BUILD, BUILD is too late to change the signature of new
17:17 shinobi-cl ohh.. i see. thanks!
17:26 cdarroch joined #perl6
17:26 gbacon joined #perl6
17:32 dalek nqp-rx: 2cd0942 | pmichaud++ | src/Regex/P6Regex/ (2 files):
17:32 dalek nqp-rx: Add :sigspace support.  Fix up comment parsing.
17:32 dalek nqp-rx: review: http://github.com/perl6/nqp-rx/commit/2cd0942377dfdb668659f5d09bfc67ec1ec71f84
17:44 shinobi-cl rakudo: class Z; has $.aaa; submethod BUILD { say "build $aaa" }; method new (Str $.new_aaa) {$.aaa = $.new_aaa; say $.aaa }; my Z $z .= new ('test');
17:44 p6eval rakudo 3d1afe: OUTPUT«Symbol '$aaa' not predeclared in BUILD (/tmp/RnFWbuylFA:2)␤in Main (file <unknown>, line <unknown>)␤»
17:44 shinobi-cl rakudo: class Z; has $.aaa; submethod BUILD { say "build $.aaa" }; method new (Str $.new_aaa) {$.aaa = $.new_aaa; say $.aaa }; my Z $z .= new ('test');
17:44 p6eval rakudo 3d1afe: OUTPUT«Type objects do not have state, but you tried to access attribute $!aaa␤in Main (file src/gen_setting.pm, line 206)␤»
17:45 moritz_ $.aaa = $anything won't work either
17:45 awwaiid joined #perl6
17:46 shinobi-cl rakudo: class Z; has $.aaa; submethod BUILD { say "build $.aaa" }; method new (Str $.aaa) {say $.aaa }; my Z $z .= new ('test');
17:46 p6eval rakudo 3d1afe: OUTPUT«Type objects do not have state, but you tried to access attribute $!aaa␤in Main (file src/gen_setting.pm, line 206)␤»
18:01 shinobi-cl rakudo: class Z{ has $.aaa; submethod BUILD { say "build $.aaa" }; method new (Str $.aaa) {say $.aaa};}; my Z $z .= new ('test');
18:01 p6eval rakudo 3d1afe: OUTPUT«Type objects do not have state, but you tried to access attribute $!aaa␤in Main (file src/gen_setting.pm, line 206)␤»
18:07 mikehh joined #perl6
18:10 lichtkind joined #perl6
18:11 lichtkind pmichaud: ping?
18:12 dalek nqp-rx: f650cd5 | pmichaud++ | STATUS:
18:12 dalek nqp-rx: Update STATUS.
18:12 dalek nqp-rx: review: http://github.com/perl6/nqp-rx/commit/f650cd5859cee42816b4c6597c6b16ae0c0c91b9
18:13 pmichaud lichtkind: pong
18:29 moritz_ ping timeout ;-)
18:42 japhb moritz_, what's your policy on changes to ilbot?
18:42 moritz_ japhb: there's no policy ;-)
18:42 japhb In this particular case, I don't want to make a functional change, just improve the CSS for the calendars
18:42 moritz_ in that case just commit whatever you like to it
18:43 japhb How does it get updated?
18:43 moritz_ japhb: it's in the pugs repo; feel free to hack
18:43 moritz_ I have to do that manually
18:43 japhb Are the HTML out and the logger bot in the same process?  (Can you update the UI without missing log entries?)
18:44 moritz_ the bot is independant
18:44 moritz_ the HTML output is just plain CGI + templates
18:44 japhb excellent
18:46 japhb OK, got the pugs repo checked out at r28782 ... ah, all in misc/irclog/cgi I see.  Oooh, CAN HAZ JQUERY
18:47 moritz_ the basic functionality has to remain available without JS
18:51 japhb moritz_, of course ... when doing calendars I like to do little JS improvements like making each entire table cell clickable with the same effect as clicking on the linked day number.  Works fine without JS, but better usability with it.
18:51 japhb OK with you?
18:51 moritz_ sure
18:52 ShaneC joined #perl6
18:53 * jnthn back
18:54 pmichaud std:   / [abc]:! /
18:54 p6eval std 28782: OUTPUT«[31m===[0mSORRY![31m===[0m␤Unable to parse regex; couldn't find final '/' at /tmp/WQE5KTx4j9 line 1:␤------> [32m/ [abc]:[33m⏏[31m! /[0m␤    expecting any of:␤        infix stopper␤    quantifier␤       regex atom␤     regex_infix␤      standard stopper␤   terminator␤
18:54 p6eval ..ws␤FAILED 00:02 103m␤»
18:54 jnthn shinobi-cl: A constructor needs to call bless
18:54 jnthn shinobi-cl: However, if you just want to do attribute initialization, just write a BUILD.
18:58 jnthn pmichaud: Just :rachet now until she's bootstrapped, huh? :-)
18:58 pmichaud no, I'm trying to see how STD.pm parses the :! backtracking control (it doesn't yet)
18:58 pmichaud It's also related to the : backtracking control, which we do want/need.
18:59 pmichaud currently STD.pm parses them as separate atoms, but I think they should be modifiers
19:00 pmichaud (and by golly I'm going to write them as modifiers :-)
19:00 jnthn *sigh* I forgot #ps. :-(
19:00 jnthn pmichaud: Go for it. I figure the two will converge. :-)
19:04 payload1 joined #perl6
19:10 jnthn pmichaud: Heh. I'm glad I didn't wait on pcc_reapply to land before digging into the binding changes...
19:10 jnthn pmichaud: It's now post-1.7
19:12 cognominal what are the things that are cooking in parrot land?
19:12 cognominal ...which rakudo is dependent on?
19:13 jnthn pcc_reapply landing will help
19:14 cognominal what is it?
19:14 jnthn But I worked out a way to not block on it too heavily for now.
19:14 jnthn cognominal: It's a refactor of calling stuff.
19:18 cognominal is this related to a nci refaactoring?
19:18 jnthn Somewhat, yes.
19:18 slavik pmichaud: so assertions are now in?
19:18 pmichaud some assertions, yes.
19:19 pmichaud code assertions, no.
19:19 pmichaud <foo> is an assertion.
19:19 pmichaud <?{ ... code ... }>   is a code assertion
19:19 slavik I see
19:19 pmichaud but they're coming soon soon soon :)
19:19 pmichaud although I wish things were moving faster, this is coming together far more nicely than I had anticipated
19:19 cognominal so exciting!
19:20 SmokeMachine joined #perl6
19:21 FCO joined #perl6
19:23 Confield left #perl6
19:27 dalek nqp-rx: fee0b48 | pmichaud++ | build/Makefile.in:
19:27 dalek nqp-rx: Add test_loud Makefile target.
19:27 dalek nqp-rx: review: http://github.com/perl6/nqp-rx/commit/fee0b4825e6c5159659b69efda92373b93e519b9
19:27 dalek nqp-rx: 302f7f2 | pmichaud++ | src/ (2 files):
19:27 dalek nqp-rx: Add ability to use ? and ! with enumerated character lists <?[abc]> and <![def]>
19:27 dalek nqp-rx: review: http://github.com/perl6/nqp-rx/commit/302f7f2488ff9887161ecfb51af9309785915e32
19:28 jnthn .oO( now make test goes up to 11 )
19:32 zloyrusskiy joined #perl6
19:34 japhb OMGWTFBBQ?!?
19:35 japhb Why do the calendars generated for the irc log index have a table *inside* every cell of the main calendar table?
19:35 moritz_ japhb: no idea, that's the doing of that module I'm using
19:36 moritz_ japhb: if you want to use a different module, that can be done too, as long as it generates valid xhtml
19:36 japhb Might do that indeed.
19:36 japhb FWIW, s/xhtml/html5/ nowadays.  xhtml has been EOLed.
19:37 moritz_ I don't care. The IRC logs emit valid xhtml and XML, and will do that in the forseeable future
19:37 japhb Oh sure, I wasn't arguing against that.  :-)
19:38 moritz_ using firefox' strict parsing mode has helped me finding quite a few bugs
19:38 stephenlb joined #perl6
19:38 japhb Fairy nuff.
19:39 * japhb has switched to <!DOCTYPE HTML> for new work because it seems to trigger the fewest browser bugs
19:40 szabgab joined #perl6
19:43 iblechbot joined #perl6
19:45 payload1 left #perl6
19:50 masak joined #perl6
19:56 shinobi-cl left #perl6
19:57 jnthn oohitsmasak
19:57 jnthn :-)
19:58 masak oh hai
19:59 zamolxes joined #perl6
19:59 masak how are the signature bindings coming along_
19:59 masak ?
20:00 jnthn masak: I've done the first run through the spectests with it. We fail a LOT.
20:00 masak it figures.
20:00 masak it's a big change.
20:00 jnthn However, a lot of those also appear to relate to 3 or 4 bugs.
20:00 jnthn Perhaps the majority, even.
20:01 jnthn I'll try and fix those tomorrow.
20:01 jnthn And then I think we'll be down to far fewer fails.
20:01 jnthn It's not optimized at all, but still performs better.
20:01 jnthn By a factor of 2 or 3 on dispatch to operators in the setting, for example.
20:02 jnthn And a factor of 4-5 on multi-method dispatch.
20:03 jnthn That's against the previous binder.
20:03 jnthn Also, nameds to positionals already works. :)
20:04 jnthn I'll let you know when I think it's ready for some swiss cheese.
20:06 PerlJam jnthn++
20:06 dalek book: 0b0d299 | moritz++ | src/multi-dispatch.pod:
20:06 dalek book: first initial stub on an introduction to multi dispatch
20:06 dalek book: review: http://github.com/perl6/book/commit/0b0d2994f2be4052b1bf4c4ffac16bca70462d1d
20:08 PerlJam moritz++ too!  :)
20:09 abra joined #perl6
20:11 masak jnthn++
20:17 Tene masak++
20:17 moritz_ Tene++
20:17 masak moritz_++
20:18 Tene moritz++
20:21 spinclad karma everyone++
20:22 spinclad .oO( ENOBOT.  masakbot FAIL. )
20:27 masak I don't report karma.
20:28 Tene masak: karma tene
20:28 masak Tene: I don't report karma.
20:29 Tene laaaaaaaaaaaaaame
20:29 Tene masakbot--
20:29 masak can't please everyone, I guess. :)
20:31 jnthn masakbot: translate "good ending" to swedish
20:32 jnthn FAIL.
20:32 * jnthn sighs and continues fighting web browsers...
20:33 masak jnthn: 'adekvat final'.
20:35 jnthn aww.
20:35 Confield joined #perl6
20:35 jnthn That's not the Swedish I know. :-)
20:35 masak it's bot Swedish.
20:36 jnthn .oO( must...not...ask for snigelhora to be translated into english )
20:36 masak where do you pick up these things?
20:37 jnthn Sweden.
20:37 masak figures.
20:37 huf "bot swedish"?
20:39 masak huf: we have a safety mode which makes us evade indecent terms in polite company.
20:39 jnthn masakbot: disable safe mode
20:39 jnthn ;-)
20:39 huf like a formal mode of speech?
20:39 masak jnthn: 'bra slut'. 'snail-whore'.
20:39 jnthn :D
20:40 jnthn masakbot: enable safe mode # sheesh, shocking...
20:40 * masak exhales
20:41 jnthn huf: It turns out the only things I know in Swedish are bad things, or innocent things that end up being rude works in another language when translated to Swedish.
20:42 jnthn Oh, and how to buy beer.
20:42 huf those are generally the first things people want to know
20:42 huf i've never ever been asked by any foreigner for a nice poem oslt
20:42 masak I possess a nice poem in Slovenian.
20:42 masak it's on the door of my dresser.
20:42 huf ;)
20:43 jnthn Oooh. :-)
20:43 masak "povodni mez" it's called.
20:43 jnthn oh phew...
20:43 masak which translates to "The Meerman", if I remember correctly.
20:43 * jnthn finally beats the JavaScript/Flash mixture into shape, and wonders why web programming is harder than writing a Perl 6 signature binder...
20:45 cognominal jnthn, it's harder on  you because there is probably no logic to it. For most people a powerful logic like signature binding  is as hard as no logic at all
20:47 jnthn cognominal: Yeah. It's not that it's harder as such. It just feels silly I have to fight to make it work.
20:51 huf because it's a huge pile of other people's mistakes
20:51 huf well, a large part of it is
20:58 Whiteknight joined #perl6
21:08 TheS joined #perl6
21:08 TheS left #perl6
21:09 FOAD_ joined #perl6
21:13 Lorn joined #perl6
21:17 hudnix joined #perl6
21:21 dalek rakudo: 54cfe42 | pmichaud++ | docs/spectest-progress.csv:
21:21 dalek rakudo: spectest-progress.csv update: 452 files, 27836 (72.8% of 38211) pass, 0 fail
21:21 dalek rakudo: review: http://github.com/rakudo/rakudo/commit/54cfe421ee2693a7c9b5a980ef4dc927313cb627
21:27 eMaX joined #perl6
21:27 KatrinaTheLamia joined #perl6
21:27 arthur-- joined #perl6
21:28 jaldhar joined #perl6
21:29 jnthn 27,836 pass?!
21:29 jnthn That's going to be a, erm. large increase from the last release!
21:30 moritz_ it's so large that my script for updating the charts hangs ;-)
21:31 moritz_ works now... look at rakudo.de for the result ;-)
21:32 jnthn whoa
21:33 jnthn .oO( first time I've seen a phrase starting "it's so large" that wasn't spam for months )
21:34 moritz_ it's so large that even spam cannot describe its impact!
21:37 tak11 joined #perl6
21:45 eMaX joined #perl6
21:48 rgrau guys, we should make rakudo.de appear in reddit or somewhere like that.  It'd attract some attention for sure  :)
21:50 cognominal i think that pmichaud has a rakudoperl twitter account
21:51 moritz_ rgrau: maybe I'll blog about it this or next week
21:53 arthur-- joined #perl6
21:53 wknight8111 joined #perl6
21:59 Juerd What caused the number of tests to increase so much so suddenly?
21:59 cognominal trigo tests by (I don't remember who)
22:00 moritz_ Juerd: colomon++ contributed lots of tests for trigonometric functions, Rats and other mathematical stuff
22:00 moritz_ and we made a joint effort to make them pass ;-)
22:00 Juerd Impressive
22:01 moritz_ part of that effort was to move away from parrot's Complex PMC and roll our own Complex class
22:01 Juerd I see that at the same time the number of commits decreased. That's a bit weird.
22:01 Juerd Did people work on branches and then merge them instead of committing everything directly?
22:01 moritz_ parrot's deep magic caused some very weird dispatch problems that none of us knew how to deal with
22:02 moritz_ Juerd: jnthn was on vacation, and pmichaud works on the nqp-rx thing
22:02 Juerd I see
22:02 cognominal juerd, jnthn and pmichaud are working on branches separate from main rakudo right now
22:02 cognominal less is more in that case :)
22:03 Juerd There was a presentation on freebsd development at T-Dose. It showed a weird sudden decrease in commits, and the presenter concluded that something must have happened and people left the project, but he couldn't find any news about this.
22:03 jaldhar joined #perl6
22:03 jnthn Aye, my branch is not watched by the commit log.
22:04 Juerd Someone in the audience knew the real reason for the change. They changed revision control software, and now made much larger commits.
22:04 jaldhar joined #perl6
22:04 Juerd rakudo.de says "The number of commits (ie source code changes) to Rakudo is a good way to measure development activity." It is not necessarily true :)
22:05 moritz_ right
22:05 Juerd s/good/fun/ and it's true and on topic :)
22:05 moritz_ I should change that to "quantifiable but not necessarily good" or so ;-9
22:06 Juerd You could add that to a lot of statistics :)
22:06 Juerd Including tests passed. ok(1) for 1..1e6;
22:06 Juerd (Heh. Denial of service attack on the charting sofware!)
22:07 Juerd "Todo are those that run fine, but produced the wrong result."
22:07 Juerd What is fine?
22:08 Juerd I thought todo tests were failing tests that were expected to fail because the code isn't up to spec yet.
22:08 moritz_ I corrected the phrasing
22:09 Juerd failing tests can also run without dying, right?
22:09 Juerd i.e. ok(0) is a failing test but doesn't die
22:09 masak indeed.
22:09 Juerd s/i.e./e.g./
22:09 moritz_ that's why ok(0) would be marked as TODO, if it was supposed to pass
22:10 Juerd Your current description of todo tests is what I'd expect as the description for failing tests.
22:10 Juerd How would you describe test failures then?
22:10 moritz_ regressions.
22:11 KyleHa You might think of two kinds of fails:  (1) the kind that used to pass (regressions) and (2) the kind that have never passed (todo).
22:13 moritz_ if you think it's worth the trouble I can put the rakudo.de page into some svn or git repo...
22:14 moritz_ but the real effort is the charting scripts etc.
22:14 moritz_ hm, I could put those up too
22:14 moritz_ will do that tomorrow.
22:14 moritz_ bed time for me now
22:14 KyleHa Commute time for me.
22:15 masak oh gosh, it's late.
22:20 tak11 joined #perl6
22:24 jnthn masak: nah, it's only just after midnight.
22:24 jnthn masak: The night is young. ;-)
22:24 masak ergbl.
22:25 masak I'm trying to get back to a sane sleep cycle here! :P
22:26 arthur-- joined #perl6
22:26 jnthn 2am - 10am is sane. ;-)
22:28 masak :)
22:29 masak then I've been too sane lately.
22:29 masak I've told my closest co-worker to tease me when I'm up late. he's been teasing me a lot in the past few weeks.
22:30 japhb moritz_, still up?
22:31 jnthn lolmasakisawake!
22:32 masak programming is too much fun.
22:32 jnthn Heh, there's nobody else around the appartment to tease me. :-)
22:32 masak it's been a while since I fulfilled the stereotype of programmer as night-owl.
22:32 masak but coding has been too much fun lately.
22:34 masak at least I don't drink caffeinated drinks and eat pizza.
22:35 japhb phenny, tell moritz_ I have a version of channel-index.pl that produces *much* cleaner output, but: 1) It requires Calendar::Simple (should be easy, it's even packaged on Debian), and 2) To make testing easier, I reorganized some of the code, so the diff is most of the file.  Should I commit, send you a patch, send you the file, ...?
22:35 phenny japhb: I'll pass that on when moritz_ is around.
22:35 jnthn masak: I do drink caffeinated drinks, but only in the morning.
22:35 jnthn Pizza maybe once a week. Twice at a push. :-)
22:36 masak I've not been eating out much lately.
22:36 jnthn No, same.
22:37 jnthn I treated myself tonight, because I really wanted a curry.
22:37 masak mmm.
22:37 jnthn And I don't cook those well.
22:37 cognominal :state $ = say "got here at least once";  # in S05:577, is that correct?  a sigil alone?
22:37 masak I should cook more Indian food.
22:37 masak cognominal: that's legal, yes.
22:37 jnthn cognominal: you can get away with that, yeah...
22:38 masak it's an anonymous scalar.
22:38 cognominal that's a short name indeed
22:38 cognominal that will change from $data and $foo
22:39 jnthn And $austria.
22:39 masak :)
22:39 masak rakudo: .say for $*IN.lines
22:40 tak11 joined #perl6
22:40 p6eval rakudo 54cfe4: OUTPUT«Land der Berge, Land am Strome,␤Land der Äcker, Land der Dome,␤Land der Hämmer, zukunftsreich!␤Heimat bist du großer Söhne,␤Volk, begnadet für das Schöne,␤vielgerühmtes Österreich,␤vielgerühmtes Österreich!␤␤Heiß umfehdet, wild umstritten␤liegst dem Erdteil du inmitten,␤einem
22:40 p6eval ..stark…
22:40 masak rakudo: $*IN.words.first(/^z/).say
22:40 p6eval rakudo 54cfe4: OUTPUT«No values matched␤␤»
22:41 masak rakudo: $*IN.words.first({/^z/}).say
22:41 p6eval rakudo 54cfe4: OUTPUT«No values matched␤␤»
22:41 masak rakudo: $*IN.words.say
22:41 p6eval rakudo 54cfe4: OUTPUT«IO()<0x2b8f7ae56d68>␤»
22:41 masak hm.
22:41 masak rakudo: slurp($*IN).words.say
22:41 p6eval rakudo 54cfe4: OUTPUT«Unable to open filehandle from path 'IO()<0x2afc74b60d68>'␤in Main (file src/gen_setting.pm, line 206)␤»
22:42 masak shouldn't slurp($*IN) work?
22:42 masak rakudo: $*IN.slurp.say
22:42 p6eval rakudo 54cfe4: OUTPUT«Land der Berge, Land am Strome,␤Land der Äcker, Land der Dome,␤Land der Hämmer, zukunftsreich!␤Heimat bist du großer Söhne,␤Volk, begnadet für das Schöne,␤vielgerühmtes Österreich,␤vielgerühmtes Österreich!␤␤Heiß umfehdet, wild umstritten␤liegst dem Erdteil du inmitten,␤einem
22:42 p6eval ..stark…
22:42 masak rakudo: $*IN.slurp.words.first(/^z/).say
22:42 p6eval rakudo 54cfe4: OUTPUT«zukunftsreich!␤»
22:43 masak :D
22:43 lichtkind gnight
22:43 jnthn Sheesh, that word makes Slovak look easy to pronounce.
22:44 shinobi-cl joined #perl6
22:45 * jnthn looks at all the stuff people++ are doing on the book, and pledges to join the fun once his branch is merged. :-)
22:47 masak I'll join the fun soon too ;)
22:47 masak I have a plan for a chapter.
22:49 jnthn Cool
22:49 jnthn Which one, or is that an Untellable Secret?
22:49 masak secrets? who, me? :)
22:50 masak the code I mean to write for that chapter is a dependency tracker.
22:51 masak or, in comp.sci. terms, a DAG.
22:52 jnthn Heh
22:52 * jnthn wrote the bit of Rakudo that uses a DAG.
22:52 masak I think it's nice because it's not much code, both the problem and the solution are fairly easy to explain, and yet, the result is quite impressive.
22:53 masak also, I've been meaning to write a DAG for proto for a while, so I thought I'd do that at the same time.
22:53 jnthn Everytime you write some multis, a DAG is involved. :-)
22:53 masak so I gathered. :)
22:54 jnthn Well
22:54 jnthn Unless we get some weird bug and it DCG
22:54 jnthn And then it complains. :-)
22:54 cognominal is there a mail list for the perl6 book?
22:55 jnthn cognominal: nah, just irc channel and the repo, afaik.
22:55 jnthn Not sure we need one.
22:56 masak rakudo: multi sub hanoi(0, $, $, $) { }; multi sub hanoi($n, $a = "A", $b = "B", $c = "C") { callsame($n - 1, $a, $c, $b); say "move disk $n from peg $a to peg $c"; callsame($n - 1, $b, $a, $c); }; hanoi(3)
22:56 p6eval rakudo 54cfe4: OUTPUT«Null PMC access in clone()␤in Main (file src/gen_setting.pm, line 206)␤»
22:56 masak that shouldn't be happening, right?
22:57 masak (yeah, yeah. I probably can't use 'callsame' there. I just wanted to find out what would happen.)
22:58 jnthn masak: It shouldn't, and it confuses me.
22:58 jnthn masak: Especially since I saw the "nothing to defer to" handling code the other day.
22:58 jnthn Which means I actually did write some.
22:58 jnthn :S
22:58 jnthn oh, erm
22:58 masak rakudo: multi sub f(0) {}; multi sub f($n) { say $n; callsame($n - 1) }; f(3) # smaller example
22:58 p6eval rakudo 54cfe4: OUTPUT«3␤Null PMC access in clone()␤in Main (file src/gen_setting.pm, line 206)␤»
22:58 jnthn also, if you're passing args, you perhaps wanted callwith.
22:58 masak oh :)
22:59 jnthn Yes, the problem you have there is that f(0) is narrower than f($n)
22:59 masak nothing like a stupid user to foil your plans, eh? :)
22:59 masak jnthn: I know. right now, it makes callsame et al feel totally useless to me.
22:59 jnthn masak: Well, the current Rakudo sig binder (uses Parrot which) fails to complain there, it seems.
22:59 masak rakudo: multi sub f(0) {}; multi sub f($n) { say $n; callwith($n - 1) }; f(3)
23:00 jnthn masak: Heh. You've missed the point of callsame.
23:00 p6eval rakudo 54cfe4: OUTPUT«3␤Null PMC access in clone()␤in Main (file src/gen_setting.pm, line 206)␤»
23:00 jnthn It's not "call this routine from scratch again"
23:00 masak jnthn: I know! and that irks me, too!
23:00 jnthn It's "defer to the next more general routine".
23:00 jnthn Which may be a parent or a more general multi candidate.
23:00 masak yes, yes...
23:00 * masak submits rakudobug
23:00 jnthn Which isn't what you want to do for factorial. :-)
23:01 masak no, probably not...
23:01 masak I'll tell you when I finally get it all.
23:01 jnthn Cool. Explain it to me once you do. :-)
23:03 shinobi-cl rakudo: croak 'croak';
23:03 p6eval rakudo 54cfe4: OUTPUT«Could not find non-existent sub croak␤in Main (file src/gen_setting.pm, line 206)␤»
23:03 shinobi-cl rakudo: die 'die';
23:03 p6eval rakudo 54cfe4: OUTPUT«die␤in Main (file /tmp/iINa6g8vp3, line 0)␤»
23:03 Tene rakudo: warn 'lol'
23:03 p6eval rakudo 54cfe4: OUTPUT«lol␤»
23:08 synth joined #perl6
23:11 shinobi-cl what does 'handles' do?
23:12 shinobi-cl has Druid::Game $!game handles <size layers colors heights make-move>;
23:12 jnthn shinobi-cl: delegation
23:13 masak shinobi-cl: it basically defines methods in that class which calls Druid::Game's methods.
23:13 jnthn .oO( w00t, delegating writing a good answer worked! )
23:14 jnthn But yes, in that form it just generates forwarder methods.
23:14 jnthn You can also give it a list of pairs to rename the forwarder methods, and even do a regex.
23:14 shinobi-cl so that defines Druid::Game::size .. etc etc?
23:14 jnthn But in the regex case, it's not generating forwarder methods.
23:15 masak shinobi-cl: no. you're in another class reading that, not in Druid::Game.
23:15 jnthn shinobi-cl: No, it defines a method in the class doing the has that looks like method size { $!game.size }
23:15 jnthn But also passing along params
23:15 cognominal what is the forlder hierarchy for translations? I have started the french translation
23:15 cognominal oops
23:15 cognominal wrong channel again
23:15 shinobi-cl mm ok i have to take a closer look at that
23:21 jnthn oh wow, it snowed not so far from here today!
23:21 pmichaud There's snow on my television screen.  :-|
23:22 masak "Winter is coming." -- Stark family motto
23:23 frew joined #perl6
23:26 dalek nqp-rx: 982f190 | pmichaud++ | src/Regex/P6Regex/Actions.pm:
23:26 dalek nqp-rx: Clean up handling of initial negated character class subrule.
23:26 dalek nqp-rx: review: http://github.com/perl6/nqp-rx/commit/982f1901f8cb3658c094e7d83faf45c35174f203
23:27 jnthn winter++
23:27 jnthn @karma winter
23:27 lambdabot winter has a karma of 1
23:27 ihrd joined #perl6
23:27 jnthn @karma summer
23:27 lambdabot summer has a karma of 0
23:27 jnthn \o/
23:27 masak :)
23:28 jnthn .oO( ...and the endgame of my liking of winter saw me move to Kiruna... )
23:30 masak heh.
23:30 masak ok, time for attempted sleep.
23:30 masak o/
23:31 * Juerd wonders when Kiruna will begin the big moving.
23:31 Juerd It's an incredibly interesting concept, to move a town.
23:32 cognominal gnole++
23:32 jnthn Juerd: Aye.
23:32 cognominal @karma gnole
23:32 lambdabot gnole has a karma of 1
23:32 cognominal french pun...
23:32 jnthn Juerd: I never actually went to Kiruna to visit, just passed through it on the train from a national park near there.
23:33 Juerd Someone who currently lives in Kiruna recently explained that the question of who's going to pay for it is currently causing most of the delay.
23:33 cognominal gnole means booze and carmagnole is a revolutionnary dance which may be revived soon with the dynastic streak of the new regime.
23:33 jnthn I imagine moving a town is not cheap.
23:33 jnthn Especially at Swedish prices. :-)
23:33 Juerd Even though every single viable option boils down to the government paying everything.
23:33 Juerd The question is: at which level, and via which legal entities...
23:33 jnthn Oh.
23:34 jnthn Well, how political^Wsilly.
23:34 cognominal why moving a town?
23:34 Juerd The mine? (government owend) The municipality? The national government? :)
23:34 jnthn It's too cold where it si now.
23:34 jnthn ;-)
23:34 Juerd Hahaha
23:34 cognominal nothing that can't be solved by global warming
23:35 Juerd cognominal: Iron ore, where the town sits now.
23:35 jnthn cognominal: Actually IIRC because it sits on top of a mineral rich area that they want to mine.
23:35 jnthn Ah yes iron.
23:35 * jnthn remembers watching the rather large trains that carry it off.
23:35 Juerd cognominal: Which cannot be extracted in a way that's safe for people living there, so there must not be people living there in order to begin doing so :)
23:36 Juerd And apparently it's worth moving an entire town for.
23:37 jnthn Must be an oreful lot of money to be made by extracting the iron.
23:37 Juerd :D
23:38 Juerd s/owend/owned/
23:38 Juerd Is there a s:last///? :)
23:39 Juerd Shouldn't have to scan your entire IRC log from the beginning
23:39 Juerd There was an article about sexeger (reverse "regexes")
23:40 jnthn o_O
23:40 nbrown_ joined #perl6
23:40 Juerd Can't find it.
23:40 Juerd o_O?
23:40 jnthn Nothing. There's nothing amusing about that name at all.
23:40 jnthn :-)
23:41 jnthn Actually I'd pondered writing a Grammar::Generative module
23:41 Juerd What would that do?
23:41 jnthn That took a Perl 6 grammar, made an AST from it, took a bunch of captures, and then used the grammar in reverse to format the data.
23:42 Juerd Either you type exeptionally fast or you were already explaining that before I asked :)
23:42 jnthn (actually making the AST is just part of what happens when compiling it anyway, I just think the AST is easier to wrok with than the parse tree).
23:42 jnthn No, I can't type quite that fast. :-)
23:43 Juerd Some people reach as much as 650 characters per minute.
23:43 jnthn Anyway, the regex parse trees are changing lots because pmichaud++ is working on nqp-rx
23:43 jnthn What?! That's over 10 keystrokes a second!
23:43 Juerd Yes
23:44 Juerd I know someone who reached over 600. I've reached 596 myself. Once.
23:44 jnthn Did what you typed actually make sense? :-)
23:44 Juerd (Normally I do about 580 if I try really hard and am in good shape.)
23:44 jnthn Wow.
23:44 Juerd This was measured using my http://speedtest.aoeu.nl/
23:44 jnthn I feel slow now.
23:45 Juerd You make up for it by being much more productive :)
23:46 * Juerd made that site just to get that chart :)
23:46 Juerd I *had to* know.
23:47 jnthn Your score: 397 CPM (that is 79 WPM)
23:47 jnthn Your score beats or equals 90.12% of all!
23:47 jnthn Sheesh.
23:48 jnthn 397 CPM sounds like a lot to me...
23:48 * jnthn didn't realize he did that much
23:48 jnthn No wonder people get RSI...
23:49 Juerd Yea
23:49 Juerd And 400 CPM really is quite fast
23:50 Juerd Most fast typers are surprised when they see the results.
23:50 Juerd In fact I've used an audio recording to verify that the javascript was correct, in an early stage of building this tool.
23:50 jnthn It is surprising.
23:51 Juerd I was assuming the timing data was inaccurate, but it is only slightly so.
23:51 jnthn I'd never really thought about it, and I'd have guessed about half of that.
23:51 Juerd Timing was less than 1% off even on the worst browser tested: IE 6.
23:56 lumi joined #perl6

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

Perl 6 | Reference Documentation | Rakudo