pugscode.org/ | nopaste: sial.org/pbot/perl6 | ?eval [~] <m oo se> | We do Haskell, too | > reverse . show $ foldl1 (*) [1..4] | irclog: irc.pugscode.org/
Set by diakopter on 11 July 2007.
00:05 theorb joined 00:17 theorbtwo left 00:20 chris2 left 00:22 ofer left 00:34 ebassi left 00:42 weinig is now known as sammy 00:49 jisom left 00:58 IllvilJa left 01:09 polettix left 01:17 AzureStone joined 01:47 mncharity left 01:48 justatheory left 01:56 xdg left 02:43 Daveman joined 02:50 AzureStone left 03:06 elmex_ joined 03:10 AzureStone joined 03:22 elmex left 03:24 Limbic_Region left 04:54 veritos joined
veritos yo... 04:55
04:59 veritos left 05:20 sammy left, weinig joined 05:21 weinig left, weinig joined, weinig left, weinig joined 05:22 weinig left, weinig joined 05:31 amnesiac joined 05:56 jisom joined
AzureStone blog.yappo.jp/yappo/archives/000542...plucoreirc 06:11
lambdabot Title: YappoLogs: おきなわにきてる
AzureStone 間違えた
すいません、間違えました。 06:12
06:16 AzureStone left 06:24 tokuhiro_ joined
tokuhiro_ ?eval "<naoya>"|"</naoya>" 06:25
06:28 Yappo__ joined
Yappo__ AzureStone-- 06:29
06:32 jisom left
Tene pugs: "<naoya>"|"</naoya>" 06:45
exp_evalbot OUTPUT[("</naoya>" | "<naoya>")␤]
tokuhiro_ oh.
is topic wrong? 06:46
Tene the "normal evalbot" seems to be missing. 06:47
That's been in the topic for a long time.
tokuhiro_ oh
Tene I guess exp_evalbot gets used a bit more than the "normal" evalbot these days.
kp6: "<naoya>"|"</naoya>" 06:48
exp_evalbot r18910: OUTPUT[Can't locate object method "new" via package "IO::Handle" at script/kp6 line 340, <> line 1.␤]
tokuhiro_ ok.thanks. 06:49
Tene np 06:50
06:51 Aankhen`` joined 07:12 redicaps joined 07:13 redicaps left, lumi joined 07:26 thoughtpolice left 07:35 iblechbot joined 07:37 IllvilJa joined 08:20 amnesiac left 08:24 franck___ joined 08:25 franck___ left, franck___ joined 08:27 pen1 left 08:30 devogon joined 08:58 penk joined 09:05 xinming joined 09:12 cmarcelo left 09:13 yves joined 09:20 drupek12 joined 09:35 masak joined 09:40 Casan joined 09:43 drrho joined 09:48 ruoso joined 10:14 penk left, penk joined 10:19 ruoso left 10:20 ruoso joined 10:26 franck____ joined, franck___ left 10:39 ting_ joined 10:45 DarkWolf84 joined 10:47 fglock joined 10:53 kolot182 joined 11:00 toshino__ joined 11:03 kolot182 left 11:07 ebassi joined 11:10 cognominal_ left 11:48 masak left 12:09 Alias__ joined 12:14 chris2 joined 12:19 mj41__ joined 12:31 iblechbot left 12:38 baest_ joined 12:39 fglock left, drrho left, Casan left, elmex_ left, marmic left, luqui left, avar left, ruz left, aindilis left, Gekz left, toshino__ left, lumi left, Aankhen`` left, Kattana left, devogon left, jjore-m left 12:40 devogon joined, jjore-m joined, f0rth joined, kcwu joined, SamB joined, melissa joined, mj41 joined, toshino__ joined, lumi joined, Aankhen`` joined, Kattana joined, zamolxes joined, cls_bsd joined, lidden joined, QtPlatypus joined, rafl joined, shmem joined, tewk joined, diotalevi joined, yahooooo joined, fglock joined, drrho joined, Casan joined, elmex_ joined, marmic joined, luqui joined, avar joined, ruz joined, aindilis joined, Gekz joined, charsbar joined, lambdabot joined, yath joined, pbuetow joined, qmole joined, bloonix joined, agentzh joined, allbery_b joined, cj joined, clkao joined, moritz_ joined, test joined 12:42 idiotmax joined 12:50 ebassi is now known as ebassi|lunch 12:54 baest_ is now known as baest, mj41__ left 13:09 lichtkind joined 13:10 ebassi|lunch left, xinming left, tokuhiro_ left, araujo left, sunnavy left, TimToady left, jiing left, Maddingue left 13:11 ebassi|lunch joined, xinming joined, tokuhiro_ joined, araujo joined, sunnavy joined, Jedai joined, c9s joined, ajs__ joined, exp_evalbot joined, jql joined, TimToady joined, Maddingue joined, jiing joined, Juerd joined, wolverian joined, PerlJam joined, buu joined, zostay joined, stef_ joined, arguile joined, shachaf joined, TreyHarris joined, nipotan joined, GeJ joined, SubStack joined 13:18 fglock left 13:38 luqui left 13:40 ebassi|lunch is now known as ebassi 13:58 ggoebel joined 14:08 fglock joined, elmex_ left 14:20 iblechbot joined 14:25 masak joined 14:45 nipotan is now known as nipotaway
lichtkind is there a errelse? 14:47
14:53 Loro_ joined 15:02 perlygatekeeper joined 15:12 TJCRI joined, jrockway joined
fglock lichtkind: norr :) 15:13
lichtkind fglock: thanks 15:14
fglock: you mean not yet :)
15:14 elmex joined
ebassi would be nice having a "orelse" - if (eat_your_soup()) { } orelse { go_to_your_bedroom() } 15:15
lichtkind i dont understand sense of orelse since the right block is ony executed if the left has no result why pass then the result over?
fglock: my perl 6 tutorial has since 2 weeks also chapter about kp6, is ther eanything you want to have mentioned? 15:16
fglock lichtkind: have a link?
lichtkind its german either :)
fglock: wiki.perl-community.de/bin/view/Wis...pitel1#kp6 15:17
lambdabot Title: PerlCommunityWiki 􏿽xBB Wissensbasis 􏿽xBB Perl6TutorialKapitel1, tinyurl.com/2qeq2v
fglock looking 15:18
lichtkind you can german? 15:19
btw the perlfoundation wiki seems buggy
i dont get any affirmation mail
15:20 drrho left 15:21 Psyche^ joined, Patterner left, Psyche^ is now known as Patterner
fglock lichtkind: I read very slowly and I miss some words, but it looks ok :) 15:21
lichtkind: you should also mention v6.pm, which is a separate project 15:22
lichtkind tell me more
fglock v6.pm is a CPAN module (look for "v6"),
it is a Perl 6-in-Perl 5 15:23
it is split in 2 modules: Pugs::Compiler::Rule, and Pugs::Compiler::Perl6
PCR is the grammar engine
15:23 weinig left
fglock the v6 runtime uses Moose and other Perl 5 modules, in order to emulate Perl 6 behaviour 15:24
15:25 chris2 left
lichtkind fglock: right i saw that in cpan last week 15:25
fglock: wiki.perl-community.de/bin/view/Wis...apitel1#v6 15:30
lambdabot Title: PerlCommunityWiki 􏿽xBB Wissensbasis 􏿽xBB Perl6TutorialKapitel1, tinyurl.com/2qeq2v
15:30 faxathisia joined
fglock :) 15:31
lichtkind fglock: im quick :)
fglock kp6: my $a; say exists($a[1]); say defined($a); $a[1]=42; say exists($a[1]); say defined($a); 15:34
exp_evalbot r18914: OUTPUT[Can't locate object method "new" via package "IO::Handle" at script/kp6 line 340, <> line 1.␤]
fglock kp6 now autovivifies structures lazily 15:39
15:39 Lorn joined
lichtkind pugs: my $a = sub { say @$_}; $a(2,3); 15:46
exp_evalbot OUTPUT[*** No compatible multi variant found: "$a"␤ at /tmp/hE7hyuOH2k line 1, column 25-32␤]
lichtkind pugs: my $a = sub { say @$_}; $a(3); 15:47
exp_evalbot OUTPUT[3␤]
lichtkind strange why blocks can only be called with one parameter
is that a bug or intentional?
fglock I think it's a default-signature bug 15:50
pugs: my &a := { say $^a,$^b }; a(2,3);
exp_evalbot OUTPUT[23␤]
15:51 jrockway left, jrockway joined 15:53 cognominal_ joined
lichtkind fglock: are you shure its not intention? 15:55
$a(2,3); doest works but $a((2,3)); does 15:57
fglock pugs: sub a { say @_ }; a(2,3); 15:59
exp_evalbot OUTPUT[23␤]
fglock pugs: my &a := { say @_ }; a(2,3); 16:00
exp_evalbot OUTPUT[*** No compatible multi variant found: "&a"␤ at /tmp/mNaRxjXFfr line 1, column 22-28␤]
fglock it does look like a compiler error 16:01
16:09 amnesiac joined, penk left
lichtkind fglock: maybe but blocks hast only $_ no @_ maybe it has something to do with 16:09
16:11 Limbic_Region joined 16:14 faxathisia left 16:15 weinig joined 16:19 REPLeffect joined
fglock lichtkind: yes, that's a possible explanation 16:27
moritz_ re 16:32
fglock kp6: say "IO::Handle error" 16:34
exp_evalbot r18914: OUTPUT[Can't locate object method "new" via package "IO::Handle" at script/kp6 line 340, <> line 1.␤]
perlygatekeeper perlbot port 25
perlbot port 25: smtp - Simple Mail Transfer
perlygatekeeper perlbot port 465
damn
what's the port number for mail delivery
moritz_ 25 16:35
perlygatekeeper no, secure 16:36
465 and 587
but thanks
moritz_ grep -i smtp /etc/services # 4 t w! 16:37
16:38 rindolf joined 16:40 masak left 16:45 Psyche^ joined 16:59 pmurias joined 17:02 Patterner left, Psyche^ is now known as Patterner 17:11 justatheory joined 17:13 justatheory left 17:19 toshino__ left 17:23 elmex left 17:24 elmex joined 17:58 jjore-m left, cmarcelo joined 18:14 justatheory joined 18:19 jjore-m joined 18:24 polettix joined 18:25 Alias__ left
fglock kp6: say (($A::a[1])[2]).exists; say defined($A::a); ($A::a[1])[2]=42; say exists(($A::a[1])[2]); say defined($A::a); 18:25
exp_evalbot r18916: OUTPUT[Can't locate object method "new" via package "IO::Handle" at script/kp6 line 340, <> line 1.␤]
Tene kp6: 1; 18:27
exp_evalbot r18916: OUTPUT[Can't locate object method "new" via package "IO::Handle" at script/kp6 line 340, <> line 1.␤]
moritz_ is script/kp6 still the recommended way to eval kp6 code? 18:28
18:29 franck____ left, lambdabot_ joined
pmurias moritz_: unless you want to brew your one interface i would guess 18:30
fglock pmurias: all kp6 autovivification tests pass :) 18:31
pmurias fglock: that's good 18:32
neither IO::Handle nor IO::File seem to be requiter/used by script/kp6 18:35
used i the sense of the keyword
bbkr_ what does '-->' operator do in p6? plenty of those are used in svn.pugscode.org/pugs/src/perl6/STD.pm but i cannot find it in Synopses
for example "token infix:sym<=:=> ( --> Chaining) { <sym> {*} }" 18:36
moritz_ I think that's "returns an object of type $type"
it's in Syntax.pod for example 18:37
bbkr_ thanks, that makes sense, Chaining is a class in this file
18:37 rindolf left
fglock pmurias: I updated script/kp6 to use IO::* 18:38
18:38 ebassi left
fglock kp6: 1 18:38
exp_evalbot r18917: OUTPUT[Can't locate object method "new" via package "IO::Handle" at script/kp6 line 340, <> line 1.␤]
pmurias fglock: where are they required at?
fglock by line 340, it selects between STDOUT or a filename for output 18:39
kp6: 1
exp_evalbot r18918: OUTPUT[no method 'say' in Class 'Str'␤ at compiled/perl5-kp6-mp6/lib/KindaPerl6/Runtime/Perl5/MOP.pm line 345␤ KindaPerl6::Runtime::Perl5::MOP::__ANON__('HASH(0x8791460)', 'say') called at compiled/perl5-kp6-mp6/lib/KindaPerl6/Runtime/Perl5/MOP.pm line 169␤
..main::DISPATCH('HASH(0x8791460)', 'say') called at - line 17␤]
fglock kp6: say 1
exp_evalbot r18918: OUTPUT[1␤]
fglock it's back :)
kp6: say (($A::a[1])[2]).exists; say defined($A::a); ($A::a[1])[2]=42; say exists(($A::a[1])[2]); say defined($A::a); 18:40
exp_evalbot r18918: OUTPUT[0␤0␤1␤1␤]
pmurias laments the death of svnbot 18:41
18:41 lisppaste3 joined
pmurias fglock: autovivifications looks like an advanced feature ;) 18:41
fglock kp6: say ++($A::a);
exp_evalbot r18918: OUTPUT[1␤] 18:42
fglock kp6: say ++($A::a); $A::a[1];
exp_evalbot r18918: OUTPUT[no method 'INDEX' in Class 'Int'␤ at compiled/perl5-kp6-mp6/lib/KindaPerl6/Runtime/Perl5/MOP.pm line 345␤ KindaPerl6::Runtime::Perl5::MOP::__ANON__('HASH(0x87953d0)', 'INDEX', 'HASH(0x87973d8)') called at compiled/perl5-kp6-mp6/lib/KindaPerl6/Runtime/Perl5/MOP.pm line 169␤
..main::DISPATCH('HASH(0x87953d0)', 'INDEX', 'HASH(0x87973d8)') called at c...]
pmurias say $undefine_var;
kp6: say $undefine_var;
exp_evalbot r18918: OUTPUT[ValueProxy␤]
fglock after autovivification, $A::a can no longer be an array
18:42 pugs_svn joined
pugs_svn r18914 | fglock++ | [kp6-perl5] s/STORE/BIND/ 18:42
r18915 | fglock++ | [kp6-perl5] tighter rule for emitting "self"
r18916 | fglock++ | [kp6] t/todo/64-autovivify-global.t resolved;
r18916 | fglock++ | - 56-proto-sym.t now fails, but this seems to be due to an older bug
r18917 | fglock++ | [kp6] TODO: autovivification is marked as resolved
r18918 | fglock++ | [kp6] script/kp6 - added missing 'use'
pmurias cheers the pugs_svn resurection 18:43
fglock oops - autovivification killed strictness 18:44
moritz_ that's not so good ;) 18:45
pmurias we only had an illusion of strictness anyway 18:46
;)
say $undefined_var.Str(); 18:47
kp6: say $undefined_var.Str();
exp_evalbot r18918: OUTPUT[ValueProxy␤]
pmurias say $undefined_var.isa("Undef");
pugs_svn r18919 | fglock++ | [kp6] added "strictness" to TODO
moritz_ kp6: say $undefined_var.isa("Undef"); 18:48
exp_evalbot r18919: OUTPUT[1␤]
18:50 barney joined
pmurias say $undefined_var.isa("Undef"); 18:52
fglock hmm - $undefined_var.Str() is a problem 18:57
moritz_ kp6: say $undef_var
exp_evalbot r18919: OUTPUT[ValueProxy␤]
pmurias fglock: does the new construct the object properly 18:58
18:58 penk joined
fglock the object is ok, but it looks like a prototype object, which stringigfies to the class name 18:59
18:59 marmic left 19:02 marmic joined
lichtkind is there any known problem with the TPF wiki? 19:04
19:04 jjore-m left 19:05 DarkWolf84 left 19:07 jjore-m joined
pmurias having a new method which returns the depends on the internal object format dosn't seem "clean" 19:07
lichtkind has anybody here an account in the TPF wiki? 19:08
pmurias luring people with simpler questions first? ;) 19:09
moritz_ ;) 19:10
fglock pugs: my $a = ::Undef.new; say $a 19:11
exp_evalbot OUTPUT[<obj:Undef>␤]
fglock doesn't look correct either
19:11 elmex left
fglock pugs: my $a = ::Undef.new; say $a.Str 19:12
exp_evalbot OUTPUT[*** No such method in class Undef: "&Str"␤ at /tmp/S3zMDgqLC2 line 1, column 26 - line 2, column 1␤]
19:17 jovs joined
pmurias fglock: ValueProxy basicly is a prototype object with with _parent_container 19:19
kp6: ::Int.isa("Undef") 19:20
exp_evalbot r18919: OUTPUT[syntax error at position 0, line 1 column 0:␤::Int.isa("Undef"␤^ HERE␤]
fglock it's not a prototype object, it's an instance - but it's "undefined" like a prototype object is
pmurias fglock: i how it is represented in kp6
* i mean
%{ $_[0] } 19:21
clones the prototype
fglock hmm - let me try something here
pmurias sure 19:22
19:24 jjore-m left
pmurias ::Foo is the protoobject for the Foo class 19:32
fglock kp6: say undef
exp_evalbot r18919: OUTPUT[␤]
pmurias ?
fglock undef stringifies correctly 19:33
moritz_ kp6: print undef
exp_evalbot r18919: OUTPUT[Undef]
moritz_ ah, wait
no output = evaled again with say ( ($expr).perl) around it
19:33 REPLeffect left
pmurias moritz_: that's a hack 19:34
moritz_ pmurias: yes :)
pmurias bad moritz_ ;)
moritz_ pmurias: but a fairly successfull one, for those who forget to put a 'say' or 'print' in their expression
pmurias: the bad thing is that it still says OUTPUT[...] 19:35
pmurias kp6: print undef;say "-----";
exp_evalbot r18919: OUTPUT[Undef-----␤]
pmurias kp6: say undef;say "-----"; 19:36
exp_evalbot r18919: OUTPUT[␤-----␤]
19:36 pbuetow left
moritz_ ouch 19:36
fglock hmm - ValueProxy can't "be" an Undef, because the Container object can be assigned to 19:38
19:38 pbuetow joined
pmurias fglock: i'm amazed prototype objects get stringifed as the names of their classes 19:38
fglock pmurias: this is specced, afaik 19:39
pmurias yes
is there any magic which makes them not inherit the Str method from their respective class?
fglock they do inherit, but the dispatcher has a special case to ignore the default .Str 19:40
pmurias seen it
that conflicts with undef not having a value 19:41
fglock ValueProxy will need some extra magic for .Str, .isa and such
Undef has the same problems, but it didn't show before 19:42
pmurias the internal object format should be more encapsualted 19:44
fglock should we use P6Opaque ? 19:45
pmurias looking at what it does 19:46
don't know 19:47
fglock I think it's ok to have special cases for Container and Undef 19:48
19:48 jisom joined
fglock they are too different from plain objects 19:48
19:52 TJCRI left
pmurias fglock: ok 19:52
but for example Hash.new also depends on the internal object format 19:53
=head1 Construction and Initialization 19:54
in S12
looks like the way we should be creating objects
fglock pmurias: I'll read it again..
home &
19:58 rindolf joined 20:03 xinming_ joined 20:15 fglock left 20:16 xinming left 20:29 lambdabot_ left 20:30 lambdabot_ joined 20:33 fglock joined
fglock b 20:33
20:34 Aankhen`` left
rafl obra: could mikem help you? 20:39
obra rafl: I passed the comment on to minion but hadn't heard back 20:41
20:41 rindolf left
obra ok. alex says he hasn't poked mike yet. 20:41
lame. ;)
20:41 jisom left
rafl i see 20:44
obra I've just prodded him to deal
rafl I have some paid hours to work on it this week 20:45
so I'll take care about it if it isn't resolved already
obra cool! thanks 20:46
20:53 ingyfoo joined, ingyfoo is now known as ingy 20:58 fglock left 21:00 xinming_ left, Lorn left, xinming joined
pmurias class object in the synopsis fragment refers to the prototype? 21:03
:q 21:11
typo
21:11 pmurias left 21:25 jjore-m joined 21:33 chris2 joined 21:37 lumi left 21:49 perlygatekeeper left 22:01 barney left 22:07 lichtkind left 22:16 drupek12 left 22:26 TJCRI joined 22:44 iblechbot left 22:48 rama1 joined 23:00 NoNaME joined
NoNaME Hi 23:00
moritz_ hi 23:01
23:09 ujwalic joined
pugs_svn r18920 | dlo++ | [kp6] Test updated to actually fail, and not produce a bad 'successful' output 23:09
23:17 TJCRI left, fglock joined
fglock pmurias: yes, it seems class-object is the prototype, and actual-class-object is the metaclass 23:19
23:32 amnesiac left 23:33 ujwalic left 23:39 jjore-m left 23:42 jjore-m joined 23:46 rama1 left
pugs_svn r18921 | fglock++ | [kp6-perl5] fixed ValueProxy.Str and .isa; ValueProxy is now "transparent" 23:54
r18921 | fglock++ | - 46-hash-item-bind.t fails; moved to t/todo
fglock kp6: my $a; say $a 23:56
exp_evalbot r18921: OUTPUT[␤]