Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2008-07-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:07 jfredett_ joined #perl6
00:20 xinming joined #perl6
00:22 a-jing joined #perl6
00:23 a-jing left #perl6
00:40 cjfields joined #perl6
00:44 Auzon moritz_: t/spec/S02-builtin_data_types/range.t can be added to spectest_regression (slightly impure)
00:44 pugs_svnbot r21156 | Auzon++ | [gsoc_spectest] added some range tests for *..*. Also added some tests for bugs in Rakudo's handling of Inf versus -Int. Added some basic tests for p5=>. (added 15 tests)
00:44 Auzon that should be "Inf versus -Inf", and those are in t/operators/arith.t.
00:53 alester_ joined #perl6
00:57 cjfields_ joined #perl6
01:02 pugs_svnbot r21157 | Auzon++ | [gsoc_spectest] Added tests for the little-mentioned reverse method on Hashes. (added 4 tests)
01:07 Auzon What does this message from Rakudo mean? "Method 'isdecl' not found for invocant of class 'PAST::Op'"
01:09 ingy hi scrottie  :)
01:15 pmichaud it means that whatever is being declared with 'my' or 'our' isn't a simple variable.  Rakudo and PCT don't know how to handle those yet.
01:18 Auzon thanks pmichaud. If you want, you can add that test I mentioned above to spectest_regression since I think moritz_ is asleep now
01:19 pmichaud I'm catching up on other backlogged items :-)
01:19 Auzon ok :)
01:19 pmichaud I'll get to it if I can but it might not happen soon, so moritz++ may get to it before me anyway.
01:20 pmichaud any comments or thoughts to add on my recent blog post?  http://www.rakudo.org/2008/0​7/wheres-the-goal-line.html
01:22 Auzon If you're looking for diving in points, you can mention t/TASKS, which is just a list of things to help in the test suite that require minimal knowledge. I try to keep a few items in there for other people to grab if they want.
01:23 pmichaud oh, that's a good poing.  I'll add that to the post.
01:23 pmichaud s/poing/point/
01:23 Auzon And you may want to mention this channel as a coordination point for all things Perl 6
01:24 Auzon I'm usually willing to help someone get involved with the tests.
01:24 pmichaud I will do that.
01:24 Auzon Thanks for the visibility pmichaud++
01:25 pmichaud thank *you* for the outstanding work on the tests -- it is a huge help to Rakudo (and Perl 6)
01:29 justatheory joined #perl6
01:37 rakudo_svn r28928 | pmichaud++ | [rakudo]:
01:37 rakudo_svn r28928 | pmichaud++ | Make sure the expression in a for statement is interpreted in
01:37 rakudo_svn r28928 | pmichaud++ | list context.  cjfields++ for finding and reporting this.
01:39 pmichaud for [1..3,4..6] { say $_.WHAT; }
01:39 pmichaud rakudo: for [1..3,4..6] { say $_.WHAT; }
01:39 p6eval rakudo 28927: OUTPUT[Int␤Int␤Int␤Int␤Int␤Int␤]
01:39 pmichaud (not updated yet)
01:41 Auzon rakudo: my $a = "abc"; my @b = $a; say @b.WHAT
01:41 p6eval rakudo 28928: OUTPUT[Array␤]
01:41 Auzon rakudo: my $a = "abc"; my @b = $a.reverse; say @b.WHAT
01:41 p6eval rakudo 28928: OUTPUT[Array␤]
01:43 pmichaud rakudo: for [1..3,4..6] { say $_.WHAT; }
01:43 p6eval rakudo 28928: OUTPUT[Array␤]
01:43 pmichaud yay.
01:43 Auzon pmichaud++ :D
01:43 pmichaud perl6:  for [1..3,4..6] { say $_ }
01:43 p6eval elf 21157: OUTPUT[123456␤]
01:43 p6eval ..kp6 21157: OUTPUT[syntax error at position 4, line 1 column 4:␤for [1..3,4..6] { say $_ ␤    ^ HERE␤]
01:43 p6eval ..pugs: OUTPUT[1 2 3 4 5 6␤]
01:43 p6eval ..rakudo 28928: OUTPUT[1 2 3 4 5 6␤]
01:44 pmichaud yay.
01:50 Auzon I have doubts about the isa_ok function's accuracy in Rakudo's Test.pm...
01:50 pmichaud probably good reason to doubt them, too :-)
01:50 Auzon @foo.WHAT and @foo ~~ Type both work, so we'll use them instead.
01:50 pmichaud I have doubts about Parrot's 'isa' opcode, myself.
01:51 pmichaud we can always fix Test.pm
01:51 Auzon Which is what this function uses: multi sub isa_ok($var,$type) {ok($var.isa($type), "The object is-a '$type'");}
01:51 pmichaud well, @foo ~~ Type does more than simple 'isa' semantics, I think
01:52 pmichaud because it also checks for 'does'
01:52 Auzon Yeah. But .WHAT eq 'Class' should be the same as .isa('Class')
01:55 Auzon and it looks like .isa in Rakudo calls directly to the isa opcode.
01:59 pmichaud well, if .WHAT eq 'Class' returns true then I would expect .isa('Class') to return true also
01:59 pmichaud but the converse is not true
01:59 Auzon rakudo: my @a = <1 2 3>; say @a.WHAT; say @a.isa('Array');
01:59 p6eval rakudo 28929: OUTPUT[Array␤0␤]
01:59 pmichaud and afaik we still haven't heard official word if strings are valid arguments to .isa (although I suspect they are)
01:59 pmichaud ohhhhhhhhh
02:00 pmichaud that's because Parrot has its own 'Array' class, that isn't the same as Rakudo's Array
02:00 pmichaud hrm.
02:00 pmichaud rakudo:  my @a = <1 2 3>; say @a.isa(Array);
02:00 p6eval rakudo 28929: OUTPUT[1␤]
02:01 Auzon mmm... ok, we'll avoid the string form then
02:01 pugs_svnbot r21158 | Auzon++ | [gsoc_spectest] fudged reverse.t for Rakudo
02:04 pugs_svnbot r21159 | Auzon++ | [gsoc_spectest] unfudging two tests
02:05 Auzon moritz_ or anyone else: t/spec/S29-list/reverse.t can be added to spectest_regression, too
02:15 PZt joined #perl6
02:20 Auzon the next data point in the chart should be a nice jump. 1793 total tests :)
02:24 Schwern joined #perl6
02:26 pugs_svnbot r21160 | pmichaud++ | S29-list/first.t: update skip message, convert tabs to spaces
02:43 cjfields joined #perl6
02:50 Psyche^ joined #perl6
02:50 cjfields joined #perl6
02:52 cjfields_ joined #perl6
03:02 elmex joined #perl6
03:19 kanru joined #perl6
03:25 xinming joined #perl6
03:31 xinming_ joined #perl6
03:32 cjfields joined #perl6
03:36 snooper joined #perl6
03:38 pmichaud rakudo: for [1..3,4..6] { say $_.WHAT }
03:38 p6eval rakudo 28931: OUTPUT[Array␤]
03:47 cjfields left #perl6
04:02 pugs_svnbot r21161 | cjfields++ | * add some list context tests per #perl6 and #parrot discussions
04:02 pugs_svnbot r21161 | cjfields++ | * will convert over to t/spec/S04-statements/for.t for spec regression tests
04:02 pugs_svnbot r21162 | pmichaud++ | Some updates to S29-list.
04:02 pugs_svnbot r21163 | pmichaud++ | Add a note that "XXX" marks places where the test needs review.
04:07 Alias__ joined #perl6
04:07 pugs_svnbot r21164 | pmichaud++ | S29-list/first.t:  Change "adverbial closure" to "adverbial block"
04:10 pugs_svnbot r21165 | pmichaud++ | S29-num/abs.t:  correct #?rakudo skip message
04:16 pugs_svnbot r21166 | pmichaud++ | S29-str/chop.t:  Correct #?rakudo skip message.
04:16 kanru joined #perl6
04:32 Psyche^ joined #perl6
04:59 lambdabot joined #perl6
05:07 rindolf joined #perl6
05:07 justatheory joined #perl6
05:34 PZt joined #perl6
05:35 xinming joined #perl6
05:39 justatheory joined #perl6
05:43 xinming__ joined #perl6
05:51 Psyche^ joined #perl6
05:53 xinming_ joined #perl6
05:59 alanhaggai joined #perl6
06:07 xinming joined #perl6
06:17 xinming__ joined #perl6
06:40 xinming joined #perl6
06:45 moritz_ Auzon: adding the two tests to spectest_regression - will commit after running the tests
06:50 xinming_ joined #perl6
06:54 rakudo_svn r28932 | moritz++ | [rakudo] fix infix:<x> for negative repetition count, patch curtesy of
06:54 rakudo_svn r28932 | moritz++ | bacek++. Closes RT #56516
06:56 xinming joined #perl6
06:57 rakudo_svn r28933 | moritz++ | [rakudo] adding two more files to spectest_regression
06:57 rakudo_svn r28933 | moritz++ | Auzon++ for fudging and reporting
07:06 alanhaggai joined #perl6
07:06 Psyche^ joined #perl6
07:09 spinclad perl6: for [1..3,4..6] { .WHAT.say }
07:09 p6eval elf 21166: OUTPUT[Use of uninitialized value in concatenation (.) or string at ./elf_f line 3408.␤syntax error at (eval 119) line 4, near "{->WHAT"␤ at ./elf_f line 3861␤]
07:09 p6eval ..kp6 21166: OUTPUT[syntax error at position 4, line 1 column 4:␤for [1..3,4..6] { .WHAT.say ␤    ^ HERE␤]
07:09 p6eval ..pugs: OUTPUT[Array␤]
07:09 p6eval ..rakudo 28933: OUTPUT[No result object␤current instr.: 'parrot;Perl6;Grammar;Actions;expect_term' pc 118605 (src/gen_actions.pir:9400)␤]
07:09 moritz_ spinclad: rakudo doesn't do implicit $_ invocant yet
07:10 moritz_ rakudo: for [1..3, 4..6] { $_.WHAT.say }
07:10 p6eval rakudo 28933: OUTPUT[Array␤]
07:11 spinclad i'm a bit surprised so few of our stable do it
07:11 xinming_ joined #perl6
07:12 spinclad perl6: for 1..3,4..6 { .WHAT.say }
07:12 p6eval elf 21166: OUTPUT[Use of uninitialized value in concatenation (.) or string at ./elf_f line 3408.␤syntax error at (eval 119) line 4, near "{->WHAT"␤ at ./elf_f line 3861␤]
07:12 p6eval ..kp6 21166: OUTPUT[syntax error at position 8, line 1 column 8:␤for 1..3,4..6 { .WHAT.say ␤        ^ HERE␤]
07:12 p6eval ..pugs: OUTPUT[Int␤Int␤Int␤Int␤Int␤Int␤]
07:12 p6eval ..rakudo 28933: OUTPUT[No result object␤current instr.: 'parrot;Perl6;Grammar;Actions;expect_term' pc 118605 (src/gen_actions.pir:9400)␤]
07:12 spinclad perl6: for 1..3,4..6 { $_.WHAT.say }
07:12 p6eval elf 21166: OUTPUT[Int␤Int␤Int␤Int␤Int␤Int␤]
07:12 p6eval ..kp6 21166: OUTPUT[syntax error at position 8, line 1 column 8:␤for 1..3,4..6 { $_.WHAT.say ␤        ^ HERE␤]
07:12 p6eval ..pugs: OUTPUT[Int␤Int␤Int␤Int␤Int␤Int␤]
07:12 p6eval ..rakudo 28933: OUTPUT[Int␤Int␤Int␤Int␤Int␤Int␤]
07:12 moritz_ spinclad: no so surprising if you know a bit about STD. I tried to detect the case in rakudo's grammar (which is modelled after STD), and failed
07:13 spinclad kp6: for 1..3 { $_.WHAT.say }
07:13 p6eval kp6 21166: 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  ␤]
07:13 spinclad do you know, is it spectested yet?
07:14 moritz_ spinclad: it's used all over the test suite
07:14 moritz_ spinclad: which makes it quite an annoyance that rakudo doesn't implement it yet
07:15 a-jin1 joined #perl6
07:15 spinclad so fixing it would give a nice boost
07:15 moritz_ indeed
07:15 moritz_ as would my ($var1, $var2);
07:16 rakudo_svn r28934 | moritz++ | [rakudo] added S29-str/lc.t to spectest_regression
07:17 a-jin1 left #perl6
07:28 xinming joined #perl6
07:49 tuxdna joined #perl6
07:51 xinming_ joined #perl6
07:58 xinming__ joined #perl6
08:13 barney joined #perl6
08:21 BinGOs joined #perl6
08:24 xinming joined #perl6
08:24 meppl joined #perl6
08:36 Jedai joined #perl6
08:43 chris2 joined #perl6
09:09 wknight8111 joined #perl6
09:18 tuxdna left #perl6
09:18 tuxdna joined #perl6
09:44 smtms joined #perl6
10:01 ludan joined #perl6
10:04 moritz_ pixie: my ($a, $b); say 1;
10:04 moritz_ elf: my ($a, $b); say 1;
10:04 p6eval pixie: OUTPUT[1␤]
10:04 p6eval elf 21166: OUTPUT[1␤]
10:20 smtms_ joined #perl6
10:20 pugs_svnbot r21167 | moritz++ | [spec] unfudged a few tests, added a test to S29-str/lc.t
10:22 redicaps joined #perl6
10:31 redicaps left #perl6
10:35 rakudo_svn r28944 | moritz++ | [rakudo] add tools/autounfudge.pl
10:51 smtms_ joined #perl6
11:06 smtms_ joined #perl6
11:55 pmurias joined #perl6
12:00 pmurias joined #perl6
12:15 Jedai joined #perl6
12:18 pmurias TimToady: what is the STD5.pm self-parsing speed goal?
12:19 pmurias s/self-parsing/STD.pm parsing/
12:24 moritz_ pmurias: what's the recommended way to get a parse tree out of STD5?
12:24 moritz_ pmurias: specifically I'm intersted in how 'my ($x, $y)' would parse
12:25 pmurias i use STD5_dump_match
12:26 moritz_ I just get a parse failure :(
12:28 pmurias me too
12:29 moritz_ I wanted to implement that in rakudo, so I tried to find out how STD.pm parses it
12:29 moritz_ turns out not at all ;)
12:29 moritz_ which is a bad way to do it
12:32 pmurias moritz_: it works if you pass it a file
12:33 moritz_ pmurias: with STD5_dump_match? not for me
12:33 pmurias how do you invoke it?
12:33 moritz_ perl5.10.0 STD5_dump_match foo
12:34 pmurias cat foo
12:34 moritz_ my ($x, $y);
12:35 moritz_ pmurias: could you paste me the parse tree please?
12:35 pmurias moritz_: it works here
12:36 pmurias do you have an up to date STD5.pm?
12:36 moritz_ I did a gimme5 STD.pm > STD5.pm
12:36 pmurias and rm -fr lex?
12:38 moritz_ ah, that does the trick
12:39 barney joined #perl6
12:46 moritz_ pmurias++
12:51 iblechbot joined #perl6
13:01 cmarcelo joined #perl6
13:04 alester_ joined #perl6
13:04 rindolf joined #perl6
13:19 riffraff joined #perl6
13:20 riffraff joined #perl6
13:22 moritz_ rakudo: say('foo')
13:22 p6eval rakudo 28949: OUTPUT[foo␤]
13:22 moritz_ rakudo: say(sqrt('foo'))
13:22 p6eval rakudo 28949: OUTPUT[0␤]
13:24 rurban joined #perl6
13:25 rurban packaging questions allowed?
13:26 moritz_ rurban: you can try ;)
13:27 rurban Hi :) I'm just making up the new parrot packages for cygwin. I wonder how others named the rakudo or perl6 package? I want to name it parrot-perl6.
13:27 rurban I found nothing useful at debian, gentoo and freebsd ports.
13:28 rurban For pugs I need first ghc and this is a major work todo, so the simple parrot languages first.
13:28 moritz_ rurban: I don't know if they have a different package at all
13:29 moritz_ rurban: but I recommend #parrot on irc.perl.org
13:29 rurban Ok. I'll try there. Maybe rakudo is not ready yet for primetime.
13:37 wknight8111 joined #perl6
13:54 moritz_ it just needs more attention ;)
13:58 Alias__ joined #perl6
14:01 rurban left #perl6
14:02 a-jin1 joined #perl6
14:02 a-jin1 left #perl6
14:06 Alias_ joined #perl6
14:09 orafu joined #perl6
14:17 TJCRI joined #perl6
14:21 iblechbot joined #perl6
14:25 * rindolf is writing an email to TPF.
14:31 jferrero joined #perl6
14:50 Guest16015 joined #perl6
14:53 bacek_ joined #perl6
14:54 vixey joined #Perl6
14:55 peepsalot joined #perl6
15:05 c1sung joined #perl6
15:08 Exodist joined #perl6
15:12 ggoebel joined #perl6
15:13 araujo joined #perl6
15:14 riffraff joined #perl6
15:18 justatheory joined #perl6
15:24 sri_work joined #perl6
15:25 ludan joined #perl6
15:35 tuxdna left #perl6
15:38 Lorn_ joined #perl6
15:40 Alias_ joined #perl6
15:48 Alias__ joined #perl6
16:03 jfredett_ joined #perl6
16:08 ruoso joined #perl6
16:11 rakudo_svn r28960 | pmichaud++ | [rakudo]:
16:11 rakudo_svn r28960 | pmichaud++ | * Update spectest-progress.csv:  80 files, 1290 passing tests
16:12 meppl joined #perl6
16:18 mj41 joined #perl6
16:34 broquaint joined #perl6
16:56 Alias_ joined #perl6
17:14 meppl joined #perl6
17:18 cjfields joined #perl6
17:22 kanru joined #perl6
17:24 eternaleye joined #perl6
17:38 DietCoke rakudo calls itself perl6 when the fake-cecutable is built, but I can see if you had multiple perl6es how that would be an issue. I think calling it "rakudo" in a port is fine.
17:39 DietCoke I'm not sure having a separate port for parrot and the languages will work, since the languages expect to be in the build directory of parrot when built, but that's a question for #parrot on irc.perl.org
17:40 ruoso DietCoke, the executable perl6 will probably be handled the same way the "java" executable is... I consider the rakudo use of "perl6" as legacy...
17:40 DietCoke While I'm a java guy, I don't know what you're referring to here.
17:41 ruoso the "java" executable is provided by every implementation...
17:41 ruoso the user is the one who chooses which one to use
17:41 ruoso in Debian, for instance, there is the "update-alternatives" tool
17:41 ruoso that helps in managing that...
17:42 hercynium joined #perl6
17:42 DietCoke yes, but with java, you typically have a directory "somewhere", and you can add those to your path or not. With a package manager, I'm more used to the executable ending up in a single directory; having two 'java's or two 'perl6's there could be problematic.
17:42 DietCoke s/c/w/
17:43 PerlJam "typiwally"?
17:43 PerlJam :-)
17:43 DietCoke ah, pedants. s/could/would/; but yah, it would be nice if all the various perl6's agreed on that.
17:44 DietCoke and apologies for my extra apostrophes. =-)
17:52 wks joined #perl6
17:56 Gothmog_ you might also have an executable perl6.rakudo and a symlink perl6 to it...
17:58 wks left #perl6
18:01 planofish joined #perl6
18:17 pmichaud once @Larry comes up with a standard for perl6 invocation options, we'll probably look at switching rakudo then.
18:30 rindolf joined #perl6
18:35 pugs_svnbot r21168 | Auzon++ | [gsoc_spectest] added more range tests, fixed existing ones, and unfudged some passing ones. (added 27 tests, removed 2)
18:38 pugs_svnbot r21169 | pmichaud++ | S29-num/rand.t:  remove #?rakudo skip line since RT #56184 is now fixed
18:39 cjfields Auzon: I added some tests to t/statements/for.t yesterday (don't think it is in spec yet)
18:39 vixey joined #Perl6
18:39 Auzon cjfields++: Excellent!
18:40 Auzon There's also a t/statements/for_with_only_one_item.t that might have some related tests.
18:41 Auzon Your tests look good to me, though. :)
18:41 pmichaud and I'd hope they end up in a single file :-)
18:41 cjfields agreed
18:57 stevan_ joined #perl6
19:01 pmichaud #perl6-soc in 30
19:01 pmichaud 29
19:04 ruoso joined #perl6
19:04 pugs_svnbot r21170 | Auzon++ | [gsoc_spectest] fixed syntax error in pi.t and added more general TASKS
19:05 Auzon pmichaud: Regarding that syntax error, my guess is that it was from an eval('whatever') or similar being partially removed
19:28 Auzon #perl6-soc in 2 minutes
19:32 pmichaud #perl6-soc in -2?
19:32 Auzon yes.
19:33 tuxdna joined #perl6
19:33 tuxdna /users
20:09 cggoebel joined #perl6
20:50 lisppaste3 joined #perl6
20:56 jferrero joined #perl6
20:56 rindolf joined #perl6
20:56 jfredett joined #perl6
20:56 c1sung joined #perl6
20:56 Jedai joined #perl6
20:56 snooper joined #perl6
20:56 yahooooo joined #perl6
20:56 pjcj joined #perl6
20:58 yahooooo joined #perl6
21:28 redicaps joined #perl6
21:41 moritz_ sorry, forgot to mention that I'd be absent for #perl6-soc
21:41 * moritz_ backlogs
21:55 meppl joined #perl6
22:20 meppl joined #perl6
22:23 redicaps left #perl6
22:38 breinbaas joined #perl6
22:38 sri_work joined #perl6
22:47 asita joined #perl6
23:38 meppl good night
23:41 Coleoid_ left #perl6

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

Perl 6 | Reference Documentation | Rakudo