Camelia, the Perl 6 bug

IRC log for #november-wiki, 2009-04-21

| Channels | #november-wiki index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:18 ihrd joined #november-wiki
01:26 wayland joined #november-wiki
07:48 masak joined #november-wiki
08:44 masak Tene: ping
09:08 ihrd rakudo: multi foo ($a, %h?) { say 1}; multi foo (@a) {say 2}; foo(<1 2 3>)
09:08 p6eval rakudo 69b318: OUTPUT«Ambiguous dispatch to multi 'foo'. Ambiguous candidates had signatures:␤:(Any $a, Associative.new() %h?)␤:(Positional.new() @a)␤␤current instr.: '_block14' pc 101 (EVAL_16:53)␤»
09:11 moritz_ Associative.new()? wtf/?
09:13 ihrd aha
09:13 moritz_ that seems to be not a type, but an implicit default value
09:16 wayland76 I thought associative was a role
09:16 wayland76 Oh, but the .new is weird :)
09:16 masak Associative.new() looks like the output of .perl
09:16 masak anyway, it's rakudobuggable.
09:16 * masak rakudobugs
10:29 ihrd rkaudo: multi foo (@a) { 1 }; multi foo ($a) { 2 }; say foo(1);
10:29 ihrd rakudo: multi foo (@a) { 1 }; multi foo ($a) { 2 }; say foo(1);
10:29 p6eval rakudo 69b318: OUTPUT«2␤»
10:30 ihrd rakudo: multi foo (@a) { 1 }; multi foo ($a) { 2 }; say foo(<1 2>);
10:30 p6eval rakudo 69b318: OUTPUT«1␤»
10:30 ihrd rakudo: multi foo (@a) { 1 }; multi foo ($a, $f?) { 2 }; say foo(1);
10:30 p6eval rakudo 69b318: OUTPUT«2␤»
10:31 ihrd rakudo: multi foo (@a) { 1 }; multi foo ($a, %h?) { 2 }; say foo(1);
10:31 p6eval rakudo 69b318: OUTPUT«2␤»
10:31 ihrd rakudo: multi foo (@a, %h?) { 1 }; multi foo ($a) { 2 }; say foo(1);
10:31 p6eval rakudo 69b318: OUTPUT«2␤»
10:31 ihrd rakudo: multi foo ($a) { 1 }; multi foo (@a, %h?) { 2 }; say foo(1);
10:32 p6eval rakudo 69b318: OUTPUT«1␤»
10:32 ihrd rakudo: multi foo (@a) { 1 }; multi foo ($a, %h?) { 2 }; say foo(<1 2 3>);
10:32 p6eval rakudo 69b318: OUTPUT«Ambiguous dispatch to multi 'foo'. Ambiguous candidates had signatures:␤:(Positional.new() @a)␤:(Any $a, Associative.new() %h?)␤␤current instr.: '_block14' pc 101 (EVAL_16:53)␤»
10:32 * masak submits rakudobug
10:32 masak :)
12:19 masak rakudo: class A { has Callable $.c; method foo() { say defined $.c } }; A.new.foo
12:19 p6eval rakudo 69b318: OUTPUT«1␤»
12:38 masak rakudo: class A { has Callable $.c; method foo() { say $.c !=== Callable } }; A.new.foo
12:38 p6eval rakudo 69b318: OUTPUT«0␤»
13:22 ihrd left #november-wiki
14:36 Tene masak: pong
14:37 masak Tene: I had promised ihrd to have a meeting earlier today, and wondered if you were available. in the end, we have a long private IRC chat and a medium-length Skype call.
14:37 Tene OK
14:37 Tene feel free to send me logs and/or notes
14:40 masak most of it was a long-overdue review of some of Routes.pm, plus a discussion of various related Rakudobugs.
14:40 masak I don't have any logs, unfortunately.
14:40 Tene OK
14:42 masak Tene: I've been thinking a bit on how to compile XML templates like the one on http://genshi.edgewall.org/wiki/GenshiTutorial into fast PIR.
14:42 zarah masak's link is also http://tinyurl.com/3caopv
14:43 masak my best plan so far is to make a specialized language using PCT, which compiles template XML down to PIR.
14:43 Tene yes, m too
14:44 masak but that's quite a big task, so my first plan is to prototype this in Perl 6, using a grammar.
14:44 masak shouldn't be too hard.
14:44 moritz_ masak: you know that you can generate PAST from Perl 6?
14:44 masak moritz_: yes. does that help here?
14:45 moritz_ masak: once you've got the Perl 6 grammar, you can write the actions in Perl 6, and generate PAST from that
14:45 masak ah. ah!
14:45 masak very good.
14:45 masak moritz_++
14:45 moritz_ and then your prototype can be the real thing :-)
14:46 masak ...totally sidestepping PCT.
14:46 moritz_ the PAST to PIR step would still use PCT
14:46 masak oh, ok.
14:46 masak this is why we make our silly plans in the open, so that they can become less silly with the help of friendly bystanders.
14:47 masak anyway, I have to go.
14:47 masak will try to have that prototype by tomorrow.
15:03 * wayland76 likes XML sometimes :)
17:09 sri_kraih_ joined #november-wiki
18:21 masak joined #november-wiki
18:57 szabgab joined #november-wiki

| Channels | #november-wiki index | Today | | Search | Google Search | Plain-Text | summary