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.
pugs_svn r18922 | fglock++ | [kp6] t/kp6/46-hash-item-bind.t resolved 00:06
pugs_svn r18923 | fglock++ | [kp6-kp6] script/kp6-kp6.pl loads a source file... 11:16
lichtkind obra: hello jesse 11:52
pmurias fglock: i get Undefined subroutine &main:: called at compiled/perl5-kp6-kp6/lib//KindaPerl6/Runtime/Perl5/Container.pm line 318, <> line 24. 14:08
when i run perl -I compiled/perl5-kp6-kp6/lib/ script/kp6-kp6.pl examples/hello.pl
pmurias is it supposed for that error to happen? (the last commit message implied the source gets slurped) 14:14
masak @users 14:20
lambdabot Maximum users seen in #perl6: 140, currently: 139 (99.3%), active: 3 (2.2%)
moritz_ wow
masak chances are that this lambdabot++ hasn't been here so long, though 14:21
moritz_ @karma lambdabot
lambdabot lambdabot has a karma of 52
masak so 140 is probably low compared to, say, mid-2005 14:22
moritz_ @karma autrijus
lambdabot autrijus has a karma of 6
fglock pmurias: the error seems to happen after slurp is executed
Gekz @karma gekz 14:24
lambdabot You have a karma of 0
Gekz yay
moritz_ at least it's not undef ;) 14:24
Gekz lol 14:29
pmurias dlocaus: ping 14:47
pmurias i get Unknown arguments to TAP::Harness::new (verbosity) at script/run_tests.pl line 185 15:17
pugs_svn r18924 | fglock++ | [kp6-perl5] added @a[] and %a{} (empty index/key list) 15:41
pugs_svn r18925 | fglock++ | [kp6-perl5] a step for supporting objects as hash-keys 16:13
Tene kp6: @a[] 16:35
exp_evalbot r18925: OUTPUT[error in Block at compiled/perl5-kp6-mp6/lib/KindaPerl6/Grammar/Sub.pm line 753, <> line 1.␤*** Syntax Error in Block: missing closing curly bracket ␤]
fglock hmm 16:43
kp6: my @a; say "array: @a[]" 16:44
exp_evalbot r18925: OUTPUT[array: ␤]
pmurias kp6: my @a=(1,2,3);say "@a[]"; 16:51
exp_evalbot r18925: No output (you need to produce output to STDOUT) 16:52
pugs_svn r18926 | fglock++ | [kp6-perl5] minor fix to @a[]/%a{} 16:54
fglock kp6: my @a=[1,2,3];say "@a[]";
exp_evalbot r18926: OUTPUT[1 2 3␤]
masak why "@a[]" and not just "@a"? 17:00
moritz_ masak: because of email addresses, I think 17:03
pugs_svn r18927 | fglock++ | [kp6-perl5] allow slices in lazy structures 17:09
masak moritz_: ah. 17:10
fglock yay - perl t-bootstrap/01-quote.t passes 17:14
dlocaus hello 17:17
moritz_ fglock++
dlocaus pmurias: checking into that verbosity error
pmurias dlocaus: hi 17:24
dlocaus pmurias: pong 17:25
pmurias: I'm checking in to that verbosity error
I know that's the right "keyword", I'll see about putting some warnings in there
pmurias dlocaus: does run_tests work on your box? 17:26
dlocaus yes
what version of TAP::Harness are you using?
pmurias dlocaus: 3.03 17:29
and you?
dlocaus 3.03
pugs_svn r18928 | dlo++ | [kp6] Fixed a documentation mis-understanding 17:31
pugs_svn r18929 | fglock++ | [kp6] kp6-kp6.pl - s/length/chars/ 17:35
r18929 | fglock++ | [kp6-perl5] - emit an error message if length() is used
pmurias dlocaus: not passing verbosity if it's at default might be a fix
dlocaus well, I'm wondering if you have TEST_VERBOSE set 17:36
in your enviroment because, that will pass the Getopt::Long screening
pmurias: I've put in extra checking, can you give it a look see? 17:39
pugs_svn r18930 | dlo++ | [kp6] Extra checking for --verbose or TEST_VERBOSE 17:40
pmurias dlocaus: i don't have TEST_VERBOSE set
dlocaus pmurias: did you try updating to the latest run_tests.pl? 17:41
pmurias it dosn't work 17:42
pugs_svn r18931 | fglock++ | [kp6-perl5rx] added some boxing to Match result
pmurias i meant delete $tap->{verbosity} if it is equal to 0 (or not defined) 17:43
dlocaus scratches his head 17:44
well, I'll give that a shot 17:46
does anyone know the regex for finding a number that is possibly negative?
/^-?\d+$/ 17:47
moritz_ integer or number?
generally ^[+-]?\d+$ for integers
pugs_svn r18932 | dlo++ | [kp6] TAP::Harness appears to fail if verbosity is set. This is a quick fix to remove verbosity if it is set to the default value 17:50
dlocaus pmurias: I've updated run_tests.pl to delete verbosity if it is set to the default value 17:51
pmurias works :) 17:52
dlocaus yea! 17:53
moritz_ dlo++ 17:54
clkao /win/win 58 17:55
moritz_ anybody with 58 irssi windows is an IRC addict ;) 17:56
pugs_svn r18933 | pmurias++ | [kp6] Routine calls APPLY on it's contents instead of depending on internals 18:02
pugs_svn r18934 | fglock++ | [kp6-kp6] got some AST with: $ perl -I lib5regex -I compiled/perl5-kp6-kp6/lib script/kp6-kp6.pl <<< 1 18:31
TimToady kp6: my @a = [1,2,3]; say @a.elems 18:33
exp_evalbot r18934: OUTPUT[3␤]
TimToady that's not the perl6 answer...
pmurias right, it should be 1 18:34
TimToady could be okay for "kinda" though
moritz_ kp6: my @a = (1, 2, 3); say @a.elems; 18:35
exp_evalbot r18934: OUTPUT[3␤]
pmurias TimToady: BEGIN blocks are run at parse time? 18:36
moritz_ kinda-answer... yes, 3 is not so much different from 1 ;)
TimToady pmurias: yes, as soon as they are done parsing
more specifically, the moment the trailing } is parsed, since BEGIN {...} + 1 could change the parsing of + 18:38
biab & 18:40
pugs_svn r18935 | fglock++ | [kp6] fixed 'List' loop implementation 18:51
fglock pugs: my $a = [1,2,3]; say $a.elems; my @b = [1,2,3]; say @b.elems ; 18:54
exp_evalbot OUTPUT[3␤1␤]
dlocaus perl5.10.0 RC2 appeared to run the kp6 tests ok. There was an odd strict.pm (cannot be found), and 02-gather.t failed (I'm assuming because it couldn't find Coro), but other than that everything appeared to test ok. 19:29
I didn't want to fully install 5.10, since I want my workstation to continue working :)
fglock dlocaus: nice :) 19:32
dlocaus ty 19:33
pugs_svn r18936 | fglock++ | [kp6-kp6] more tests 19:35
dlocaus dog bath time... 19:37
pugs_svn r18937 | fglock++ | [kp6-kp6] fix test count 19:43
r18938 | fglock++ | [kp6] added TODO 19:46
fglock &
pugs_svn r18939 | fglock++ | [kp6-perl5rx] Match.perl (started) 20:02
dlocaus dogs like winter bath when there is warm water available :) 20:09
fglock: is there anything that needs doing? 20:11
dlocaus @users 20:11
lambdabot Maximum users seen in #perl6: 143, currently: 140 (97.9%), active: 3 (2.1%)
fglock un-& 20:12
dlocaus: sure there is :)
I need to take a closer look
most tasks vary from difficult to impossible ;P 20:13
looking for simple things to bring from the STD grammar to kp6 would be nice 20:15
dlocaus it is good to ask sometimes :)
ok
pugs_svn r18940 | fglock++ | [kp6-perl5rx] improved Match.perl a bit 20:16
fglock dlocaus: fixing Junctions should not be terribly difficult, you already know a lot about the internals 20:17
it might be fun
dlocaus 39-junction.t 20:18
50-junction-all.t
These 2?
fglock yes - the place to look is the APPLY method, somewhere in the MOP
dlocaus ok
fglock and the Perl 6 spec 20:19
and the Signature module
hmm - and the Junction module
moritz_ iirc the problem is that $junction.method autothreads even if method is defined in class Junction
fglock yes, .APPLY should check the function signature and decide what to do 20:20
fglock home & 20:24
pugs_svn r18941 | dlo++ | [kp6] Updated kp6 to properly send (dollar)out to (dollar)output in all cases. Also, if -o is specified the code will not attempt to run if no other option is specified B or C. I believe this should be correct behavior 21:37
dlocaus moritz_: ping? 21:43
moritz_ dlocaus: pong!
dlocaus what does p5landish mean? in the context of MOP.pm?
moritz_ I'm not entirely sure... but each p6 object has a p6 way to view at it, and one in the emitted code 21:44
so I guess p5landish is the "interface" of a p6 objected in the p5 code (either emitted or runtime) 21:45
dlocaus uhrmm.. ok
ok, I can understand that part
but what does "p5landish" mean?
p5 = perl5
landish means ???
moritz_ "belonging to perl 5 land"
Aankhen`` dlocaus: It's basically a Perl 6 -> Perl 5 conversion function, IIRC. 21:46
dlocaus ah, ok
moritz_ Aankhen``: how does your coding absence work for you?
Aankhen`` dlocaus: You may have a Perl 6 string object that you want to compare using `eq`, for example. The object itself would be a Perl 6 object, and you'd use p5landish on it to get at the actual string contained within it so you can compare it. 21:47
Aankhen`` moritz_: Oh, the sabbatical was finished a while ago, but I decided it would be better if I didn't work on kp6-lisp. 21:47
moritz_ Aankhen``: allright
pugs_svn r18942 | dlo++ | [kp6] Documented the meaning of p5landish 21:56
r18942 | dlo++ |
r18942 | dlo++ | You have a Perl 6 string object that you want to compare using `eq`, forexample. The object itself would be a Perl 6
r18942 | dlo++ | object, and you would usep5landish on it to get at the actual string contained within it so you cancompare it.In
r18942 | dlo++ | short, p5landish returns the actual value contained in the object.
r18942 | dlo++ |
r18942 | dlo++ | See:
r18942 | dlo++ | irclog.perlgeek.de/perl6/2007-11-27#i_152004
lambdabot Title: IRC log for #perl6, 2007-11-27
Aankhen`` It's not really so much "the actual value" as "a Perl 5–ish view of the object", but I suppose that definition is a tad recursive. 22:00
pugs_svn r18943 | dlo++ | [kp6] Added parent for ::Str 22:37
pugs_svn r18944 | dlo++ | [kp6] cleaned up indentiation 23:04
r18945 | dlo++ | [kp6] 23:17
r18945 | dlo++ |
r18945 | dlo++ | I have serious doubts about this commit (fglock - ping!). fglock directed me towards the APPLY / Signature and so
r18945 | dlo++ | on, however, it appears that $::Str just needed a "say" method added to it.
r18945 | dlo++ |
r18945 | dlo++ | The doubts are mostly because what fglock said does not even remotely apply to the fix.
r18945 | dlo++ |
r18945 | dlo++ | irclog.perlgeek.de/perl6/2007-11-27#i_151982
lambdabot Title: IRC log for #perl6, 2007-11-27
pugs_svn r18945 | dlo++ | 23:18
r18945 | dlo++ | dlocaus @ #perl6 irc.freenode.net