Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2008-06-30

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:03 bacek joined #perl6
00:04 justatheory joined #perl6
00:07 bacek joined #perl6
01:09 xinming joined #perl6
01:25 Alias_ joined #perl6
01:28 a-jing joined #perl6
01:28 a-jing left #perl6
01:39 lambdabot joined #perl6
02:13 hikozaemon joined #perl6
02:19 a-jing joined #perl6
02:20 a-jing left #perl6
02:27 apeiron_ joined #perl6
02:42 pugs_svnbot r21114 | Auzon++ | [gsoc_spectest] reorganization and a few more tests for ===, eqv, and ranges. (7 tests added)
03:02 pugs_svnbot r21115 | lwall++ | [STD] improvements to strange quote languages
03:03 elmex joined #perl6
03:04 redicaps joined #perl6
03:27 kanru joined #perl6
03:33 alanhaggai joined #perl6
04:04 edpratomo joined #perl6
04:23 alanhaggai joined #perl6
04:33 apeiron_ joined #perl6
05:14 rakudo_svn r28841 | pmichaud++ | [rakudo]:
05:14 rakudo_svn r28841 | pmichaud++ | * spectest-progress update:  74 files, 1126 passing tests (0 failing tests)
05:19 alanhaggai joined #perl6
05:58 Psyche^ joined #perl6
06:25 polettix joined #perl6
06:42 smtms_ joined #perl6
06:45 iblechbot joined #perl6
06:49 xinming_ joined #perl6
07:13 drbean joined #perl6
07:15 alanhaggai_ joined #perl6
07:32 moritz_ Auzon: I'm looking at range.t, line 22: ``isnt ~(0..^10), ~(0.. ^10)'' - is 0.. ^10 valid syntax? I guess it means the same as 0...(0..9), which kinda looks odd to me
07:37 pugs_svnbot r21116 | moritz++ | [spec] fudged S03-operators/range.t, but needs Range.Str in Rakudo to work
07:46 pugs_svnbot r21117 | moritz++ | [spec] fudged value_equivalence.t. Rakudo now parses it, but doesn't
07:46 pugs_svnbot r21117 | moritz++ | implement infix:<===> yet
07:58 cls_bsd joined #perl6
08:20 cosimo joined #perl6
08:31 smtms joined #perl6
08:37 smtms_ joined #perl6
08:37 meppl joined #perl6
08:42 smtms__ joined #perl6
08:50 chris2 joined #perl6
08:52 smtms joined #perl6
09:00 smtms_ joined #perl6
09:01 pmurias joined #perl6
09:01 pmurias moritz_: sorry about blaming errors on evalbot ;)
09:01 pmurias had an unrecompiled STD5.pm
09:02 pmurias TimToady: how do you test STD.pm?
09:02 moritz_ judging from the commit logs by running it onto itself ;)
09:03 pmurias moritz_: the problem is exactly how?
09:03 pmurias s/?//
09:04 alanhaggai joined #perl6
09:04 pmurias as my stuff which used STD.pm just broke with the new commits
09:12 pmurias what was the perl #... thingy to set the current filename? (/me left Programming Perl at home)
09:12 moritz_ you mean in eval?
09:13 Jedai joined #perl6
09:15 pmurias moritz_: no, in perl5
09:17 pmurias s/current filename/filename used in reporting errors/
09:22 pmurias moritz_: fixed
09:22 pmurias * fixed pixie
09:23 pugs_svnbot r21118 | pmurias++ | [pixie]
09:23 pugs_svnbot r21118 | pmurias++ | pixie uses elfX
09:23 pugs_svnbot r21118 | pmurias++ | fixed to work with the newest STD.pm
09:23 pugs_svnbot r21118 | pmurias++ | [elfX]
09:23 pugs_svnbot r21118 | pmurias++ | prefix:<++> works (HACK)
09:24 pmurias moritz_: i think lex/ needs to be rm -fr, as it got poisoned somehow
09:24 pugs_svnbot r21119 | pmurias++ | [pixie] removed debugging leftover
09:25 pmurias yap6: ls|||
09:25 p6eval yap6: OUTPUT[statement not terminated properly near the end of input␤[]]
09:26 pugs_svnbot r21120 | moritz++ | [spec] S29-num/complex.t: fixed two tests
09:26 pmurias yap6: ls|||;
09:26 p6eval yap6: OUTPUT[Can't locate Perl6in5/Grammar/ls.pm in @INC (@INC contains: ../lib lib /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at (eval 1) line 1.␤BEGIN failed--compilati...
09:26 pmurias yap6: ls;|||;
09:26 p6eval yap6: OUTPUT[sh: /tmp/VUPUklwcOb: Permission denied␤]
09:26 pmurias yap6: ;ls;|||;
09:26 p6eval yap6: OUTPUT[sh: /tmp/CqK4keblMX: Permission denied␤]
09:27 pmurias yap6: >/dev/null;echo |||;
09:27 p6eval yap6: OUTPUT[/tmp/eSPfT6tw9I␤]
09:28 pmurias moritz_: it's possible to have evalbot execute arbitrary shell commands as you see
09:28 pmurias yap6: >/dev/null;echo * |||;
09:28 p6eval yap6: OUTPUT[bin lib t /tmp/7ivRuSHKxH␤]
09:28 pmurias yap6: >/dev/null;echo ../* |||;
09:28 p6eval yap6: OUTPUT[../CHANGES ../COPYRIGHT ../debian ../INSTALL ../KUDOS ../LICENSE ../Makefile.PL ../MANIFEST ../README ../ROADMAP ../src ../STATUS ../TODO ../yap6.spec /tmp/97cvLqAPXK␤]
09:29 moritz_ ouch
09:29 pmurias yap6: >/dev/null;pwd |||;
09:29 p6eval yap6: OUTPUT[/home/evalenv/pugs/misc/yap6/src␤]
09:29 pmurias yap6: >/dev/null;echo ../misc/pixie/* |||;
09:29 p6eval yap6: OUTPUT[../misc/pixie/* /tmp/OsMnssZw5D␤]
09:30 pmurias yap6: >/dev/null;echo ../../misc/pixie/* |||;
09:30 p6eval yap6: OUTPUT[../../misc/pixie/* /tmp/CnTkH7xsUW␤]
09:30 pmurias yap6: >/dev/null;echo ../../* |||;
09:30 p6eval yap6: OUTPUT[../../Blondie ../../buildbot ../../Class-Events ../../Date ../../elf ../../elfish ../../evalbot ../../Grammars ../../IDE-support ../../irclog ../../JavaScript-FrontEnd ../../kp6_misc ../../kp6-repl.pl ../../old_pugs_perl5_backend ../../org.perl6.metamodel ../../Parser-Mini ../../...
09:30 pmurias yap6: >/dev/null;echo ../../p* |||;
09:30 p6eval yap6: OUTPUT[../../perlhints ../../pixie ../../pugspc ../../pX /tmp/THDlqvzQYI␤]
09:30 pmurias yap6: >/dev/null;echo ../../pixie/le* |||;
09:30 p6eval yap6: OUTPUT[../../pixie/lex /tmp/QPoLPKLOgf␤]
09:31 pmurias yap6: >/dev/null;rm -fr ../../pixie/lex# |||;
09:31 p6eval yap6: No output (you need to produce output to STDOUT)
09:31 wknight8111 joined #perl6
09:31 pmurias yap6: >/dev/null;echo ../../pixie/le* |||;
09:31 p6eval yap6: OUTPUT[../../pixie/lex /tmp/uSepatVGtv␤]
09:31 pmurias yap6: >/dev/null;rm -fr ../../pixie/lex/*# |||;
09:31 p6eval yap6: No output (you need to produce output to STDOUT)
09:31 pmurias yap6: >/dev/null;echo ../../pixie/le* |||;
09:31 p6eval yap6: OUTPUT[../../pixie/lex /tmp/xmWUk3JFjy␤]
09:31 pmurias yap6: >/dev/null;echo ../../pixie/lex/* |||;
09:31 p6eval yap6: OUTPUT[../../pixie/lex/Perl_with_actions /tmp/gm5wVYkCHh␤]
09:31 moritz_ evalbot control restart
09:31 p6eval joined #perl6
09:31 pugs_svnbot r21121 | moritz++ | [evlbot] disable insecure command execution. pmurias++, diakopter--
09:32 moritz_ pmurias: if you want shell access to the host that runs evalbot that can be arranged
09:32 pmurias it would be better the using security holes ;)
09:33 moritz_ aye
09:33 barney joined #perl6
09:33 pmurias moritz_: i don't think i managed to remove lex, can you do it?
09:34 pmurias pixie: say 4;
09:34 p6eval pixie: No output (you need to produce output to STDOUT)
09:36 pmurias pixie: say 5;
09:36 p6eval pixie: No output (you need to produce output to STDOUT)
09:36 pmurias pixie: say "Hello";
09:36 p6eval pixie: No output (you need to produce output to STDOUT)
09:37 moritz_ pmurias: see /msg
09:45 pmurias pixie: say "Hello";
09:45 p6eval pixie: OUTPUT[Hello␤]
09:45 pmurias ;)
09:45 moritz_ YaY, pmurias++
09:46 moritz_ yap6: >/dev/null;echo ../../* |||;
09:46 p6eval yap6: No output (you need to produce output to STDOUT)
09:46 pmurias &
09:53 pugs_svnbot r21122 | moritz++ | [evalbot] be more verbose on security risks
09:55 masak joined #perl6
10:21 meteorjay joined #perl6
10:49 a-jing joined #perl6
10:50 a-jing left #perl6
11:03 wknight8111 joined #perl6
11:04 pbuetow joined #perl6
11:16 pbuetow joined #perl6
11:17 pbuetow joined #perl6
11:43 ruoso joined #perl6
12:08 Helios joined #perl6
12:19 meppl joined #perl6
12:37 TreyHarris pmichaud: how do I expect ('foo').join(':') to work?  :)
12:37 pmichaud TreyHarris: it returns 'foo'
12:38 pmichaud same as if I did     my @a = ('foo');   return @a.join(':');
12:38 TreyHarris ok.  just being sure I expect what I expected I expect. :)
12:38 pmichaud the definitions as given in S29 would've had it returning ':'
12:39 TreyHarris !
12:39 TreyHarris huh.  didn't notice that.
12:39 masak who's maintaining S29?
12:39 pmichaud whoever commits changes to it :-)
12:40 pmichaud afaik there's not an official maintainer
12:41 masak but we all agree that S29 is wrong about $array.join($sep) ?
12:42 pmichaud yes.
12:43 pmichaud (except I would phrase it that S29 is wrong about $str.join($sep) )
12:44 masak why $str? I can understand $str.split, but not $str.join
12:45 pmichaud masak:  see above .... ('foo').join(':')
12:45 pmichaud that's calling .join on a Str object
12:45 masak ah
12:45 masak so that's the only case where it does the Wrong thing... I see
12:45 pmichaud well, according to S29     (1).join('')   isn't even allowed.
12:46 pmichaud why is why we've fixed it by moving join into the Any class
12:50 wknight8111 joined #perl6
12:59 cmarcelo joined #perl6
13:01 renormalist joined #perl6
13:02 masak pmichaud: yes, I saw the thread about that. so _that's_ what the change to Any will do: make the one-element invocants work properly... yes?
13:02 pmichaud yes
13:03 pmichaud and we'll do this for a variety of methods, also
13:03 pmichaud like .abs, .unpolar, .cis, etc.
13:03 pmichaud so that   "-1".abs  will dtrt
13:04 alanhaggai joined #perl6
13:17 masak pmichaud: I've always wondered how Perl 6 would solve exactly that kind of issue, sending a Str to a method expecting a Num
13:18 pmichaud me also -- we ultimately decided to use Any
13:22 redicaps left #perl6
13:23 iblechbot joined #perl6
13:25 ruoso joined #perl6
13:28 rakudo_svn r28856 | pmichaud++ | [rakudo]:
13:28 rakudo_svn r28856 | pmichaud++ | * Add stringification and numification to Range objects.
13:35 moritz_ rakudo: say 1.5 ~~ 1^..^2
13:35 p6eval rakudo 28856: OUTPUT[0␤]
13:36 moritz_ should that print 1?
13:38 alanhaggai_ joined #perl6
13:41 pugs_svnbot r21123 | moritz++ | [spec] fudged and corrected range.t
13:42 rdice joined #perl6
13:46 rakudo_svn r28858 | moritz++ | [rakudo] add S03-operators/range.t to spectest_regression
13:47 moritz_ it's funny, rakudo_svn told me about my commit before my local svn client told me that all file data were transmitted ;)
13:51 pmichaud moritz_: yes, it should print 1 -- Parrot has a bug in floating point comparisons  (RT#56464)
13:51 pmichaud moritz_: sometimes the perl.org svn server doesn't send back the confirmation to the client immediately -- it gets hung up somewhere even though the commit has completed.  We've noticed this at various times.
13:52 moritz_ ok
13:52 moritz_ afk &
14:10 alester joined #perl6
14:11 thepler joined #perl6
14:14 TJCRI joined #perl6
14:17 meppl joined #perl6
14:30 sscaffidi_ joined #perl6
14:44 jhorwitz joined #perl6
14:51 sscaffidi_ joined #perl6
14:53 Lorn joined #perl6
15:31 broquaint joined #perl6
15:35 pmichaud in S03-operators/range.t
15:35 pmichaud is ~(@one .. 3)     , "1 2 3", "lower inclusive limit is in scalar context";
15:35 pugs_svnbot r21124 | pmichaud++ | S03-operators/range.t:  correct a syntax error, remove some #?rakudo skips
15:35 pmichaud looks wrong to me.
15:36 moritz_ why?
15:36 pmichaud @one in item context returns an Array, not an Int
15:36 lambdabot Maybe you meant: more vote wn
15:36 pmichaud to get the number of items we use  +@one
15:36 moritz_ pmichaud: then it should actually be in numeric context
15:36 pmichaud you're saying the arguments to '..'  should be numeric context?
15:37 moritz_ hurm
15:37 moritz_ wouldn't work for 'a'..'z'
15:37 pmichaud ...exactly.  :-)
15:37 moritz_ ok, you're right
15:37 moritz_ ... as usual ;)
15:41 pmichaud we could certainly define infix:<..>(Any, Any)   and then overload with infix:<..>(Str, Str), though.
15:45 moritz_ don't think it's a good idea atm
15:45 moritz_ although it seems to be the general trend in perl 6 :(
15:50 jjore joined #perl6
16:04 buu joined #perl6
16:05 araujo joined #perl6
16:05 stevan_ joined #perl6
16:05 fridim joined #perl6
16:05 hcchien joined #perl6
16:05 hcchien_ joined #perl6
16:09 justatheory joined #perl6
16:09 kane_ joined #perl6
16:11 pugs_svnbot r21125 | pmichaud++ | S03-operators/range.t:  Add note about use of @array as arguments to infix:<..>
16:11 Auzon moritz_: 0.. ^9 is specifically a failure case
16:12 pmichaud why is that a failure?
16:12 pmichaud (unless for the same reason that I gave for @one, @three above)
16:12 Auzon S03:1061 says it is
16:13 Auzon because it parses as 0 .. (0..9)
16:13 Auzon err, 0.. (0..8)
16:13 pmichaud S03 says it may succeed or fail.
16:13 pmichaud (i.e., we haven't decided yet.)
16:14 pmichaud so, we just don't know what it means.  We don't know that it fails.
16:14 pmichaud same as we don't know what   @one .. @three   means yet
16:14 Auzon Well, I'm testing to make sure that it's not the same as 0..9
16:15 pmichaud ah, that's true.  And you're correct, no matter what it does, it won't be the same as 0..9  :-)
16:15 pmichaud er, wait.
16:15 pmichaud er, right -- nm the "wait"
16:15 Auzon Sorry, I didn't think about which type of 'failure' it was when describing it the first time
16:16 pmichaud 0 .. ^9  would be   0 .. (0..^9)  which, assuming the latter is evaluated in numeric context, would be  0 .. 9  which would not be the same as 0 ..^ 9   :-)
16:16 cjfields joined #perl6
16:17 Auzon Yeah. :)
16:25 alanhaggai joined #perl6
16:31 kanru joined #perl6
16:33 moritz_ it would be 0 .. (0..8)
16:34 moritz_ or, whatever
16:34 Auzon or (more confusingly and as pmichaud had it) 0 .. (0 ..^ 9) ;)
16:34 Auzon ranges with endpoints of ranges are silly.
16:34 Auzon s/silly/confusing/
16:35 moritz_ unless they're meant to be multi-dimensional ;)
16:36 moritz_ rakudo: say 1.."3"
16:36 p6eval rakudo 28868: OUTPUT[123␤]
16:36 Auzon rakudo: say 1 .. 'a'
16:36 p6eval rakudo 28868: OUTPUT[␤]
16:37 moritz_ my @r = 1 .. '2'; say @r[0].WHAT
16:37 spinclad if i wanted to know if a line was in a trapezoid, i could try C< ^$num ~~ (^$left .. ^$right) > ...
16:37 meppl joined #perl6
16:37 moritz_ rakudo: my @r = 1 .. '2'; say @r[0].WHAT
16:37 p6eval rakudo 28868: OUTPUT[Int␤]
16:37 pmichaud 0 .. ^9  ==>  0 .. (0 ..^ 9)  =assumingnumericcontext=>   0 .. +(0 ..^ 9)  ==>  0 .. 9
16:38 pmichaud since +(0..^9) == 9  :-)
16:38 moritz_ I think we should forbid ranges of stuff that hasn't implemented ++
16:38 moritz_ just too mis-leading
16:40 pmichaud except that   ++  may in fact be valid on ranges :-)
16:41 pmichaud (0..10) + 2   becomes   2..12
16:41 Auzon You'd use a hyper operator there, wouldn't you?
16:42 pmichaud not necessarily.  In particular:
16:42 spinclad the main advantage to ranges of ranges i see at the moment is for the Pythagoreans among us:  0 .. (0 .. 3) is the mystic tetractys, the triangle of 10 dots; 0 .. (0 .. (0 .. 2)) is the pyramid of 10 dots.
16:42 pmichaud 11 ~~ ((0..10) + 2)    # Bool::True
16:42 spinclad this seems like a marginal market to me
16:42 pmichaud I'm only quoting S03.
16:43 vixey hehehe spinclad
16:43 pmichaud S03:2743
16:43 pmichaud (1..11:by(2)) * 5           # same as 5..55:by(10)
16:44 [particle] left #perl6
16:45 spinclad (so, oddly, 0 .. (0 .. 3) and 0 .. (0 .. ^3) are both 10, but different ways.)
16:46 pmichaud spinclad: no,  0 .. +(0.. 3)    would be 0 .. 4
16:46 spinclad pmichaud: sorry, i wasn't using the + interpretation, but the triangular one.  sorry for crosstalk.
16:46 pmichaud oh.
16:47 pmichaud okay, I get it.
16:47 pmichaud anyway, afk, lunch
16:48 ruoso joined #perl6
16:55 eternaleye joined #perl6
17:07 apeiron_ joined #perl6
17:15 tuxdna joined #perl6
17:16 kanru joined #perl6
17:41 Pzt joined #perl6
17:50 hercynium_ joined #perl6
17:54 justatheory joined #perl6
17:56 Alias_ joined #perl6
17:59 alanhaggai_ joined #perl6
18:08 pmurias joined #perl6
18:30 justatheory joined #perl6
18:47 Alias__ joined #perl6
18:56 PZt joined #perl6
19:00 pugs_svnbot r21126 | pmurias++ | [pixie] sanity 1-3 works
19:02 Alias_ joined #perl6
19:02 pmurias pixie: my $var = 4;say "foo $var bar";
19:03 p6eval pixie: OUTPUT[foo 4 bar␤]
19:03 pmurias perl6: my $var = 4;say "foo $var bar";
19:03 p6eval elf 21126: OUTPUT[foo $var bar␤]
19:03 p6eval ..kp6 21126: OUTPUT[foo 4 bar␤]
19:03 p6eval ..pugs: OUTPUT[foo 4 bar␤]
19:03 p6eval ..rakudo 28871: OUTPUT[foo 4 bar␤]
19:04 Auzon pixie: if 1 {say "pixie++"}
19:05 Auzon I think I broke it
19:05 p6eval pixie: RESULT[error: syntax error at (eval 208) line 3, near "if 1"␤]
19:06 polettix joined #perl6
19:24 cjfields_ joined #perl6
19:38 pmurias joined #perl6
19:38 pmurias pixie: say 5;
19:38 p6eval pixie: OUTPUT[5␤]
19:38 pmurias Auzon: if is in sanity 4 ;)
19:53 jferrero joined #perl6
19:57 Auzon joined #perl6
19:57 pmurias joined #perl6
19:58 pmurias diakopter: how do you handle state in your packrat grammar?
20:01 meppl joined #perl6
20:04 Auzon joined #perl6
20:32 hercynium_ joined #perl6
20:40 pugs_svnbot r21127 | lwall++ | [STD] propagate current match state down into tweaks for better error messages
21:02 Limbic_Region joined #perl6
21:17 r0bby joined #perl6
21:25 japhb joined #perl6
21:58 Limbic_Region joined #perl6
22:16 cognominal_ joined #perl6
22:27 cjfields joined #perl6
22:30 pugs_svnbot r21128 | lwall++ | [STD] more state propagation
22:44 japhb joined #perl6
23:05 justatheory joined #perl6
23:25 meppl good night
23:26 eternaleye joined #perl6
23:26 cathyal joined #perl6
23:35 justatheory joined #perl6
23:39 bacek joined #perl6

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

Perl 6 | Reference Documentation | Rakudo