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:18 theorbtwo left 00:27 polettix left 00:37 devogon left 00:38 daxim joined 00:43 daxim_ left 00:45 kanru left 01:00 lyokato joined 01:10 Limbic_Region left
meppl good night 01:11
01:15 cognominal_ left 01:18 cognominal_ joined 01:27 thoughtpolice left 01:39 eric joined, cnhackTNT joined 01:53 cmarcelo left 02:06 weinig left 02:30 amnesiac joined 02:31 kanru joined 02:40 Eidolos left, Eidolos joined 02:43 weinig joined 02:44 weinig left 02:45 weinig joined 02:51 CindyLinz left 03:31 justatheory joined 03:33 c9s left 03:43 kanru left 03:49 ofer joined 04:03 Southen left 04:16 Southen joined 05:06 Lunchy_ left, Lunchy joined 05:15 c9s_ joined 05:17 c9s_ is now known as c9s 05:25 wruppert joined, Southen left 05:26 thoughtpolice joined 05:28 wruppert left 05:41 cognominal_ left 06:08 jisom joined 06:12 Southen joined 06:13 BinGOs_ is now known as BinGOs 06:25 justatheory left 06:37 thoughtpolice left 06:43 amnesiac left
moritz_ good localtime() everybody 06:46
07:02 iblechbot joined, Khisanth left 07:03 Khisanth joined 07:15 riffraff joined 07:24 BinGOs left 07:30 franck___ joined 07:32 masak joined 07:35 elmex joined
spinclad g'localtime(), @all 07:36
masak g'localtime(), spinclad
07:41 IllvilJa joined
spinclad good morrow to you, good sir! 07:45
moritz_ is too dumb for kp6 debugging 07:46
spinclad and to you, good moritz_, good morrow! 07:48
07:48 ft left
spinclad is too lagged by a thrashing firefox to do much tonight 07:51
07:58 BinGOs joined
moritz_ are coroutines (with yield instead of return) and gather/take isomorphic? 08:25
assuming lazy gather/take, that is 08:37
08:39 riffraff left
spinclad hmm. i suspect coroutines will be more general, as not constrained to a producer/consumer assymetry, but i'm not sure Perl 6 coroutines, in particular, have all the power i'm thinking of. 08:39
certainly every yield point has a signature of what is yielded there, both on the calling side (yield ...) and the receiving side (... := coroutine(...)); 08:43
moritz_ ah right, yield can probably propagate a different context than take 08:45
spinclad and as i have understood coroutines, a signature back when the receiving side asks it to go on.
08:45 drrho joined
spinclad the simplest case keeps these signatures fixed for the life of the coroutining pair; but with careful architecture this needn't be the case, and perhaps usefully so. 08:47
iow, you could have sets A and B of yield points that have different interfaces; but they would have to stay in sync on both sides. 08:48
i wouldn't be surprised if this could be better expressed another way, though. 08:51
say, as a persistent object with two different methods. 08:52
08:52 drrho left 08:53 jisom left
spinclad well, back to thrashing, and bed. g'night, @all 08:55
spinclad &
09:06 ruoso joined 09:09 renormalist joined 09:11 devogon joined
TimToady I don't think they're isomorphic. coroutines are limited to returning from the current "sub", while a take can return from any gather in the outer dynamic scope. 09:20
though, as with loop controls, it should probably prefer a visible outer lexical scope over a hidden dynamic scope, even if the dynamic scope is inside the lexically scoped gather 09:22
that is, it should probably search for a gather by the same policy as S04:807 09:24
(and thereabouts) 09:25
moritz_ TimToady: thanks
TimToady and could even potentially have labelled gathers, and FOO.take() 09:26
09:27 fglock joined
meppl good morning 09:31
moritz_ I'm off, see you on sunday ;)
TimToady later 09:32
meppl good bye mortiz 09:33
09:43 masak left 09:52 nothingmuch left 10:06 riffraff joined 10:10 cnhackTNT left 10:25 gugod left 10:27 lyokato left 10:34 pmurias joined
pmurias fglock: you can now only write emitter for kp6 in mp6 10:35
*emitters
fglock pmurias: yes 10:36
because the AST is an mp6 object
10:37 ingy left
TimToady note, I just changed the precedence of x, xx and ~ 10:37
10:38 gugod joined, ingy joined
TimToady also, to get my fixed pugs compile perl5_init had to refer to &environ rather than &env. this might break the build elsewhere... 10:39
fglock TimToady: is it ok to refactor the regex AST to avoid left-recursion?
TimToady where does it do left-recursion?
fglock I mean, to allow left recursion, without infinite loop 10:40
TimToady why would you need it? 10:42
everything calls a lower rule, except things that have some other token on the left
pmurias you want to turn token left {<left> <something>} into token {<something>+} 10:43
?
fglock yes, for example
pmurias isn't the later clearer 10:44
?
fglock hmm - I need it a while ago, it would make some grammar simpler to write - I'll try to find it 10:47
needed
TimToady it tends to completely screw up longest-token matching 10:48
pmurias fglock: fixing $foo.bar.baz? 10:50
fglock pmurias: that would be one case, but it is should probably be fixed with some precedence algorithm, for flexibility 10:52
reading en.wikipedia.org/wiki/Left_recursion 10:53
lambdabot Title: Left recursion - Wikipedia, the free encyclopedia
TimToady re-zzz & 10:55
pmurias fglock: left recursion is hard to understand with a NFA mindset 10:56
fglock hmm - mindsets make certain things harder to understand 11:01
pmurias fglock: and somethings easy, luckily you aren't limited to one 11:07
fglock reading on NFA too
pmurias got confused is the perl regex engine an NFA? 11:12
fglock I read that Perl 5.10 optimizes snippets to [DN]FA when possible 11:18
pmurias i think it is (without the nonregular features) with backtracking being transitons withought taking any input 11:20
avar fglock: it doesn't 11:21
pmurias would a perl build script be better than a Makefile? 11:23
11:24 iblechbot left
avar something that could run on all makes would be a good start 11:25
but if you're going to write it in pure-perl it'll be troublesome to write and to get it to work with makemaker
pmurias avar: is Module::Build an option? 11:29
avar why do you want to use that? 11:30
pmurias just looking at it, it dosn't use make at all 11:31
avar people generally seem to dislike it
anyway depending on make isn't a problem, but depending on GNU make is 11:32
you could write perl code in the .PL file to do the patsubst thing and /%.pm
pmurias dlocaus++ wrote it 11:33
avar: but the whole Makefile.PL feels hackish 11:35
11:38 Grrrr left 11:40 Grrrr joined
avar sure 11:41
11:42 Grrrr left, rff_ joined 11:43 Grrrr joined
fglock pugs: &say 11:50
exp_evalbot OUTPUT[\:(@?1 is copy) {}{Prim ([Pugs.AST.Internals.Val] -> Pugs.AST.Eval.Eval Pugs.AST.Internals.Val)}ā¤]
fglock what does this mean? 11:51
pmurias avar: do you dislike Module::Build youself?
pugs: sub a {};&a
exp_evalbot OUTPUT[\sub :(@_) "$_" := "Scalar" #<Scalar:0xb72c899c>ā¤ "@_" := "Array" #<Array:0xb72c756c>ā¤ "&?ROUTINE" := "Sub" #<Sub:0xb6604cec>ā¤ "&?BLOCK" := "Sub" #<Sub:0xb6604cec> {"&a" := "Sub" #<Sub:0xb722ec30>, "$_" := "Scalar" #<Scalar:0xb72d2cd8>ā¤
.. "@_...]
avar pmurias: I just know it routinely breaks my cpan installs by opening dialogs during make test or something
because it insists on not installing things in the normal perl module tree or something 11:52
fglock how about to add the AST to the 'Code' object, to allow serialization? 11:55
pmurias sounds resonable
fglock &print.perl would just return "&print" ? 11:56
pmurias fglock: or 'sub {...}' 11:57
fglock pmurias: "&print" can be eval'ed back
pmurias fglock: yes 11:58
11:58 riffraff left
pmurias Grammar/Sub.pm and Grammar/Term.pm give compile error in onion 11:59
fglock pmurias: isn't it a perltidy error? 12:01
I got errors on embedded slashes in regexes
pmurias fglock: could be 12:02
12:02 renormalist left
fglock pmurias: I added a --noperltidy option to script/kp6 12:02
pmurias & 12:06
12:07 iblechbot joined 12:09 f0rth_ is now known as f0rth
fglock hmm - how to represent the environment when doing $closure.perl ? 12:09
agentzh fglock: js's version just prints the environmental variable referenced in the function body verbatim :) 12:11
12:13 cognominal_ joined
fglock agentzh: same with pugs 12:15
I'll use that 12:16
agentzh :)
12:19 chris2 joined 12:26 chris2 left, meppl left, BinGOs left, devogon left, perlbot left, cls_bsd left, kcwu left, charsbr left, rhr left, ting left, cj left, exp_evalbot left, cerridwen left, wilx left, jiing left, agentzh left, takanori2 left, pravus left, felipe left, szbalint left, Gothmog_ left, cognominal_ left, Southen left, r0bby left, stevan__ left, dalek left, xinming left, cognominal left, buubot left, thepler left, arguile left, audreyt left, jrockway left, iblechbot left, rff_ left, fglock left, IllvilJa left, elmex left, eric left, silug left, marmic left, lambdabot left, moritz_ left, rlb3_work left, ruz left, test left, Casan left, drbean left, qmole left, bilbo1507 left, liffey left, sunnavy left, vsmatck left, Maddingue left, clkao left, allbery_b left, QtPlatypus left, jql left, gugod left, franck___ left, c9s left, `nipra left, PerlJam left, melissa left, wolverian left, Juerd left, diotalevi left, yahooooo left, pjcj left, bloonix left, shachaf left, shmem left, Grrrr left, ofer left, daxim left, Patterner left, viklund left, araujo left, nipotaway left, fridim left, lisppaste3 left, rafl left, Caelum left, rfordinal left, lidden left, ajs left, kolibrie left, GeJ left, SubStack left, TimToady left, ruoso left, weinig left, f0rth left, drupek1225 left, zostay left, Tene left, ingy left, avar left, Daveman left, [particle] left, mykhal left, tcliou left, baest left, zamolxes left, buu left, pasteling left, TreyHarris left, diakopter left, nelhage left, hcchien left, mtve left, broquaint left, LCamel left, Khisanth left, Eidolos left, Jedai left, penk left, sclv left, sri__ left, lumi left, idiotmax_ left, awwaiid left, Azure-BOT left, dvorak left, SamB left, statico left, pnu left, obra left, nnunley_ left 12:28 JBoofy_ joined, chris2 joined, cognominal_ joined, iblechbot joined, Grrrr joined, rff_ joined, ingy joined, gugod joined, fglock joined, devogon joined, ruoso joined, BinGOs joined, IllvilJa joined, elmex joined, franck___ joined, Khisanth joined, Southen joined, c9s joined, ofer joined, weinig joined, Eidolos joined, eric joined, daxim joined, silug joined, marmic joined, avar joined, Daveman joined, perlbot joined, `nipra joined, lambdabot joined, Jedai joined, exp_evalbot joined, Patterner joined, f0rth joined, viklund joined, [particle] joined, penk joined, moritz_ joined, araujo joined, nipotaway joined, drupek1225 joined, r0bby joined, zostay joined, rlb3_work joined, ruz joined, mykhal joined, sclv joined, cls_bsd joined, PerlJam joined, melissa joined, fridim joined, sri__ joined, tcliou joined, lumi joined, idiotmax_ joined, baest joined, stevan__ joined, lisppaste3 joined, cerridwen joined, wilx joined, wolverian joined, Juerd joined, dalek joined, test joined, xinming joined, rafl joined, Casan joined, jiing joined, Caelum joined 12:29 diotalevi joined, awwaiid joined, yahooooo joined, Azure-BOT joined, agentzh joined, drbean joined, rfordinal joined, dvorak joined, zamolxes joined, pjcj joined, kcwu joined, buu joined, bilbo1507 joined, SamB joined, takanori2 joined, pravus joined, qmole joined, felipe joined, cognominal joined, buubot joined, lidden joined, thepler joined, Tene joined, bloonix joined, charsbr joined, pasteling joined, statico joined, cj joined, szbalint joined, rhr joined, meppl joined, ting joined, Gothmog_ joined, jql joined, clkao joined, liffey joined, allbery_b joined, Maddingue joined, QtPlatypus joined, vsmatck joined, sunnavy joined, jrockway joined, arguile joined, audreyt joined, shmem joined, shachaf joined, kolibrie joined, ajs joined, SubStack joined, GeJ joined, TimToady joined, nnunley_ joined, obra joined, pnu joined, mtve joined, TreyHarris joined, LCamel joined, hcchien joined, nelhage joined, broquaint joined, diakopter joined 12:30 integral left 12:31 integral joined 12:43 devogon left 12:44 cmarcelo joined, JBoofy left
pmurias fglock: everything else in Onion works 12:47
s/works/compiles/
fglock pmurias: I'll take a look later 12:48
is it in Onion/ ?
pmurias v6-Onion 12:49
fglock: have you checked in --noperltidy? 12:50
fglock looking
pmurias: it is in v6-KindaPerl6/script/kp6 12:53
and Makefile.PL
KP6_TARGET=KP6-BOOT perl Makefile.PL 12:54
pmurias fglock: found it 12:57
13:02 funktio joined
avar -C'perl5 -notidy' 13:28
.oO( option syntax )
fglock lunch & 13:35
13:53 xinming left 13:56 fglock left 13:57 TJCRI joined, torz_ joined 14:00 renormalist joined 14:04 luqui joined 14:28 kanru joined, amnesiac joined 14:31 rindolf joined 14:32 bighil_ joined 14:33 fglock joined 14:38 chris2 left, meppl left, BinGOs left, kanru left, ting left, rhr left, kcwu left, cls_bsd left, charsbr left, cj left, perlbot left, szbalint left, exp_evalbot left, agentzh left, wilx left, takanori2 left, Gothmog_ left, jiing left, pravus left, cerridwen left, felipe left, thepler left, stevan__ left, Southen left, cognominal left, arguile left, buubot left, audreyt left, jrockway left, cognominal_ left, dalek left, r0bby left, fglock left, amnesiac left, luqui left, TJCRI left, funktio left, qmole left, marmic left, bilbo1507 left, eric left, liffey left, sunnavy left, rlb3_work left, IllvilJa left, drbean left, Maddingue left, vsmatck left, QtPlatypus left, lambdabot left, rff_ left, allbery_b left, moritz_ left, Casan left, test left, ruz left, jql left, clkao left, elmex left, silug left, iblechbot left, renormalist left, bloonix left, diotalevi left, `nipra left, yahooooo left, wolverian left, PerlJam left, melissa left, Juerd left, franck___ left, shachaf left, pjcj left, JBoofy_ left, shmem left, c9s left, gugod left, bighil_ left, rindolf left, torz_ left, ajs left, kolibrie left, lidden left, Grrrr left, Patterner left, GeJ left, daxim left, fridim left, SubStack left, Caelum left, rafl left, TimToady left, ofer left, nipotaway left, viklund left, rfordinal left, lisppaste3 left, araujo left, drupek1225 left, weinig left, Tene left, f0rth left, zostay left, ruoso left, cmarcelo left, [particle] left, TreyHarris left, diakopter left, baest left, nelhage left, hcchien left, tcliou left, mtve left, buu left, broquaint left, LCamel left, zamolxes left, pasteling left, avar left, mykhal left, Daveman left, ingy left, pnu left, dvorak left, lumi left, sri__ left, Jedai left, sclv left, Khisanth left, idiotmax_ left, penk left, statico left, obra left, awwaiid left, Eidolos left, Azure-BOT left, SamB left, nnunley_ left 14:45 pmurias left 14:51 rgs left 16:09 ilogger2 joined 16:11 ruoso left
bbkr i wrote card 'war' game simulation (code at bbkr.org/~bbkr/card_war_game.pl) that shows some PERL6 features. do you think it's worth adding to examples? 16:20
[particle] sure! 16:21
avar bbkr: s/uniq operator/uniq method/ 16:22
bbkr ok 16:23
[particle] p5 question: can a block have multiple labels? 16:24
avar yes
[particle] what's the syntax? foo: bar: {...} ? 16:25
avar yes
blocks don't have labels, you can put them everywhere you put a statement
[particle] c:\usr\local\ack>perl -e"foo: bar: { 1 }"
syntax error at -e line 1, near "foo: bar:"
avar $ perl -wle 'loop: 1; loop_two: for (1..2) {}' 16:26
urgh
sh-3.1$ perl -wle 'loop: 1; loop_two: for (1..2) { last loop}'
Label not found for "last loop" at -e line 1.
sh-3.1$ perl -wle 'loop: 1; loop_two: for (1..2) { last loop_two }'
sh-3.1$
I'm wrong apperently
avar thinking in C
[particle] yeah, i'm used to c labelling too :( 16:27
funktio $ perl -le 'outer: { inner: for (1..2) { print } }'
[particle] i guess that's what i'll have to do. funktio++
avar loop: do {{ loop_two: for (1..2) { last loop } }} <= I think this works 16:28
funktio avar: Label not found for "last loop" at -e line 1. 16:29
[particle] yeah, do doesn't take labels
you can't use next or last inside do
16:29 justatheory joined 16:30 justatheory left
avar you can if you have a do with two brackets 16:30
do {{ last }} 16:31
funktio interesting 16:32
[particle] i guess then you'd need do { label: { last label } }
funktio yeah, it's last()ing the bare block, not do
16:34 fglock left 16:37 penk joined 16:51 franck___ left 16:53 justatheory joined 16:59 fridim joined 17:01 zostay joined 17:09 weinig joined 17:11 Psyche^ joined 17:14 justatheory left 17:18 [particle] joined 17:22 dlocaus joined 17:29 Psyche^ is now known as Patterner 17:42 r0bby joined 18:03 penk left 18:05 devogon left 18:06 funktio left, weinig_ joined 18:13 devogon joined 18:21 weinig left, weinig joined 18:31 Torment joined 18:38 justatheory joined 18:39 weinig_ left 18:41 jisom joined 18:44 DarkWolf84 joined 18:48 weinig_ joined 18:49 weinig left, weinig joined 18:53 luqui left 19:01 TJCRI left
dlocaus [particle]: ping 19:02
19:04 dlocaus left, weinig_ left 19:14 weinig left 19:16 TJCRI joined 19:35 bighil_ left 19:47 avar joined, thoughtpolice joined 20:06 avar left, avarab joined, rff_ left, jisom left 20:13 weinig joined 20:16 polettix joined 20:33 TJCRI left 20:34 TJCRI joined 20:58 BinGOs_ joined 20:59 [particle1 joined 21:05 Armagad joined 21:08 weinig left, weinig joined 21:09 [particle] left 21:16 BinGOs left 21:32 BinGOs_ left 21:34 BinGOs joined, chris2 left 21:44 BinGOs left, BinGOs joined 21:49 BinGOs left 21:50 TJCRI left, BinGOs joined 21:53 iblechbot left 21:56 BinGOs_ joined 21:57 Armagad left 21:59 BinGOs left 22:01 BinGOs_ left 22:06 BinGOs_ joined 22:14 BinGOs__ joined 22:15 BinGOs_ left 22:44 Limbic_Region joined 23:12 justatheory left 23:13 justatheory joined