2009 -- the year of November. <november-wiki.org> <github.com/viklund/november> <irclog.perlgeek.de/november-wiki> <nopaste.snit.ch>
Set by moderator on 7 April 2009.
00:18 ihrd joined 01:26 wayland joined 07:48 masak joined
masak Tene: ping 08:44
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)␤»
moritz_ Associative.new()? wtf/? 09:11
ihrd aha 09:13
moritz_ that seems to be not a type, but an implicit default value
wayland76 I thought associative was a role 09:16
Oh, but the .new is weird :)
masak Associative.new() looks like the output of .perl
anyway, it's rakudobuggable.
masak rakudobugs
ihrd rkaudo: multi foo (@a) { 1 }; multi foo ($a) { 2 }; say foo(1); 10:29
rakudo: multi foo (@a) { 1 }; multi foo ($a) { 2 }; say foo(1);
p6eval rakudo 69b318: OUTPUT«2␤»
ihrd rakudo: multi foo (@a) { 1 }; multi foo ($a) { 2 }; say foo(<1 2>); 10:30
p6eval rakudo 69b318: OUTPUT«1␤»
ihrd rakudo: multi foo (@a) { 1 }; multi foo ($a, $f?) { 2 }; say foo(1);
p6eval rakudo 69b318: OUTPUT«2␤»
ihrd rakudo: multi foo (@a) { 1 }; multi foo ($a, %h?) { 2 }; say foo(1); 10:31
p6eval rakudo 69b318: OUTPUT«2␤»
ihrd rakudo: multi foo (@a, %h?) { 1 }; multi foo ($a) { 2 }; say foo(1);
p6eval rakudo 69b318: OUTPUT«2␤»
ihrd rakudo: multi foo ($a) { 1 }; multi foo (@a, %h?) { 2 }; say foo(1);
p6eval rakudo 69b318: OUTPUT«1␤» 10:32
ihrd rakudo: multi foo (@a) { 1 }; multi foo ($a, %h?) { 2 }; say foo(<1 2 3>);
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)␤»
masak submits rakudobug
:)
rakudo: class A { has Callable $.c; method foo() { say defined $.c } }; A.new.foo 12:19
p6eval rakudo 69b318: OUTPUT«1␤»
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
Tene masak: pong 14:36
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
feel free to send me logs and/or notes
masak most of it was a long-overdue review of some of Routes.pm, plus a discussion of various related Rakudobugs. 14:40
I don't have any logs, unfortunately.
Tene OK
masak Tene: I've been thinking a bit on how to compile XML templates like the one on genshi.edgewall.org/wiki/GenshiTutorial into fast PIR. 14:42
zarah masak's link is also tinyurl.com/3caopv
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
masak but that's quite a big task, so my first plan is to prototype this in Perl 6, using a grammar. 14:44
shouldn't be too hard.
moritz_ masak: you know that you can generate PAST from Perl 6?
masak moritz_: yes. does that help here?
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!
very good.
moritz_++
moritz_ and then your prototype can be the real thing :-)
masak ...totally sidestepping PCT. 14:46
moritz_ the PAST to PIR step would still use PCT
masak oh, ok.
this is why we make our silly plans in the open, so that they can become less silly with the help of friendly bystanders.
anyway, I have to go. 14:47
will try to have that prototype by tomorrow.
wayland76 likes XML sometimes :) 15:03
17:09 sri_kraih_ joined 18:21 masak joined 18:57 szabgab joined