Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2007-11-06

Perl 6 | Reference Documentation | Rakudo

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:18 weinig_ joined #perl6
00:27 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:33 justatheory joined #perl6
00:37 JBoofy joined #perl6
00:38 gugod_ joined #perl6
00:39 f0rth_ joined #perl6
00:39 awwaiid_ joined #perl6
00:40 JBoofy_ joined #perl6
00:40 ilogger2 joined #perl6
00:40 `nipra joined #perl6
00:40 audreyt joined #perl6
00:40 awwaiid joined #perl6
00:40 dvorak__ joined #perl6
00:40 perlbot joined #perl6
00:40 pnu joined #perl6
01:02 weinig joined #perl6
01:02 lyokato joined #perl6
01:11 weinig_ joined #perl6
01:18 weinig__ joined #perl6
01:33 integral joined #perl6
01:40 amnesiac joined #perl6
01:51 fglock left #perl6
01:57 justatheory joined #perl6
02:28 justatheory joined #perl6
02:30 justatheory joined #perl6
02:43 justatheory joined #perl6
03:05 weinig joined #perl6
03:23 stevan__ joined #perl6
03:31 stevan__ joined #perl6
04:10 spinclad_ joined #perl6
04:10 Juerd_ joined #perl6
04:10 f0rth joined #perl6
04:11 fridim joined #perl6
04:13 melissa joined #perl6
04:13 jiing joined #perl6
04:14 shachaf joined #perl6
04:14 PerlJam joined #perl6
04:15 f0rth_ joined #perl6
04:15 pravus joined #perl6
04:15 cls_bsd joined #perl6
04:15 wolverian joined #perl6
04:15 yahooooo joined #perl6
04:15 pravus joined #perl6
04:16 wolv joined #perl6
04:16 cls_bsd joined #perl6
04:23 wolverian joined #perl6
04:27 yahooooo joined #perl6
04:27 shmem joined #perl6
04:28 justatheory_ joined #perl6
04:30 yahooooo joined #perl6
04:36 nnunley joined #perl6
04:37 sri_ joined #perl6
04:37 statico2 joined #perl6
04:38 nelhage joined #perl6
04:38 melissa joined #perl6
04:38 hcchien joined #perl6
04:40 Eidolos joined #perl6
04:40 sri__ joined #perl6
04:40 SamB joined #perl6
04:40 statico joined #perl6
04:40 nnunley_ joined #perl6
04:40 Eidolos_ joined #perl6
04:43 PerlJam joined #perl6
04:48 ramza3 joined #perl6
04:48 lyokato joined #perl6
04:55 sri_ joined #perl6
04:55 yahooooo joined #perl6
04:55 shmem joined #perl6
04:59 shmem joined #perl6
05:03 dduncan joined #perl6
05:14 justatheory joined #perl6
05:38 bsb joined #perl6
05:49 Southen joined #perl6
05:51 _mjk_ joined #perl6
05:57 Ashizawa joined #perl6
06:01 Aankhen`` joined #perl6
06:05 weinig joined #perl6
06:18 BinGOs joined #perl6
06:29 jisom joined #perl6
06:35 masak joined #perl6
06:37 devogon joined #perl6
06:59 Psyche^ joined #perl6
07:03 pmurias joined #perl6
07:04 Psyche^_ joined #perl6
07:09 justatheory joined #perl6
07:47 iblechbot joined #perl6
07:50 elmex joined #perl6
07:57 drupek12 joined #perl6
08:05 tooo joined #perl6
08:07 diotalevi joined #perl6
08:12 Ashizawa joined #perl6
08:13 drrho joined #perl6
08:17 franck___ joined #perl6
08:19 baalial joined #perl6
08:22 syle2 joined #perl6
08:34 drupek12 joined #perl6
08:46 snearch joined #perl6
09:01 dalek joined #perl6
09:09 franck___ joined #perl6
09:14 chris2 joined #perl6
09:14 qmole_ joined #perl6
09:22 cognominal_ joined #perl6
09:29 JBoofy joined #perl6
09:38 jisom_ joined #perl6
09:45 masak joined #perl6
09:49 drbean joined #perl6
10:11 fglock joined #perl6
10:21 gongyiliao joined #perl6
10:41 pugs_svn r18798 | fglock++ | [kp6] TODO update
10:42 fglock joined #perl6
11:02 gongyiliao left #perl6
11:03 cognominal_ joined #perl6
11:04 dduncan left #perl6
11:15 bsb left #perl6
11:27 Gekz joined #perl6
11:49 ebassi joined #perl6
12:01 lyokato joined #perl6
12:01 iblechbot joined #perl6
12:25 lichtkind joined #perl6
12:26 pugs_svn r18799 | fglock++ | [kp6-perl5] initial impl of structure autovivification;
12:26 pugs_svn r18799 | fglock++ | - this still fails: my %x; (%x{1}){2};
12:31 cognominal_ joined #perl6
13:07 cmarcelo joined #perl6
13:09 c9s joined #perl6
13:22 Jedai joined #perl6
13:24 drbean left #perl6
13:34 Dunearhp_ joined #perl6
13:35 agentzh left #perl6
13:38 drbean joined #perl6
14:07 TJCRI joined #perl6
14:10 DarkWolf84 joined #perl6
14:39 pugs_svn r18800 | fglock++ | [kp6-perl5] added "HashContainer"
14:42 pugs_svn r18801 | fglock++ | [kp6-perl5] Hash.STORE is gone
14:44 rindolf joined #perl6
14:47 TJCRI joined #perl6
14:52 ebassi joined #perl6
15:13 iblechbot joined #perl6
15:13 rfordinal_ joined #perl6
15:20 dlocaus joined #perl6
15:27 dlocaus Good morning!
15:32 fglock dlocaus: hi!
15:33 moritz_ good localtime()
15:34 * moritz_ has one and a half hours to kill, but no possibilty to hack on perl 6 :(
15:36 dlocaus Write documentation! :)
15:36 dlocaus that's always good for killing time :)
15:38 dlocaus moritz_: "proto token xyz { };" is that legal perl6?  All by itself?
15:38 dlocaus kp6: proto token xyz { };
15:38 exp_evalbot r18801: OUTPUT[no method 'say' in Class 'Str'␤ at compiled/perl5-kp6-mp6/lib/Ki​ndaPerl6/Runtime/Perl5/MOP.pm line 334␤    KindaPerl6::Runtime::Perl5::MOP::__​ANON__('DISPATCH=HASH(0x874ecd4)', 'say') called at compiled/perl5-kp6-mp6/lib/Ki​ndaPerl6/Runtime/Perl5/MOP.pm line 162␤
15:38 exp_evalbot ..main::DISPATCH('DISPATCH=HASH(0x874ecd4)', 'say') called at - line 16␤]
15:40 fglock dlocaus: yes, it's legal
15:41 dlocaus fglock: is it supposed to be a Multi class? or a MultiToken Class?
15:42 cognominal_ joined #perl6
15:43 amnesiac joined #perl6
15:43 fglock it's a multi token
15:43 dlocaus ok, I've made that change on my own code, but it breaks
15:43 dlocaus on the empty braces { }
15:43 dlocaus if I put a "1;" in there it works, well it parses at least.
15:44 fglock how about { '' }
15:44 dlocaus I've checked the grammar for proto, but it says that it should be <.ws>
15:44 dlocaus checking
15:45 dlocaus kitty:~/volunteer/perl6/pugs/v6/v6-KindaPerl6> perl script/kp6 t/kp6/56-token-sym.t
15:45 dlocaus 1..1
15:45 dlocaus DISPATCH: calling APPLY DISPATCH=HASH(0x117b440) on invalid object:$VAR1 = {};
15:45 dlocaus at compiled/perl5-kp6-mp6/lib/Ki​ndaPerl6/Runtime/Perl5/MOP.pm line 121
15:45 dlocaus main::DISPATCH('undef', 'APPLY', 'DISPATCH=HASH(0x117b440)') called at - line 128
15:45 fglock 56-token-sym was broken by a recent refactoring
15:46 fglock not sure how it (doesn't) works
15:46 dlocaus What is the best way to go about testing this?
15:46 dlocaus or finding out how it broke?
15:47 fglock reverting to past versions works, but it is very tedious
15:48 dlocaus humm, sounds possibly better than trying to debug machine generated code :)
15:48 dlocaus I'll bang on this some more.
15:48 Psyche^ joined #perl6
15:50 fglock brb
15:53 pugs_svn r18802 | dlo++ | [kp6] grammar "proto token ..." is supposed to be a MultiToken.
15:53 pugs_svn r18802 | dlo++ |
15:53 pugs_svn r18802 | dlo++ | I have changed Sub.pm to produce a MultiToken class instead of a "Multi".  This produced another
15:53 pugs_svn r18802 | dlo++ | bug in which "proto token xyz { };" did not parse properly.  Test case 56-proto-sym.t displays the bug.
15:53 pugs_svn r18802 | dlo++ |
15:53 pugs_svn r18802 | dlo++ | reference:
15:53 pugs_svn r18802 | dlo++ | http://irclog.perlgeek.de/​perl6/2007-11-06#i_138735
15:53 lambdabot Title: IRC log for #perl6, 2007-11-06
15:53 f0rth joined #perl6
15:56 Timm3h joined #perl6
15:57 weinig joined #perl6
15:58 ramza3_ joined #perl6
15:59 f0rth joined #perl6
16:04 f0rth joined #perl6
16:13 dlocaus does anyone know what this code does?
16:13 dlocaus do { [] }; #  <= this line.
16:13 dlocaus do {
16:13 dlocaus main::say('*** Syntax Error in Block: missing closing curly bracket } ');
16:13 dlocaus die('error in Block')
16:13 dlocaus };
16:14 fglock dlocaus: it looks like an "empty signature" emitted by MiniPerl6
16:14 dlocaus ah, so it doesn't actually do anything?
16:14 fglock empty parameter binding
16:14 dlocaus ok, ty
16:16 drupek12 joined #perl6
16:24 barney joined #perl6
16:29 pmurias joined #perl6
16:29 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:30 pmurias dlocaus: MultiToken should be only used for 'proto token {}'
16:31 dlocaus Yes.
16:31 dlocaus Isn't that what I did?
16:32 dlocaus I've traced the compilation problem to compiled/perl5-kp6-mp6/lib/Kin​daPerl6/Runtime/Perl5/Pad.pm:    my $source = $data->{_dispatch}( $data, 'perl' )->{_value};
16:32 dlocaus $source returns { ... } instead of "{ }"
16:33 pmurias begin_block compiles and runs the ast at compile time
16:34 pmurias is ... a compile error in kp6?
16:35 dlocaus I think so
16:36 Silence joined #perl6
16:36 pmurias you can fix it ;)
16:36 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
16:37 pmurias itself
16:37 pmurias commenting begin_block out is the best option untill it does
16:38 dlocaus pmurias: I'm sorry, I don't get what you are saying?
16:39 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:41 justatheory joined #perl6
16:41 pmurias multis won't exist at compile time
16:42 dlocaus ah ha!
16:43 dlocaus http://dev.pugscode.org/browser/v6/v6-KindaPe​rl6/src/KindaPerl6/Runtime/Perl5/MOP.pm#L1451
16:43 dlocaus There's the bug
16:43 lambdabot http://tinyurl.com/24j5wb
16:43 dlocaus ::Code->perl() returns  "{ ... }", but the grammar spec requires "'{' <.opt_ws> '}'".
16:43 fglock it's not a bug - it's a TODO
16:44 pmurias dlocaus: the bug in Multi.pm
16:44 pmurias kp6 should handle ...
16:45 * dlocaus looks lost
16:45 pmurias dlocaus: sorry the ofenting .perl is in MOP
16:46 pmurias dlocaus: "..." is valid perl6
16:46 pmurias pugs: ...
16:46 exp_evalbot OUTPUT[*** Cannot use this control structure outside a 'routine' structure␤    at /tmp/fEyKiVbDzw line 1, column 1 - line 2, column 1␤]
16:46 pmurias pugs: sub a {...}; a()
16:46 exp_evalbot OUTPUT[*** Unimplemented stub called␤    at /tmp/JFGbraT6h4 line 1, column 23-27␤       /tmp/JFGbraT6h4 line 1, column 17-20␤]
16:47 dlocaus I thought "..." was valid perl6 for "Unknown, code that will be replaced later"
16:47 dlocaus the perl6 grammar spec, called for optional white space.
16:47 Notrix joined #perl6
16:48 pmurias dlocaus: yes
16:49 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()
16:49 dlocaus so, "<.opt_ws>" should also handle "..."
16:49 pmurias dlocaus: no
16:50 jjore-w joined #perl6
16:50 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> '}'
16:50 pmurias that's STD
16:50 pmurias it wouldn't help at all
16:51 pmurias dlocaus: you mean in token proto
16:51 dlocaus pmurias: yes.
16:51 pmurias dlocaus: token proto parses ok
16:51 dlocaus no.
16:51 pmurias it calls begin_block($ast)
16:52 pmurias dlocaus: yes
16:52 dlocaus That is what started me on this.
16:52 pmurias the ast is then executed
16:52 IllvilJa joined #perl6
16:52 pmurias the side effects are serilised as perl6 and turned into ast
16:53 pmurias the were serilised by calling .perl which returned invalid perl6 code
16:53 orevdiabl joined #perl6
16:54 pmurias fglock: please check if i'm correct
16:54 pugs_svn r18805 | fglock++ | [kp6] a simple impl of '...'
16:54 dlocaus humm, that didn't invoke the bug
16:55 pmurias dlocaus: i fixed it and it disapeared
16:56 pmurias the result of begin_block is then ignored as far as i know
16:58 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:58 dlocaus :)
16:59 dlocaus t/kp6/36-multi.t breaks
17:00 dlocaus proto my_multi {};
17:00 dlocaus &my_multi.long_names = [
17:03 dlocaus Well, in some manner or anther, I've caused 56-token-sym.t to be closed out :)
17:03 dlocaus On my plate I have the following>
17:03 Tene kp6: ...
17:03 dlocaus 1. Get the AST to do the following perl6 -> kp6 -> perl6
17:03 dlocaus 2. Write documentation to explain the big picture of kp6.
17:03 pmurias Tene: you scared of exp_evalbot
17:04 Tene I did.
17:04 pmurias ;)
17:04 * Tene looks around.
17:04 * Tene rawrs at dalek.
17:06 drrho joined #perl6
17:09 pmurias dlocaus: Multi should be used for proto my_multi {}
17:09 fglock kp6: say 123
17:09 Tene fglock: no exp_evalbot
17:09 fglock Tene: say 123
17:10 Tene ENOACCESS
17:10 fglock hmm - a bug
17:14 dlocaus pmurias: but fglock said MultiToken should be used for proto namespace {}
17:15 dlocaus pmurias: http://irclog.perlgeek.de/​perl6/2007-11-06#i_138732
17:15 lambdabot Title: IRC log for #perl6, 2007-11-06
17:15 dlocaus well, not proto namespace, but for proto..
17:16 pmurias only for proto token my_multitoken {}
17:17 dlocaus pmurias: oh hurm..
17:17 dlocaus oh hurmm.. I have to vote today... :).. Ducks pmurias... I'll be back in a while :)
17:18 fglock pugs: say ` perl script/kp6 --do Namespace -Bperl5 <<< ' ... ' `
17:21 pmurias physics&
17:22 fglock hmm - psychics
17:23 marmic joined #perl6
17:27 cognominal_ joined #perl6
17:27 blindfish joined #perl6
17:33 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 dlocaus ;)
17:33 avar fglock: !!! is die
17:34 fglock avar: fix it !!!
17:34 avar !!!
17:34 avar what should ... use as a noop?
17:34 dlocaus brb, gotta vote now.
17:34 fglock is it a noop?
17:35 avar I think so, not sure though
17:35 avar !!! = die, ??? = warn, ... = noop iirc
17:35 moritz_ .oO( is voting a noop? )
17:36 fglock '...' is a noop in google
17:36 moritz_ sub foo { ... } is a prototype
17:37 moritz_ the 'yadayadayada' op
17:37 moritz_ so it has a semantic
17:37 jjore-w joined #perl6
17:39 luqui joined #perl6
17:39 fglock S03 says it complains bitterly
17:43 Timm3h joined #perl6
17:50 szbalint joined #perl6
17:50 felipe joined #perl6
17:50 cerridwen joined #perl6
17:50 tcliou joined #perl6
17:50 Gothmog_ joined #perl6
17:50 buu joined #perl6
17:50 baest joined #perl6
17:50 zostay joined #perl6
17:50 Khisanth joined #perl6
17:50 takanori joined #perl6
17:50 stevan__ joined #perl6
17:50 DarkWolf84 joined #perl6
17:50 funktio joined #perl6
17:50 BinGOs joined #perl6
17:50 jdv79 joined #perl6
17:50 meppl joined #perl6
17:50 yves joined #perl6
17:50 rhr joined #perl6
17:50 cj joined #perl6
17:50 TJCRI joined #perl6
18:07 weinig joined #perl6
18:17 Psyche^ joined #perl6
18:22 drupek12 joined #perl6
18:30 dlocaus back
18:30 BinGOs_ joined #perl6
18:37 jisom joined #perl6
18:49 devogon joined #perl6
19:15 funktio joined #perl6
19:30 jhorwitz joined #perl6
19:42 TJCRI joined #perl6
19:42 dlocaus moritz_: all perl6 files beginning with "use v6-alpha;"  have to be compiled with mp6 right?
19:42 moritz_ dlocaus: no
19:42 moritz_ dlocaus: it's just a flag that says it's not perl 5
19:43 dlocaus ok
19:43 jisom joined #perl6
19:44 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?
19:44 dlocaus 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"
19:46 dlocaus and eval "$perl_code_here"?
19:46 drupek12 joined #perl6
19:46 moritz_ if called in p6, it evals p6
19:46 moritz_ if called from p5, it evals p5
19:47 moritz_ 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 dlocaus if you only have the parrot interperter you cannot compile.
19:48 moritz_ of course
19:48 dlocaus hurmm... ok
19:48 moritz_ that's why you have to compile the whole compiler into PIR if you want to distribute it separately
19:48 * dlocaus thinks the parrot people really have their work cut out for them.
20:32 dlocaus left #perl6
20:32 dlocaus joined #perl6
20:32 dlocaus other work to do - cya tomorrow &
20:32 dlocaus left #perl6
20:43 justatheory joined #perl6
20:53 pmurias joined #perl6
20:59 the_dormant joined #perl6
21:05 cognominal_ joined #perl6
21:25 polettix joined #perl6
21:50 justatheory joined #perl6
21:58 exp_evalbot joined #perl6
22:11 cognominal_ joined #perl6
22:18 justatheory_ joined #perl6
22:22 xinming_ joined #perl6
22:24 Jedai joined #perl6
22:43 polettix joined #perl6
22:45 drupek12 joined #perl6
22:47 BinGOs joined #perl6
22:57 luqui joined #perl6
23:00 ft joined #perl6
23:08 justatheory joined #perl6
23:48 ludan joined #perl6
23:59 justatheory_ joined #perl6

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

Perl 6 | Reference Documentation | Rakudo