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 dlocaus left 00:18 weinig_ joined
fglock back in #perl6 - I was away in Spain for a few days 00:27
lambdabot fglock: You have 2 new messages. '/msg lambdabot @messages' to read them. 00:28
00:31 weinig left 00:33 justatheory left, justatheory joined 00:39 justatheory left, Patterner left, ruoso left, weinig_ left, Limbic_Region left 00:40 thepler left, cognominal left, arguile left, SamB left, statico left, sri__ left, nnunley_ left, nelhage left, Eidolos left, bbkr left, araujo left, ajs left, TimToady left, GeJ left, lidden left, Grrrr left, ofer left, nipotaway left, Caelum left, SubStack left, thoughtpolice left, spinclad left, PerlJam left, fglock left, takanori left, IllvilJa left, pjcj left, ggoebel left, diakopter left, LCamel_ left, drupek1253 left, zamolxes left, mtve left, pasteling left 00:41 awwaiid_ joined, f0rth_ joined, gugod_ joined, JBoofy joined, justatheory joined, weinig_ joined, fglock joined, Limbic_Region joined, bbkr joined, drupek1253 joined, pjcj joined, thoughtpolice joined, takanori joined, ggoebel joined, araujo joined, Patterner joined, zamolxes joined, IllvilJa joined, diakopter joined, ruoso joined, Torment joined, Gekz joined, jiing joined, ting joined, rfordinal joined, diotalevi joined, kane_ joined, Lunchy joined, Khisanth joined, lisppaste3 joined, agentzh joined, KidShenck_ joined, lambdabot joined, mncharity joined, Daveman joined, halephone__ joined, bloonix joined, drbean joined, cookys joined, toshinor_ joined, kcwu joined, pravus joined, fridim joined, marmic joined, stevan_ joined, idiotmax joined, jdv79 joined, revdiablo joined, zostay joined, buubot joined, TreyHarris joined, baest joined, dalek joined, obra joined, charsbar joined, funktio joined, avar joined, xinming joined, cls_bsd joined, silug joined, meppl joined, ingy joined, jrockway joined, qmole joined, Casan joined, lucs joined, nothingmuch joined, kolibrie joined, r0bby joined, buu joined, Gothmog_ joined, rgs joined, broquain1 joined, pugs_svn joined, integral joined, ft joined, hcchien joined, Tene joined, cj joined, szbalint joined, rhr joined, felipe joined, cerridwen joined, exp_evalbot joined, yves joined, tcliou joined, jql joined, clkao joined, liffey joined, allbery_b joined, Maddingue joined, QtPlatypus joined, sunnavy joined, test joined, ruz joined, moritz_ joined, shmem joined, shachaf joined, yahooooo joined, Juerd joined, wolverian joined, melissa joined, PerlJam joined, spinclad joined, arguile joined, thepler joined, cognominal joined, nnunley_ joined, statico joined, SamB joined, sri__ joined, Eidolos joined, nelhage joined, LCamel_ joined, ajs joined, SubStack joined, TimToady joined, GeJ joined, lidden joined, Caelum joined, nipotaway joined, Grrrr joined, ofer joined, pasteling joined, mtve joined 00:54 JBoofy_ left 00:58 weinig_ left 01:02 weinig joined, lyokato joined 01:11 weinig_ joined 01:18 weinig__ joined 01:19 weinig left 01:33 integral left, integral joined 01:35 weinig_ left 01:36 awwaiid_ is now known as awwaiid 01:40 amnesiac joined 01:43 Limbic_Region left 01:51 fglock left 01:56 justatheory left 01:57 justatheory joined, mncharity left 02:01 justatheory left 02:10 weinig__ left 02:28 justatheory joined 02:29 justatheory left 02:30 justatheory joined 02:43 justatheory left, justatheory joined 03:05 weinig joined 03:23 stevan__ joined 03:30 stevan__ left 03:31 stevan__ joined 03:39 stevan_ left 04:10 spinclad_ joined, Juerd_ joined, f0rth joined, yahooooo left, spinclad left, PerlJam left, Juerd left, shmem left, jiing left, f0rth_ left, melissa left, wolverian left, cls_bsd left, fridim left, shachaf left, pravus left 04:11 fridim joined 04:13 melissa joined 04:14 jiing joined, shachaf joined, PerlJam joined 04:15 f0rth_ joined, pravus joined, cls_bsd joined, wolverian joined, yahooooo joined, pravus left, pravus joined 04:16 cls_bsd left, wolv joined, f0rth_ left, cls_bsd joined, wolverian left, wolv is now known as wolverian 04:21 wolverian left, yahooooo left 04:24 wolverian joined 04:27 yahooooo joined, shmem joined 04:28 yahooooo left, justatheory_ joined, justatheory left 04:30 yahooooo joined 04:33 lyokato left 04:34 drbean left 04:36 nnunley joined 04:37 sri_ joined, statico2 joined, PerlJam left, melissa left, sri__ left, hcchien left, statico left, obra left, SamB left, nelhage left, Eidolos left, nnunley_ left 04:38 nelhage joined, melissa joined, hcchien joined 04:40 Eidolos joined, sri__ joined, SamB joined, statico joined, nnunley_ joined, Eidolos_ joined 04:41 Eidolos left, sri__ left, nnunley_ left, statico left 04:43 PerlJam joined 04:48 ramza3 joined, lyokato joined 04:51 sri_ left, yahooooo left, shmem left 04:55 sri_ joined, yahooooo joined, shmem joined 04:56 shmem left 04:59 shmem joined 05:03 dduncan joined 05:14 justatheory_ left, justatheory joined 05:19 spinclad_ is now known as spinclad 05:30 weinig left 05:38 bsb joined 05:49 Southen joined 05:51 _mjk_ joined 05:57 Ashizawa joined 06:01 Aankhen`` joined 06:06 weinig joined 06:18 BinGOs joined 06:29 jisom joined 06:35 masak joined 06:36 justatheory left 06:37 devogon joined 06:59 Psyche^ joined 07:03 pmurias joined 07:04 _mjk_ left, Psyche^_ joined 07:09 justatheory joined 07:16 Patterner left, Psyche^_ is now known as Patterner 07:18 weinig left 07:19 pmurias left 07:21 Psyche^ left 07:24 diotalevi left 07:34 justatheory left 07:35 Ashizawa left 07:47 iblechbot joined, drupek1253 left 07:50 elmex joined 07:57 drupek12 joined 08:05 tooo joined 08:07 diotalevi joined 08:12 Ashizawa joined 08:13 drrho joined 08:15 drupek12 left 08:17 franck___ joined 08:19 baalial joined 08:22 syle2 joined 08:24 lucs left 08:29 amnesiac left 08:34 drupek12 joined 08:47 snearch joined 08:59 dalek left 09:01 dalek joined, snearch left 09:07 franck___ left 09:09 franck___ joined, masak left 09:14 chris2 joined, qmole_ joined 09:18 qmole left 09:22 cognominal_ joined 09:29 JBoofy left, JBoofy joined 09:38 jisom_ joined 09:44 jisom_ left 09:45 masak joined 09:49 drbean joined 09:55 jisom left 10:11 fglock joined 10:12 lyokato left 10:21 gongyiliao joined
pugs_svn r18798 | fglock++ | [kp6] TODO update 10:41
10:41 fglock left 10:42 fglock joined 10:57 iblechbot left 10:58 baalial left 11:02 cognominal_ left, gongyiliao left 11:03 cognominal_ joined 11:04 dduncan left 11:07 Ashizawa left 11:12 Gekz left 11:15 bsb left 11:22 cognominal_ left 11:27 Gekz joined 11:49 ebassi joined 12:01 lyokato joined 12:02 iblechbot joined 12:25 lichtkind joined
pugs_svn r18799 | fglock++ | [kp6-perl5] initial impl of structure autovivification; 12:26
r18799 | fglock++ | - this still fails: my %x; (%x{1}){2};
12:28 chris2 left 12:31 cognominal_ joined 12:43 drupek12 left 13:02 cognominal_ left 13:07 cmarcelo joined 13:09 c9s joined, ebassi is now known as ebassi|lunch 13:22 Jedai joined 13:24 drbean left 13:34 Dunearhp_ joined 13:35 halephone__ left, agentzh left 13:37 ebassi|lunch is now known as ebassi 13:38 drbean joined 13:39 Torment left 13:47 iblechbot left 13:50 lyokato left 14:07 TJCRI joined 14:10 DarkWolf84 joined
pugs_svn r18800 | fglock++ | [kp6-perl5] added "HashContainer" 14:39
r18801 | fglock++ | [kp6-perl5] Hash.STORE is gone 14:43
14:44 rindolf joined 14:45 TJCRI left 14:47 TJCRI joined 14:51 ebassi left 14:52 ebassi joined, drrho left 15:08 arguile left 15:13 iblechbot joined, rfordinal_ joined 15:20 dlocaus joined
dlocaus Good morning! 15:27
15:29 rfordinal left
fglock dlocaus: hi! 15:32
moritz_ good localtime() 15:33
moritz_ has one and a half hours to kill, but no possibilty to hack on perl 6 :( 15:34
dlocaus Write documentation! :) 15:36
that's always good for killing time :)
moritz_: "proto token xyz { };" is that legal perl6? All by itself? 15:38
kp6: proto token xyz { };
exp_evalbot r18801: OUTPUT[no method 'say' in Class 'Str'ā¤ at compiled/perl5-kp6-mp6/lib/KindaPerl6/Runtime/Perl5/MOP.pm line 334ā¤ KindaPerl6::Runtime::Perl5::MOP::__ANON__('DISPATCH=HASH(0x874ecd4)', 'say') called at compiled/perl5-kp6-mp6/lib/KindaPerl6/Runtime/Perl5/MOP.pm line 162ā¤
..main::DISPATCH('DISPATCH=HASH(0x874ecd4)', 'say') called at - line 16ā¤]
fglock dlocaus: yes, it's legal 15:40
dlocaus fglock: is it supposed to be a Multi class? or a MultiToken Class? 15:41
15:42 cognominal_ joined 15:43 amnesiac joined
fglock it's a multi token 15:43
dlocaus ok, I've made that change on my own code, but it breaks
on the empty braces { }
if I put a "1;" in there it works, well it parses at least.
fglock how about { '' } 15:44
dlocaus I've checked the grammar for proto, but it says that it should be <.ws>
checking
kitty:~/volunteer/perl6/pugs/v6/v6-KindaPerl6> perl script/kp6 t/kp6/56-token-sym.t 15:45
1..1
DISPATCH: calling APPLY DISPATCH=HASH(0x117b440) on invalid object:$VAR1 = {};
at compiled/perl5-kp6-mp6/lib/KindaPerl6/Runtime/Perl5/MOP.pm line 121
main::DISPATCH('undef', 'APPLY', 'DISPATCH=HASH(0x117b440)') called at - line 128
fglock 56-token-sym was broken by a recent refactoring
not sure how it (doesn't) works 15:46
dlocaus What is the best way to go about testing this?
or finding out how it broke?
15:46 zamolxes left
fglock reverting to past versions works, but it is very tedious 15:47
dlocaus humm, sounds possibly better than trying to debug machine generated code :) 15:48
I'll bang on this some more.
15:48 Psyche^ joined 15:49 toshinor_ left
fglock brb 15:50
pugs_svn r18802 | dlo++ | [kp6] grammar "proto token ..." is supposed to be a MultiToken. 15:53
r18802 | dlo++ |
r18802 | dlo++ | I have changed Sub.pm to produce a MultiToken class instead of a "Multi". This produced another
r18802 | dlo++ | bug in which "proto token xyz { };" did not parse properly. Test case 56-proto-sym.t displays the bug.
r18802 | dlo++ |
15:53 f0rth left
pugs_svn r18802 | dlo++ | reference: 15:53
r18802 | dlo++ | irclog.perlgeek.de/perl6/2007-11-06#i_138735
lambdabot Title: IRC log for #perl6, 2007-11-06
15:53 f0rth joined 15:54 f0rth left 15:56 Timm3h joined 15:58 weinig joined, ramza3_ joined 15:59 f0rth joined 16:03 f0rth left 16:04 f0rth joined 16:06 Patterner left, Psyche^ is now known as Patterner
dlocaus does anyone know what this code does? 16:13
do { [] }; # <= this line.
do {
main::say('*** Syntax Error in Block: missing closing curly bracket } ');
die('error in Block')
};
fglock dlocaus: it looks like an "empty signature" emitted by MiniPerl6 16:14
dlocaus ah, so it doesn't actually do anything?
fglock empty parameter binding
dlocaus ok, ty
16:16 drupek12 joined 16:24 barney joined 16:25 masak left 16:29 pmurias joined
pugs_svn r18803 | pmurias++ | [kp6] commented out COMPILER::begin_block() in proto - it might be better to solve the runtime issues before the compile time 16:29
pmurias dlocaus: MultiToken should be only used for 'proto token {}' 16:30
dlocaus Yes. 16:31
Isn't that what I did?
I've traced the compilation problem to compiled/perl5-kp6-mp6/lib/KindaPerl6/Runtime/Perl5/Pad.pm: my $source = $data->{_dispatch}( $data, 'perl' )->{_value}; 16:32
$source returns { ... } instead of "{ }"
pmurias begin_block compiles and runs the ast at compile time 16:33
is ... a compile error in kp6? 16:34
dlocaus I think so 16:35
16:36 Silence joined
pmurias you can fix it ;) 16:36
16:36 IllvilJa left
dlocaus the compiled/perl5-kp6-mp6/lib/KindaPerl6/Grammar/Sub.pm file code expects "{}" not "{ ... }" as produced by compiled/.../Pad.pm 16:36
pmurias Multi.perl would have to serialise it correctly
itself 16:37
commenting begin_block out is the best option untill it does
dlocaus pmurias: I'm sorry, I don't get what you are saying? 16:38
fglock buggy code is easy to find - commenting out code creates hard to find bugs 16:39
pmurias fglock: it's just removing functionality 16:40
16:41 justatheory joined
pmurias multis won't exist at compile time 16:41
16:41 weinig left
dlocaus ah ha! 16:42
dev.pugscode.org/browser/v6/v6-Kind...P.pm#L1451 16:43
There's the bug
lambdabot tinyurl.com/24j5wb
dlocaus ::Code->perl() returns "{ ... }", but the grammar spec requires "'{' <.opt_ws> '}'".
fglock it's not a bug - it's a TODO
pmurias dlocaus: the bug in Multi.pm 16:44
kp6 should handle ...
dlocaus looks lost 16:46
pmurias dlocaus: sorry the ofenting .perl is in MOP
dlocaus: "..." is valid perl6
pugs: ...
exp_evalbot OUTPUT[*** Cannot use this control structure outside a 'routine' structureā¤ at /tmp/fEyKiVbDzw line 1, column 1 - line 2, column 1ā¤]
pmurias pugs: sub a {...}; a()
exp_evalbot OUTPUT[*** Unimplemented stub calledā¤ at /tmp/JFGbraT6h4 line 1, column 23-27ā¤ /tmp/JFGbraT6h4 line 1, column 17-20ā¤]
dlocaus I thought "..." was valid perl6 for "Unknown, code that will be replaced later" 16:47
16:47 Timm3h left
dlocaus the perl6 grammar spec, called for optional white space. 16:47
16:47 Notrix joined
pmurias dlocaus: yes 16:48
pugs_svn r18804 | pmurias++ | [kp6] uncommented the line fglock requested, Multi and MultiToken exist at compile time but are empty 16:49
pmurias the syntax error happened in begin_block()
dlocaus so, "<.opt_ws>" should also handle "..."
pmurias dlocaus: no
16:50 jjore-w joined
pmurias the grammar used by kp6 isn't the offical perl6 grammar 16:50
dlocaus The only other option is to replace the '{' <.opt_ws> '}' with '{' <.opt_ws_or_code> '}'
pmurias that's STD
it wouldn't help at all
dlocaus: you mean in token proto 16:51
dlocaus pmurias: yes.
pmurias dlocaus: token proto parses ok
dlocaus no.
pmurias it calls begin_block($ast)
dlocaus: yes 16:52
dlocaus That is what started me on this.
pmurias the ast is then executed
16:52 IllvilJa joined
pmurias the side effects are serilised as perl6 and turned into ast 16:53
the were serilised by calling .perl which returned invalid perl6 code
16:53 orevdiabl joined
pmurias fglock: please check if i'm correct 16:54
pugs_svn r18805 | fglock++ | [kp6] a simple impl of '...'
dlocaus humm, that didn't invoke the bug
pmurias dlocaus: i fixed it and it disapeared 16:55
the result of begin_block is then ignored as far as i know 16:56
16:58 revdiablo left
fglock t/kp6/56-token-sym.t now gives "UndefinedHashItem" messages, which is the thing I'm working now 16:58
dlocaus running tests.
:) 16:59
t/kp6/36-multi.t breaks 17:00
proto my_multi {};
&my_multi.long_names = [
Well, in some manner or anther, I've caused 56-token-sym.t to be closed out :) 17:03
On my plate I have the following>
Tene kp6: ...
17:03 exp_evalbot left
dlocaus 1. Get the AST to do the following perl6 -> kp6 -> perl6 17:03
2. Write documentation to explain the big picture of kp6.
pmurias Tene: you scared of exp_evalbot
Tene I did. 17:04
pmurias ;)
Tene looks around.
17:04 rindolf left
Tene rawrs at dalek. 17:05
17:06 drrho joined
pmurias dlocaus: Multi should be used for proto my_multi {} 17:09
fglock kp6: say 123
Tene fglock: no exp_evalbot
fglock Tene: say 123
Tene ENOACCESS 17:10
fglock hmm - a bug
dlocaus pmurias: but fglock said MultiToken should be used for proto namespace {} 17:14
pmurias: irclog.perlgeek.de/perl6/2007-11-06#i_138732 17:15
lambdabot Title: IRC log for #perl6, 2007-11-06
17:15 cognominal_ left
dlocaus well, not proto namespace, but for proto.. 17:15
pmurias only for proto token my_multitoken {} 17:16
dlocaus pmurias: oh hurm.. 17:17
oh hurmm.. I have to vote today... :).. Ducks pmurias... I'll be back in a while :)
fglock pugs: say ` perl script/kp6 --do Namespace -Bperl5 <<< ' ... ' ` 17:18
17:20 marmic left
pmurias physics& 17:21
17:21 pmurias left
fglock hmm - psychics 17:22
17:23 marmic joined 17:27 cognominal_ joined, blindfish joined
dlocaus Humm, a programmer commenting on physics being psychics, when at the ever increasing complexity of our computer systems, we actually claim to know what's going on in our computer. 17:33
;)
avar fglock: !!! is die
fglock avar: fix it !!! 17:34
avar !!!
what should ... use as a noop?
dlocaus brb, gotta vote now.
fglock is it a noop?
avar I think so, not sure though 17:35
!!! = die, ??? = warn, ... = noop iirc
moritz_
.oO( is voting a noop? )
17:36 jjore-w left
fglock '...' is a noop in google 17:36
moritz_ sub foo { ... } is a prototype
the 'yadayadayada' op 17:37
so it has a semantic
17:37 jjore-w joined 17:39 luqui joined
fglock S03 says it complains bitterly 17:39
17:41 franck___ left 17:43 Silence left, Timm3h joined 17:45 ramza3_ left 17:49 funktio left, meppl left, BinGOs left, rhr left, jdv79 left, yves left, cj left, DarkWolf84 left, stevan__ left, baest left, Khisanth left, tcliou left, takanori left, buu left, szbalint left, cerridwen left, felipe left, Gothmog_ left, zostay left, TJCRI left 17:50 szbalint joined, felipe joined, cerridwen joined, tcliou joined, Gothmog_ joined, buu joined, baest joined, zostay joined, Khisanth joined, takanori joined, stevan__ joined, DarkWolf84 joined, funktio joined, BinGOs joined, jdv79 joined, meppl joined, yves joined, rhr joined, cj joined, TJCRI joined 17:52 tooo left 18:07 weinig joined 18:10 drupek12 left 18:17 Psyche^ joined 18:22 drupek12 joined 18:29 Patterner left, Psyche^ is now known as Patterner, DarkWolf84 left
dlocaus back 18:30
18:30 ebassi left, BinGOs_ joined 18:31 BinGOs left, BinGOs_ is now known as BinGOs 18:33 Timm3h left 18:35 drrho left 18:37 jisom joined 18:48 devogon left 18:49 devogon joined 19:02 drupek12 left 19:04 cognominal_ left 19:08 TJCRI left 19:15 funktio left, funktio joined 19:30 jhorwitz joined 19:40 jisom left 19:42 TJCRI joined
dlocaus moritz_: all perl6 files beginning with "use v6-alpha;" have to be compiled with mp6 right? 19:42
moritz_ dlocaus: no
dlocaus: it's just a flag that says it's not perl 5 19:43
dlocaus ok
19:43 jisom joined
moritz_ because a perl 6 compiler has to assume perl 5 syntax on any file it reads, unless it encounters a 'use v6;', a 'module ...' or a 'class ...' statement 19:44
dlocaus wasn't that up for debate?
weather or not to allow the perl6 compiler to parse perl5? 19:45
moritz_ well, maybe. But the current specs says "perl5 until told otherwise"
dlocaus and eval "$perl_code_here"? 19:46
19:46 drupek12 joined
moritz_ if called in p6, it evals p6 19:46
if called from p5, it evals p5
if called from python... guess what ;) 19:47
dlocaus I mean, if you eval " .. code .. " you have to have the compiler too to compile what ever is in that string. 19:48
if you only have the parrot interperter you cannot compile.
moritz_ of course
dlocaus hurmm... ok
moritz_ that's why you have to compile the whole compiler into PIR if you want to distribute it separately
dlocaus thinks the parrot people really have their work cut out for them.
19:56 amnesiac left 19:58 fglock left 20:05 blindfish left 20:07 KidShenck_ left 20:22 justatheory left 20:29 drupek12 left 20:32 dlocaus left, dlocaus joined
dlocaus other work to do - cya tomorrow & 20:32
20:32 dlocaus left, jisom left 20:43 justatheory joined 20:48 barney left 20:52 Aankhen`` left 20:53 pmurias joined 20:59 the_dormant joined 21:02 TJCRI left 21:05 cognominal_ joined 21:25 polettix joined 21:44 cognominal_ left 21:50 justatheory left, justatheory joined 21:54 luqui left 21:58 exp_evalbot joined 22:07 elmex left 22:11 the_dormant left, cognominal_ joined 22:18 justatheory_ joined, Eidolos_ is now known as Eidolos, Jedai left 22:22 xinming_ joined 22:24 Jedai joined 22:28 lichtkind left 22:30 justatheory left 22:39 polettix left 22:40 xinming left 22:42 pmurias left 22:43 polettix joined 22:45 drupek12 joined, BinGOs left 22:48 BinGOs joined, cognominal_ left 22:57 luqui joined 23:00 ft left, ft joined 23:08 justatheory joined 23:09 justatheory_ left 23:11 jhorwitz left 23:48 ludan joined 23:59 justatheory_ joined, justatheory left