Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2007-11-02

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:13 pugs_svn r18769 | dlo++ | [kp6] pmurias / fglock; I attempted to solve the bug in
00:13 pugs_svn r18769 | dlo++ | compiled/perl5-kp6-mp6/lib/KindaPerl6/Visitor/Emit/Perl5.pm
00:13 pugs_svn r18769 | dlo++ |
00:13 pugs_svn r18769 | dlo++ | Please see the comment included directly in this code ( see http://dev/pugscode.org/changeset/18769 )
00:13 pugs_svn r18769 | dlo++ |
00:13 pugs_svn r18769 | dlo++ | I wasn't able to solve the bug, but I have put debugging code to catch the error and attempt to highlight it for you guys.  I didn't write this code
00:14 pugs_svn r18769 | dlo++ | into src/KindaPerl6/Visitor/Emit/Perl5.pm.
00:14 dlocaus @tell pmurias http://dev.pugscode.org/changeset/18769
00:14 lambdabot Consider it noted.
00:14 dlocaus @tell fglock http://dev.pugscode.org/changeset/18769
00:14 lambdabot Consider it noted.
00:15 dlocaus left #perl6
00:35 pjcj joined #perl6
01:06 devogon joined #perl6
01:10 KidShenck_ joined #perl6
01:13 FreshCat joined #perl6
02:08 meppl good night
02:18 obra left #perl6
02:18 obra joined #perl6
02:28 agentzh good morning :)
02:28 obra nihao
02:29 agentzh nihao, obra :)
02:29 agentzh obra: our web services will be REST-fied :)
02:30 agentzh obra: the CTO has made the decision :)
02:31 agentzh obra: btw, could you please make a CPAN release of TD from the svn head?
02:32 obra oh. sure. didn't know we were out of date
02:32 obra is the changes file current?
02:39 obra done
02:39 obra 0.27 now on cpan
02:49 agentzh obra: thanks :)
03:02 HeavyLoad left #perl6
03:05 elmex joined #perl6
03:06 xfrog joined #perl6
03:06 agentzh ouch! PCR 0.27 is failing tests on win32 :/
03:06 justatheory joined #perl6
03:28 pugs_svn r18770 | agentz++ | [PCR] fixed the shell syntax used in the tests to work with win32s cmd.exe
03:35 jedai joined #perl6
03:42 pugs_svn r18771 | agentz++ | [PCR] fixed shell syntax portability problems in t/16-safemode.t as well
03:55 agentzh left #perl6
04:26 Edward40Hands joined #perl6
04:44 ludan joined #perl6
05:27 jisom joined #perl6
05:37 Aankhen`` joined #perl6
05:38 * Patterner installs ghc 6.8.1
05:39 Ashizawa joined #perl6
05:49 agentzh joined #perl6
06:09 Aankhen`` joined #perl6
06:13 devogon joined #perl6
06:18 Psyche^ joined #perl6
06:56 IllvilJa joined #perl6
07:06 the_dormant joined #perl6
07:14 rfordinal joined #perl6
07:28 drupek12 joined #perl6
07:39 drrho joined #perl6
07:44 masak joined #perl6
08:04 rindolf joined #perl6
08:06 franck___ joined #perl6
08:10 pmurias joined #perl6
08:10 pmurias @tell dlocaus the bug is in src/KindaPerl6/Visitor/ExtractRuleBlock.pm line 22 (has_default is not specified)
08:10 lambdabot Consider it noted.
08:14 audreyt joined #perl6
08:29 audreyt joined #perl6
08:32 franck___ joined #perl6
08:38 audreyt_ joined #perl6
09:09 the_dormant joined #perl6
09:13 ilogger2 joined #perl6
09:20 gongyiliao joined #perl6
09:20 amnesiac joined #perl6
09:22 iblechbot joined #perl6
09:26 the_dormant joined #perl6
09:31 polettix joined #perl6
09:35 the_dormant joined #perl6
09:54 Azure-BOT joined #perl6
10:11 ebassi joined #perl6
10:14 Aankh|Clone joined #perl6
10:15 jedai joined #perl6
10:30 gongyiliao left #perl6
10:31 moritz_ re
10:32 ruoso joined #perl6
10:40 elmex joined #perl6
10:58 pmurias joined #perl6
10:59 pmurias moritz_: re
10:59 lambdabot pmurias: You have 1 new message. '/msg lambdabot @messages' to read it.
11:01 gongyiliao joined #perl6
11:01 gongyiliao left #perl6
11:11 devogon_ joined #perl6
11:19 the_dormant joined #perl6
11:37 lichtkind joined #perl6
11:43 cai joined #perl6
12:00 rindolf joined #perl6
12:15 devogon joined #perl6
12:21 devogon joined #perl6
12:34 dalek joined #perl6
12:47 |Jedai| joined #perl6
13:01 kanru joined #perl6
13:06 ebassi joined #perl6
13:29 baest joined #perl6
13:45 franck____ joined #perl6
13:48 franck___ joined #perl6
13:49 franck____ joined #perl6
14:01 Aankhen`` joined #perl6
14:01 TJCRI joined #perl6
14:04 drrho joined #perl6
14:06 franck___ joined #perl6
14:06 drbean joined #perl6
14:07 drbean joined #perl6
14:21 gugod joined #perl6
14:25 justatheory joined #perl6
14:31 Lunchy joined #perl6
14:42 kanru joined #perl6
14:51 [particle] yak shaving &
14:51 [particle] left #perl6
15:00 pugs_svn r18772 | agentz++ | [PCR] fixed the final Win32 test failure regarding hashing randomness.
15:04 dlocaus joined #perl6
15:04 dlocaus Hello!
15:04 lambdabot dlocaus: You have 1 new message. '/msg lambdabot @messages' to read it.
15:05 pugs_svn r18773 | agentz++ | [PCR] bumped the version number to 0.28
15:06 dlocaus @help
15:06 lambdabot help <command>. Ask for help for <command>. Try 'list' for all commands
15:06 dlocaus @help list
15:06 lambdabot list [module|command]
15:06 lambdabot show all commands or command for [module]. http://www.cse.unsw.edu.au/~dons/lambdabot/COMMANDS
15:07 agentzh @list
15:07 lambdabot http://www.cse.unsw.edu.au/~dons/lambdabot/COMMANDS
15:07 dlocaus @clear-messages
15:07 lambdabot Messages cleared.
15:10 pugs_svn r18774 | dlo++ | [kp6] added link for lambdabot
15:11 pugs_svn r18775 | agentz++ | [PCR] some releng work for 0.28
15:15 pmurias dlocaus: hi
15:16 pmurias dlocaus: got my message?
15:19 justatheory joined #perl6
15:30 obra $TIMEOFDAY
15:39 dlocaus pmurias: yes,
15:39 dlocaus pmurias: I'm currently trying to debug t/kp6/15-capture-from-rule-block.t
15:39 dlocaus pmurias: the problem is I'm caught up in all of Pair.pm's INIT blocks, and it has a LOT of them.
15:40 amnesiac joined #perl6
15:40 dlocaus does anyone know how to force the debugger to skip the INIT { } blocks?
15:40 dlocaus putting $DB::single and then using "c" doesn't work, the perl debugger still stops on the first line of INIT{ .. }
15:42 pmurias dlocaus: did fixing what i mentioned help?
15:43 dlocaus well, yes, it appeared to fix the majority of bugs, but 15-capture...t seams to go into an infinite loop
15:43 dlocaus I think, I'm trying to figure out how to get the debugger to debug it.
15:43 pmurias you could temporarly disable INIT blocks in the emitter
15:43 dlocaus the INIT blocks are being invoked in Pair.pm
15:44 dlocaus compiled/perl5-kp6-mp6/lib/KindaPerl6/Runtime/Perl6/Pair.pm
15:44 dlocaus ha ah!
15:44 Psyche^ joined #perl6
15:45 pmurias dlocaus: fixed it?
15:45 dlocaus the solution is to create BEGIN { sub daniel_test { print 1; } }; then put main::daniel_test(); where you want the break point, and then use b main::daniel_test to get there.
15:46 dlocaus pmurias: no, just finally got a break point :)
15:46 dlocaus now, I'm going to try and find out where it infinitely loops  (I'm assuming that 4 minutes of no response is an infinite loop.. rather than actuall slowness)
15:56 dlocaus omg...
15:56 dlocaus $::MyGrammar dumps to 3k lines of variable content.
15:58 justatheory joined #perl6
16:06 barney joined #perl6
16:16 chris2 joined #perl6
16:24 dlocaus pmurias: ping?
16:25 dlocaus With the fix you suggested, gammar tests 15 & 17 do not respond, but other tests do.  Should I commit the fix, and then skip those tests?
16:25 dlocaus by "do not respond" I mean they just continue running and there does not seam to be any resolution on the test.
16:27 pmurias dlocaus: pong
16:27 dlocaus do you have a suggestion?
16:27 pmurias dlocaus: commit the fix
16:27 dlocaus what about the test cases?
16:28 pmurias leave them as failures
16:28 justatheory joined #perl6
16:28 dlocaus they don't fail
16:28 dlocaus they just keep on going...
16:28 dlocaus as if they were in an infiniate loop
16:29 dlocaus If I commit this, then some smoke server may be waiting a long time...
16:29 dlocaus for results.
16:29 pmurias there isn't a smoke server for kp6 as far as i know
16:29 dlocaus should I deliberately break the 15 & 17 tests?, so that they "do" finish, with a failure at least?
16:30 pmurias hard question
16:30 dlocaus I know...
16:30 dlocaus which, is why I'm asking :)
16:30 pmurias leave them as they are
16:31 pmurias the person debugging will not have to unbreak them
16:31 dlocaus how will people do the test cases to test their own changes, do the test cases?
16:31 dlocaus everyone working on something else will be stuck.
16:32 pmurias break them then
16:32 dlocaus ok
16:32 pmurias i remembered that C-c stops the whole test process
16:34 pmurias have you used KP6_TOKEN_DEBUGGER=1?
16:34 dlocaus humm no
16:34 ting joined #perl6
16:35 dlocaus I'll give that a shot, right after I commit
16:42 pugs_svn r18776 | dlo++ | [kp6]
16:42 pugs_svn r18776 | dlo++ | I have commited a fix on pmurias's suggestion, which appears to fix a has_default.bit() issue, where
16:42 pugs_svn r18776 | dlo++ | has_default was not being assigned a "bit" class.  It was being left "undef", which caused a but in
16:42 pugs_svn r18776 | dlo++ | Emit/Perl5.pm which is depending on the has_default.bit class.
16:42 pugs_svn r18776 | dlo++ |
16:42 pugs_svn r18776 | dlo++ | I have deliberately broken grammar tests 17 and 15.  With this bug fix, the test cases do not appear to complete.
16:42 pugs_svn r18776 | dlo++ | They either "hang" or go into an infinite loop.  Test case grammar/15 does not complete after 4 minutes.
16:42 pugs_svn r18776 | dlo++ |
16:42 pugs_svn r18776 | dlo++ | Both test cases, have compiliation errors that will cause them to failure.  Comments are included as to why they are
16:42 pugs_svn r18776 | dlo++ | forced to fail.
16:45 obra dlo++ # long commit messages
16:47 Tene obra++ # rewarding long commit messages
16:49 dlocaus :)
16:50 dlocaus wait a minute
16:51 dlocaus @karma dlocaus
16:51 lambdabot You have a karma of 5
16:51 dlocaus I'm dlocaus
16:51 Tene @karma dlo
16:51 lambdabot dlo has a karma of 74
16:51 pmurias dlocaus++ # working on kp6
16:51 dlocaus dlo is my CPAN id, and my svn.pugscode.com user id.
16:51 dlocaus dlocaus is my irc name, "dlo" is already taken on freenode.
16:52 dlocaus left #perl6
16:52 dlocaus joined #perl6
16:53 dlocaus my karma is being given away! wahhhhh!
16:54 Tene @dlocaus-- # no karma for you
16:54 lambdabot Unknown command, try @list
16:54 Tene ;)
16:54 * dlocaus cries
16:56 weinig joined #perl6
17:03 drrho joined #perl6
17:06 araujo joined #perl6
17:08 justatheory joined #perl6
17:10 jedai joined #perl6
17:12 rindolf joined #perl6
17:40 moritz_ i've got a new hobby: taking a random shell and write `!! | wc -l' ;-)
17:41 rgs you like danger
17:41 Tene Interesting.
17:54 lambdabot joined #perl6
17:55 dlocaus lambabot left for fishies?
17:56 moritz_ @tell lambdabot boo
17:56 lambdabot Nice try ;)
18:00 dlocaus @tell lambabot lambdabot did a boo boo
18:00 lambdabot Consider it noted.
18:00 TJCRI joined #perl6
18:00 cmarcelo joined #perl6
18:01 pmurias dlocaus: die might be a better way of making a test file fail than a undeclared subroutine
18:01 dlocaus pmurias:  we have "die"?
18:01 moritz_ or `say "not ok $number"', and comment the failing lines
18:03 dlocaus humm, didn't think of that.
18:03 dlocaus I'll make thos modifications in a bit.
18:03 dlocaus I'm right in the middle of futzing with MOP.pm
18:08 Psyche^ joined #perl6
18:11 rindolf joined #perl6
18:15 pmurias walk&
18:15 moritz_ table tennis &
18:21 jovs joined #perl6
18:36 pugs_svn r18777 | dlo++ | Put in mortiz_'s suggestion on how to fail better
18:38 Khisanth joined #perl6
18:49 TreyHarris joined #perl6
18:50 dlocaus hummus &
19:08 fridim_ joined #perl6
19:13 jisom joined #perl6
19:16 devogon joined #perl6
19:19 pmurias ls
19:19 pmurias wrong screen window
19:19 pmurias dlocaus: have you seen agentzh's tracer?
19:26 polettix joined #perl6
19:56 dlocaus pmurias: sorry, I was eating lunch
19:56 dlocaus pmurias: no, what is it/
19:56 Southen joined #perl6
19:58 pasteling "dlocaus" at 63.192.210.11 pasted "Code to catch infinite ::DISPATCH loops." (34 lines, 1.2K) at http://sial.org/pbot/28405
19:59 dlocaus pmurias: I'm thinking about committing that code that is in the last message, do you have a comment?
20:00 dlocaus it goes in MOP.pm sub ::DISPATCH
20:02 pmurias looks good
20:03 pmurias DB::single invokes the debuger?
20:04 dlocaus well, if you start it in debugging mode.
20:04 dlocaus perl -d scripts/kp6 ...
20:06 pmurias http://pugs.blogs.com/pugs/2007/10/a-graphical-tra.html
20:06 lambdabot Title: Pugs: A graphical tracer for Perl 6 regexes based on PCR
20:08 dlocaus pmurias: ok, I'll check that out
20:13 pugs_svn r18778 | dlo++ | [kp6]
20:13 pugs_svn r18778 | dlo++ | I have been really hard time chasing down a regex bug.  Mostly due to the problem of tracing the stack.  I have
20:13 pugs_svn r18778 | dlo++ | written code into Runtime/Perl5/MOP.pm ::DISPATCH to detect infinite loops.  The premise is simple.  If you see the
20:13 pugs_svn r18778 | dlo++ | same ::DISPATCH(ARGS) call more than once, you've entered a circular loop.
20:13 pugs_svn r18778 | dlo++ |
20:13 pugs_svn r18778 | dlo++ | This code is enabled by setting enviromental variable DEBUG = 1 (or 2 for more info)
20:13 pugs_svn r18778 | dlo++ | setenv DEBUG 1
20:13 pugs_svn r18778 | dlo++ |
20:13 pugs_svn r18778 | dlo++ | dlocaus@irc.freenode.net #perl6
20:17 dlocaus pmurias: I think MOP.pm needs to document the hash structures it builds.
20:18 dlocaus pmurias: do you have any thoughts right off hand?
20:18 pmurias looking
20:19 pmurias dlocaus: it could document the internal object format
20:19 pmurias what fields besides _dispatch the object can have
20:21 dlocaus well, I was thinking that DISPATCH($::PROTO,'add_method','func', args ) could include $self->{_document} = [
20:21 dlocaus "func belongs to $self->{ name }", .. next func ];
20:22 dlocaus putting _document in the list, would give the human debugger an idea of exactly where he is, when he's busy touring the list.
20:22 pmurias i don't understand
20:24 pmurias the objects need to keep extra info to make the dumps more readable?
20:24 dlocaus well, I was attempting to understand $::MyGrammar, and x \$::MyGrammar drops 3k lines of "variable settings".  When I use the DEBUG code in MOP.pm (I just added it), it produces a trail 4k lines long.
20:24 idiotmax joined #perl6
20:24 dlocaus When we are going though the ::DISPATCH / $::MyGrammar, we need some way of "knowing" or having an "idea" of where we are.
20:25 pmurias grabbing a better chair&
20:25 dlocaus pmurias: ::DISPATCH( $::MyGrammar, 'tok2', );
20:25 dlocaus that code generated 4k of enter/exit documentation
20:26 pmurias you shouldn't dump objects with Data::Dumper
20:26 dlocaus that wasn't Data::Dumper, that was perl's debugger x command
20:28 pmurias i'm not familiar with the perl debugger but i guess it's equivalent
20:28 cookys joined #perl6
20:29 dlocaus well, my point is I'm wandering in the forest of $::MyGrammar without a road map.
20:29 pmurias dlocaus: i'll check what you get
20:29 dlocaus I'm thinking that MOP.pm should be documenting that forest for me (or doing something so that I know where I am when I'm trying to debug it)
20:30 pugs_svn r18779 | dlo++ | cleaned up the output a bit
20:31 pmurias dlocaus: my grammar should have a .perl metho
20:31 pmurias d
20:31 pmurias which would dump only the intresting stuff
20:32 pmurias or are you intrested in the "low level" stuff as the _dispatcher etc.?
20:32 cookys joined #perl6
20:33 dlocaus well, I'm trying to figure out how this code got into an infinite loop
20:34 cookys joined #perl6
20:37 pmurias dlocaus: there shouldn't be ';' and the end of classes/modules
20:37 pugs_svn r18780 | dlo++ | [kp6] Moved edited code from compiled into src MOP.pm
20:38 pasteling "dlocaus" at 63.192.210.11 pasted "module Main { $_ = 'a'; MyGram" (14 lines, 167B) at http://sial.org/pbot/28408
20:38 dlocaus pmurias: that?
20:38 pmurias yes
20:39 pmurias kp6 recognies {} as hash subscripts
20:39 pmurias with the ; colons
20:39 dlocaus humm. ok
20:40 dlocaus well, the code still doesn't work :(
20:41 idiotmax joined #perl6
20:41 pmurias still infites loops
20:41 pmurias ?
20:42 pugs_svn r18781 | dlo++ |  [kp6] removed an excessive print (newline)
20:42 dlocaus yes
20:43 dlocaus pmurias: how do I invoke the MyGrammar.perl() ?
20:44 pmurias i don't think there is one
20:44 pmurias ::DISPATCH($::MyGrammar,'perl') or MyGrammar.perl() if there were
20:45 dlocaus is this something I should leave to fglock or someone else to debug?  I'm getting a sense I'm starting to thrash.
20:45 pmurias it's not important
20:45 dlocaus ok.
20:46 dlocaus I'm moving on to the next bug.  I'll add this to the TODO list?
20:46 pmurias perl5rx is the engine which will be used for the bootstap
20:46 pmurias add it
20:46 dlocaus ok
20:47 dlocaus is there a place where I can store code in the repositry in a kind of "my space" that other people can access?
20:47 dlocaus like a home directory?  I have a nice piece of code that I broke down, that would be useful to the next person who has to debug this.
20:47 pmurias misc/pX
20:47 HiTech69 joined #perl6
20:49 pmurias got to buy cola& (not that I would ever drink that horrid stuff)
20:59 pugs_svn r18782 | dlo++ | [kp6] 15-capture-from-rule-block.t goes into an infinite loop.  I can't solve this.  Someone else will have to try and give it a stab, see misc/pX/dlocaus/kp6-grammar-test-15.pl
21:03 ludan joined #perl6
21:13 dlocaus left #perl6
21:18 buubot joined #perl6
21:27 justatheory joined #perl6
21:32 fridim_ joined #perl6
21:35 ilogger2_ joined #perl6
21:37 thoughtpolice joined #perl6
21:41 zostay joined #perl6
21:53 cookys joined #perl6
21:55 cookys joined #perl6
21:59 Limbic_Region joined #perl6
22:06 cookys joined #perl6
22:09 cognominal_ joined #perl6
22:11 fridim_ joined #perl6
22:11 wilx left #perl6
22:17 the_dormant joined #perl6
23:05 tlb joined #perl6
23:20 baalial joined #perl6
23:27 luqui joined #perl6
23:29 revdiablo joined #perl6
23:50 baalial left #perl6

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

Perl 6 | Reference Documentation | Rakudo