Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2008-06-16

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:04 ywc joined #perl6
00:06 s1n joined #perl6
00:06 japhb joined #perl6
00:07 japhb joined #perl6
00:16 s1n joined #perl6
00:16 jferrero joined #perl6
00:20 s1n joined #perl6
00:20 jferrero joined #perl6
00:21 rakudo_svn r28401 | pmichaud++ | [rakudo]:
00:21 rakudo_svn r28401 | pmichaud++ | * Move postfix:<i> from builtins/op.pir to classes/Complex.pir .
00:22 s1n joined #perl6
00:22 jferrero joined #perl6
00:23 s1n joined #perl6
00:23 jferrero joined #perl6
00:30 [particle]ventus joined #perl6
00:36 wknight8111 joined #perl6
00:43 s1n joined #perl6
00:43 jferrero joined #perl6
00:50 kanru joined #perl6
00:57 wknight8111 joined #perl6
01:01 dolmen pmichaud, are you working on Complex?
01:02 pmichaud I was just refactoring postfix:<i> at the moment.
01:02 pmichaud rakudo: say 4+3i;
01:02 p6eval rakudo r28402 OUTPUT[4+3i␤]
01:03 Auzon rakudo: (4+3i).perl.say
01:03 p6eval rakudo r28402 OUTPUT[Method 'perl' not found for invocant of class 'Complex'␤current instr.: '_block11' pc 60 (EVAL_12:21)␤
01:03 dolmen I will try to improve that a bit
01:03 dolmen rakudo: say 3i.WHAT;
01:03 p6eval rakudo r28402 OUTPUT[Statement not terminated properly at line 1, near ".WHAT;"␤current instr.: 'parrot;PGE::Util;die' pc 120 (runtime/parrot/library/PGE/Util.pir:82)␤
01:04 Auzon rakudo: (3i).WHAT.say
01:04 p6eval rakudo r28402 OUTPUT[Method 'WHAT' not found for invocant of class 'Complex'␤current instr.: '_block11' pc 42 (EVAL_12:18)␤
01:04 Auzon I thought .WHAT would be for Any?
01:04 Auzon rakudo: Any.WHAT.say
01:04 p6eval rakudo r28402 OUTPUT[Any␤]
01:05 pmichaud I didn't bother to map Parrot's Complex class to a Rakudo equivalent.
01:05 pmichaud I can do that.
01:05 Auzon Would that improve anything?
01:05 pmichaud or I can leave it for dolmen to do it :-)
01:05 pmichaud yes.  The Complex type that is showing up now is actually a Parrot object (i.e., not a subclass of Perl 6's Object)
01:05 dolmen yes, I'm on it
01:05 pmichaud so that's why .WHAT is failing.
01:05 pmichaud dolmen++
01:08 rakudo_svn r28403 | pmichaud++ | [rakudo]:
01:08 rakudo_svn r28403 | pmichaud++ | * Fix prefix:<^>(Any) to return an exclusive Range instead of an inclusive one.
01:08 rakudo_svn r28403 | pmichaud++ | * Refactor prefix:<^>(Any) into src/classes/Range.pir .
01:08 Auzon rakudo: my enum Day <Sun Mon Tue Wed Thu Fri Sat>; Day.perl.say
01:08 p6eval rakudo r28402 OUTPUT[Statement not terminated properly at line 1, near "Mon Tue We"␤current instr.: 'parrot;PGE::Util;die' pc 120 (runtime/parrot/library/PGE/Util.pir:82)␤
01:08 pmichaud rakudo doesn't do enum yet.
01:08 Auzon oh
01:09 pmichaud at least, I don't think it does, unless jonathan++ slipped it in on me.  :-)
01:13 Auzon rakudo: my %h = enum <a b c>; %h.perl.say
01:13 p6eval rakudo r28403 OUTPUT[Could not find non-existent sub enum␤current instr.: '_block11' pc 56 (EVAL_12:24)␤
01:18 redicaps joined #perl6
01:19 Tene Auzon: what is enum?
01:20 Auzon S12:1650 or http://perlcabal.org/syn/S12.html#Enums
01:20 lambdabot Title: S12
01:23 Tene ah, right.
01:24 Auzon I've never needed one in programming that I know of, so that's the best explanation that I can give
01:26 bacek__ joined #perl6
01:27 Ched- joined #perl6
01:33 baest joined #perl6
01:33 xinming joined #perl6
01:33 elmex joined #perl6
01:33 ilogger2 joined #perl6
01:33 smtms joined #perl6
01:33 hcchien joined #perl6
01:33 viklund joined #perl6
01:33 Helios- joined #perl6
01:33 integral joined #perl6
01:33 orafu joined #perl6
01:34 dolmen pmichaud, I created onload for Complex
01:35 pmichaud dolmen++
01:35 dolmen I now have to replace the construction of Complex inf e.g. infix:+
01:35 dolmen s/inf/in/
01:36 dolmen I'm not sure if Complex is an object or just a wrapper around a parrot type
01:37 dolmen In postfix:i, "$0[1] = a" puzzles me
01:37 pmichaud follow the example for things like Int, Float
01:38 pmichaud actually
01:38 pmichaud you may just be able to do a 'register'
01:38 pmichaud just a sec
01:40 pmichaud http://nopaste.snit.ch/13281
01:40 pmichaud methods then go into the ['Perl6Complex'] namespace
01:49 dolmen In Num and Int, this is reversed
01:50 dolmen pmichaud: Is it because 'Complex' is already the name of the parrot type?
01:52 pmichaud yes.
01:52 pmichaud Since Parrot already grabs the name 'Complex', we have to use a different name for Rakudo's type.
01:52 pmichaud which also tells me that my nopaste was wrong.
01:52 pmichaud just a sec
01:52 pmichaud (perhaps 'Hash' is a better model)
01:53 pmichaud http://nopaste.snit.ch/13282
01:53 pmichaud no, Hash isn't a good model either.
01:53 pmichaud anyway, nopaste #13282 should be a better start.
01:54 dolmen I already wrote that
01:54 pmichaud (the 'name'=> option is what I added)
01:54 pmichaud dolmen++
01:55 Auzon What happens if someone defines a class name of 'also' and someone tries to inherit from it?
01:55 Auzon perl6: class also {}; class Foo is also {}; say Foo ~~ also;
01:56 p6eval kp6 r20832: OUTPUT[no method 'APPLY' in Class 'Undef'␤ at compiled/perl5-kp6-mp6/lib/Ki​ndaPerl6/Runtime/Perl5/MOP.pm line 345␤
01:56 p6eval ..pugs: OUTPUT[␤]
01:56 p6eval ..rakudo r28403: OUTPUT[invoke() not implemented in class 'also'␤current instr.: '_block11' pc 36 (EVAL_10:19)␤
01:56 p6eval ..elf r20832: OUTPUT[syntax error at (eval 14) line 14, near "Foo ~"␤ at ./elf_f_faster line 4549␤]
01:56 pmichaud I suspect that class 'also' should fail.
01:56 pmichaud actually, no.
01:56 pmichaud hrm.
01:56 pmichaud I'll let someone else figure that out.  :-)
01:57 Auzon 'open' and 'nonfinal' have similar problems
01:57 Auzon and 'hidden'
02:12 Auzon S12:1797 says to 'use oo :closed :final', but 1806, 1817, and 1822 'use class :open' or 'use class :nonfinal'. Can someone explain the why this is inconsistent?
02:23 bacek__ rakudo: min({ abs $^a <=> abs $^b }, (-2..2));
02:23 p6eval rakudo r28403 RESULT[0]
02:24 bacek__ rakudo: say min({ abs $^a <=> abs $^b }, (-2..2));
02:24 p6eval rakudo r28403 OUTPUT[0␤]
02:24 bacek__ rakudo: min({ abs 0+$^a <=> abs 0+$^b }, (-2..2));
02:24 p6eval rakudo r28403 RESULT[0]
02:24 Auzon rakudo: min(-50 .. 50).say
02:24 p6eval rakudo r28403 OUTPUT[-50␤]
02:27 pmichaud pugs: say ((0,1,2) X (0,1,2)).perl
02:27 p6eval OUTPUT[((0, 0), (0, 1), (0, 2), (1, 0), (1, 1), (1, 2), (2, 0), (2, 1), (2, 2))␤]
02:27 Auzon I was wondering if you had an evalbot in #parrot that I blocked :P
02:27 pmichaud just was in the wrong window.  Happens often to me.
02:32 bacek__ rakudo: my @array = <5 -3 7 0 1 -9>; say @array.min: { abs $^a <=> abs $^b };
02:32 pugs_svnbot r20833 | Auzon++ | [gsoc_spectest] tests for is also/instead/open. (added 16 tests)
02:32 p6eval rakudo r28403 OUTPUT[absolute() not implemented in class 'Perl6Str'␤current instr.: '_block25' pc 162 (EVAL_12:67)␤
02:32 bacek__ rakudo: my @array = <5 -3 7 0 1 -9>; say @array.min: { abs 0+$^a <=> abs 0+$^b };
02:32 p6eval rakudo r28403 OUTPUT[0␤]
02:32 bacek__ pmichaud: probably bug in rakudo...
02:33 pmichaud why do you think that's a bug?
02:33 pmichaud what answer do you expect?
02:34 pmichaud oh, because the first one didnt do any output?
02:34 pmichaud ah, I see.
02:34 pmichaud I don't know that I've implemented abs yet.
02:34 pmichaud at least for strings.  Just a sec.
02:36 rakudo_svn r28404 | pmichaud++ | [rakudo]:
02:36 rakudo_svn r28404 | pmichaud++ | * More prefix:<^> refactoring.
02:36 bacek__ but why it 'Perl6Str'?
02:38 pmichaud that's just how Parrot knows it.
02:38 orafu joined #perl6
02:38 integral joined #perl6
02:38 Helios- joined #perl6
02:38 viklund joined #perl6
02:38 hcchien joined #perl6
02:38 smtms joined #perl6
02:38 ilogger2 joined #perl6
02:38 elmex joined #perl6
02:38 xinming joined #perl6
02:38 baest joined #perl6
02:40 rakudo_svn r28406 | pmichaud++ | [rakudo]:
02:40 rakudo_svn r28406 | pmichaud++ | * Fix abs() for non-numeric types.
02:44 pugs_svnbot r20834 | bacek++ | [spec] Add more parentises around method calls
02:45 * diakopter wants a Perl 6 "implementation" whose Test.pm causes it to always give what the test expects (not just fake success).  Who wants to write a fudgefork to do that....?
02:46 pmichaud diakopter: ...explain?
02:47 diakopter pmichaud: :) just a joke... a pretend-implementation that feeds Test.pm whatever each test expects (dies_ok, is_deeply, etc)
02:47 Auzon You'd still need a good parser :P
02:48 diakopter in other words, an implementation that is complete.. that is, passes all the tests in the test suite
02:49 diakopter "complete"
02:50 diakopter that'd be a fun lightning talk
02:50 Auzon So basically a fake implementation that automatically passes all the tests? ;)
02:50 pmichaud I can do that by faking Test.pm :-)
02:50 Alias_ joined #perl6
02:53 diakopter pmichaud: yep, that's what I mean
02:54 diakopter well, sort of, I wanted it to actually produce the expected results, not just always give "ok"
03:02 elmex_ joined #perl6
03:02 rakudo_svn r28407 | duff++ | [rakudo]:
03:02 rakudo_svn r28407 | duff++ | * Add run builtin (Zev++ RT50558)
03:02 rakudo_svn r28407 | duff++ | * patch courtesy Zev Benjamin <zev-perl6  at strangersgate.com>
03:02 rakudo_svn r28408 | pmichaud++ | [rakudo]: Fix abs(Int) to return Int.
03:11 [1]Maghnus joined #perl6
03:20 rakudo_svn r28409 | pmichaud++ | [rakudo]:
03:20 rakudo_svn r28409 | pmichaud++ | * Add S29-list/minmax.t to spectest_regression.data (bacek++)
03:24 kunwon1 joined #perl6
03:31 BinGOs_ joined #perl6
03:31 stevan_ joined #perl6
03:34 Auzon elf: say 7 + 18 + 21 + 6 + 1 + 7 + 16
03:34 p6eval OUTPUT[76␤]
03:44 Auzon elf: say 76+73+39
03:44 p6eval OUTPUT[188␤]
03:45 alester_ joined #perl6
03:47 Alias__ joined #perl6
03:47 kolibrie joined #perl6
03:48 * kolibrie made it to YAPC
04:00 rpethe joined #perl6
04:10 a-jing joined #perl6
04:11 a-jing left #perl6
04:22 c1sung joined #perl6
04:50 stevan_ kolibrie: your here too?
05:08 rakudo_svn r28413 | coke++ | [codingstd]
05:08 rakudo_svn r28413 | coke++ |
05:08 rakudo_svn r28413 | coke++ | Pass "make codetest"
05:24 Alias_ joined #perl6
05:33 pugs_svnbot r20835 | lwall++ | [STD] various repairs to fate system
05:33 pugs_svnbot r20835 | lwall++ | [gimme5] ability to process grammars that use Perl grammar
06:18 iblechbot joined #perl6
06:18 Alias__ joined #perl6
06:20 kanru joined #perl6
06:51 Psyche^ joined #perl6
08:08 TimToady joined #perl6
08:08 kanru joined #perl6
08:08 Alias__ joined #perl6
08:08 kolibrie joined #perl6
08:08 stevan_ joined #perl6
08:08 BinGOs joined #perl6
08:08 kunwon1 joined #perl6
08:08 Maghnus joined #perl6
08:08 elmex joined #perl6
08:08 baest joined #perl6
08:08 xinming joined #perl6
08:08 ilogger2 joined #perl6
08:08 smtms joined #perl6
08:08 hcchien joined #perl6
08:08 viklund joined #perl6
08:08 Helios- joined #perl6
08:08 integral joined #perl6
08:08 orafu joined #perl6
08:08 Ched- joined #perl6
08:08 bacek__ joined #perl6
08:08 redicaps joined #perl6
08:08 s1n joined #perl6
08:08 [particle]ventus joined #perl6
08:08 japhb joined #perl6
08:08 alester joined #perl6
08:08 diakopter joined #perl6
08:08 pengrate joined #perl6
08:08 kcwu joined #perl6
08:08 cls_bsd joined #perl6
08:08 silug joined #perl6
08:08 gugod joined #perl6
08:08 drbean joined #perl6
08:08 pasteling joined #perl6
08:08 spinclad_ joined #perl6
08:08 Ara5n joined #perl6
08:08 SubStack joined #perl6
08:08 lambdabot joined #perl6
08:08 bacek joined #perl6
08:08 mofino joined #perl6
08:08 ingy joined #perl6
08:08 dalek joined #perl6
08:08 eternaleye joined #perl6
08:08 bbkr__ joined #perl6
08:08 Coleoid joined #perl6
08:08 araujo joined #perl6
08:08 lumi joined #perl6
08:08 jan_____ joined #perl6
08:08 rhr_ joined #perl6
08:08 r0bby joined #perl6
08:08 thepler joined #perl6
08:08 cj joined #perl6
08:08 ruoso joined #perl6
08:08 yahooooo joined #perl6
08:08 Caelum_ joined #perl6
08:08 meteorjay joined #perl6
08:08 apeiron joined #perl6
08:08 xdg joined #perl6
08:08 fullermd joined #perl6
08:08 Lunchy joined #perl6
08:08 Auzon joined #perl6
08:08 jiing joined #perl6
08:08 qmole_ joined #perl6
08:08 Ingmar joined #perl6
08:08 PerlJam joined #perl6
08:08 pmichaud joined #perl6
08:08 p6eval joined #perl6
08:08 Southen joined #perl6
08:08 felipe joined #perl6
08:08 vixey joined #perl6
08:09 nothingmuch joined #perl6
08:09 zostay joined #perl6
08:09 pjcj joined #perl6
08:09 Khisanth joined #perl6
08:09 Gothmog_ joined #perl6
08:09 agentzh joined #perl6
08:09 osfameron joined #perl6
08:09 pugs_svnbot joined #perl6
08:09 awwaiid joined #perl6
08:09 charsbar joined #perl6
08:09 kane_ joined #perl6
08:09 broquaint joined #perl6
08:09 TreyHarris joined #perl6
08:09 rakudo_svn joined #perl6
08:09 tcliou_ joined #perl6
08:09 erikh joined #perl6
08:09 yath joined #perl6
08:09 lisppaste3 joined #perl6
08:09 avar joined #perl6
08:09 wolverian joined #perl6
08:09 moritz_ joined #perl6
08:09 nnunley joined #perl6
08:09 allbery_b joined #perl6
08:09 audreyt joined #perl6
08:09 buu joined #perl6
08:09 clkao joined #perl6
08:09 Juerd joined #perl6
08:09 jjore joined #perl6
08:09 Grrrr joined #perl6
08:09 jrockway joined #perl6
08:09 arguile joined #perl6
08:09 Maddingue joined #perl6
08:09 LCamel joined #perl6
08:09 IRSeekBot joined #perl6
08:09 nipotaway joined #perl6
08:09 Tene joined #perl6
08:09 speckbot joined #perl6
08:09 buubot joined #perl6
08:09 obra joined #perl6
08:09 mtve joined #perl6
08:10 ontel joined #perl6
08:13 redicaps left #perl6
08:20 elmex joined #perl6
08:23 cosimo joined #perl6
08:27 Alias_ joined #perl6
08:34 renormalist joined #perl6
08:39 Psyche^ joined #perl6
08:49 gbacon_ joined #perl6
09:02 IllvilJa joined #perl6
09:26 mj41 joined #perl6
09:36 kanru joined #perl6
09:51 chris2 joined #perl6
10:17 wknight8111 joined #perl6
11:15 rindolf joined #perl6
11:16 eevee joined #perl6
11:29 Ched- left #perl6
11:31 ched joined #perl6
11:32 ched left #perl6
11:34 pbuetow joined #perl6
11:38 FurnaceBoy joined #perl6
11:39 a-jing joined #perl6
11:39 a-jing left #perl6
11:42 Lorn joined #perl6
11:48 a-jing joined #perl6
12:03 iblechbot joined #perl6
12:23 SamB joined #perl6
12:27 Ched- joined #perl6
12:30 Ched- left #perl6
12:36 Jedai joined #perl6
12:38 wknight8111 joined #perl6
12:40 donaldh joined #perl6
12:41 thepler joined #perl6
13:13 cmarcelo joined #perl6
13:17 mj41 joined #perl6
13:25 pmurias joined #perl6
13:27 a-jing left #perl6
13:47 IllvilJa joined #perl6
13:52 eternaleye_ joined #perl6
13:55 TJCRI joined #perl6
13:57 renormalist joined #perl6
14:23 pmurias Nl
14:23 pmurias joined #perl6
14:23 diakopter Nl?
14:23 pmurias diakopter: hi
14:24 diakopter pmurias: hi
14:24 pmurias typing accident
14:24 pmurias lunch&
14:24 diakopter @yaNApc
14:24 lambdabot Unknown command, try @list
14:36 pmurias will you be at yapc europe?
14:39 TreyHarris joined #perl6
14:39 diakopter me?  when is it
14:39 pmurias diakopter: August 13 - 15
14:39 diakopter permaybe
14:40 diakopter I only hear English - will I be at a loss
14:41 pmurias diakopter: it's English only
14:42 diakopter oh
14:42 pmurias the talks are
14:43 pmurias diakopter: were are you from by the way?
14:43 diakopter TimToady: is about to speak on pugscode/src/perl6/*.pm  .... I'll summarize here :)
14:43 diakopter Wichita, KS
14:43 rakudo_svn r28424 | pmichaud++ | [rakudo]:
14:43 rakudo_svn r28424 | pmichaud++ | * Add docs/spectest-progress.csv to track progress on passing spectests.
14:43 rakudo_svn r28424 | pmichaud++ |   (I'll keep this file up-to-date for the time being.)
14:51 [particle] joined #perl6
14:57 Schwern joined #perl6
15:00 pmurias what does permaybe mean?
15:09 pmurias ruoso: what should i focus on now a faster sm0p parser of cleaning up elf?
15:09 pmurias perl6: "abc" =~ /b/
15:09 p6eval kp6 r20835: OUTPUT[syntax error at position 6, line 1 column 6:␤"abc" =~ /b␤      ^ HERE␤]
15:09 p6eval ..pugs: OUTPUT[*** ␤    Unexpected "/"␤    There is no =~ operator in Perl 6 -- did you mean ~~ (match) or ~= (concat-assign)?␤    at /tmp/eQXymuWyjL line 1, column 10␤]
15:09 p6eval ..rakudo r28424: OUTPUT[Method 'lvalue' not found for invocant of class 'PAST::Val'␤current instr.: 'parrot;PAST::Compiler;as_post' pc 2787 (src/PAST/Compiler.pir:718)␤
15:09 p6eval ..elf r20835: RESULT[1␤]
15:12 Schwern joined #perl6
15:13 TimToady hi, you're on YAPC-TV!!!
15:14 moritz_ YaY
15:14 moritz_ rakudo: say "Hi, I'm the cool kid ;-)"
15:14 p6eval rakudo r28424 OUTPUT[Hi, I'm the cool kid ;-)␤]
15:14 rindolf Hi TimToady
15:15 rindolf Hi moritz_
15:15 MaNoJob joined #perl6
15:16 toddr joined #perl6
15:17 diakopter WELCOME YAPC
15:17 Jedai joined #perl6
15:17 beppu joined #perl6
15:21 [particle] joined #perl6
15:22 pbuetow joined #perl6
15:23 pmurias joined #perl6
15:24 Schwern joined #perl6
15:25 pbuetow joined #perl6
15:26 toddr left #perl6
15:26 toddr joined #perl6
15:32 donaldh left #perl6
15:33 Jedai joined #perl6
15:36 blehv joined #perl6
15:38 revdiablo joined #perl6
15:39 pugs_svnbot r20836 | pmurias++ | [elf]
15:39 pugs_svnbot r20836 | pmurias++ | removed =~
15:39 pugs_svnbot r20836 | pmurias++ | added a doubt to the two compilers section in the README
15:40 gbacon joined #perl6
15:43 diakopter well, I would summarize it if the wifi were working here
15:46 diakopter factorial macro...
15:46 jrockway eval: 10!
15:47 TimToady perl6: sub postfix:<!> ($x) { [*] 1..$x }; 5!
15:47 p6eval kp6 r20836: OUTPUT[error in Block at compiled/perl5-kp6-mp6/lib​/KindaPerl6/Grammar/Sub.pm line 362, <> line 1.␤*** Syntax Error in sub '': missing closing curly bracket ␤]
15:47 p6eval ..pugs: RESULT[120]
15:47 p6eval ..rakudo r28425: OUTPUT[Statement not terminated properly at line 1, near ":<!> ($x) "␤current instr.: 'parrot;PGE::Util;die' pc 120 (runtime/parrot/library/PGE/Util.pir:82)␤
15:47 p6eval ..elf r20836: OUTPUT[syntax error at ./elf_f_faster line 3160, near ") ~"␤syntax error at ./elf_f_faster line 3161, near "))"␤syntax error at ./elf_f_faster line 3162, near "}elsif"␤Global symbol "$m" requires explicit package name at ./elf_f_faster line 3162.␤Execution of ./elf_f_faster aborted
15:47 p6eval ..due to compilation errors.␤]
15:50 apeiron MØØSE
15:50 diakopter pmurias: you around?
15:51 pmurias diakopter: yes
15:52 diakopter you and Auzon want to hack STD5 into the evalbot?
15:52 pmurias diakopter: now?
15:53 diakopter :D
15:53 diakopter sure, why not
15:53 Auzon Sure, what needs to be done with it?
15:54 pmurias diakopter: a STD5 is quite verbose
15:54 pmurias ;) a STD5 match
15:55 pmurias it would either flood the channel with --vertical or be mericlessly wraped
15:56 armagad_ joined #perl6
15:56 moritz_ so what can we print? parse failed/succeded?
15:58 diakopter probably grep just for the name/subrule that matched,
15:58 diakopter (s)
15:58 pmurias it would be pretty useless
15:58 diakopter it would show the subrules that matched
15:58 diakopter (in order they matched)
15:59 diakopter oops
16:00 pmurias moritz: if you have a wide screen or good eyesight and a small font you could try STD5_dump_match
16:01 pmurias or have evalbot nopaste the output of --vertical
16:02 pmurias diakopter: what do you need STD in evalbot for?
16:04 pmurias yap6: say 5
16:04 p6eval yap6 r20836 OUTPUT[parsed: [["use"],["v6"],[";"],["say"],[5],["EOI"]]␤]
16:04 diakopter pmurias: to show yapc
16:04 pmurias on the projector?
16:04 diakopter sure, yeah :)
16:05 diakopter Larry's about halfway done
16:05 diakopter with his talk
16:05 diakopter if you can do it in 15 minutes.. :D
16:06 pmurias does evalbot run perl5.10
16:06 pmurias ?
16:06 diakopter no
16:06 diakopter does it need to?
16:06 pmurias STD5 runs on perl5.10 only
16:06 diakopter oh
16:07 pmurias you can call STD5 from the terminal if you want to show the match to people
16:07 cjfields joined #perl6
16:07 ruoso pmurias, a faster sm0p parser is certainly much helpfull
16:08 diakopter pmurias: that's what he's doing
16:08 diakopter I just thought it would be cool to show it on irc too
16:09 moritz_ diakopter: I don't think that can be done fast and in a useful way ;)
16:09 diakopter ok
16:10 pmurias ruoso: i'm considering cleaning up elf and feeding it output of STD5
16:10 pmurias diakopter: would you like to write a sm0p parser? ;)
16:10 diakopter what's currently parsing it
16:10 moritz_ I think kp6
16:11 cjfields_ joined #perl6
16:11 pmurias diakopter: elf is currently parsed by STD_red
16:11 pmurias which is STD hand-converted to ruby
16:11 * moritz_ was talking about sm0p
16:12 pmurias diakopter: sorry got confused
16:12 pmurias diakopter: sm0p is currently parsed my a primtive (recdescent) perl6 grammar
16:13 ruoso well... there's a lowlevel method implemnetation already
16:13 ruoso there's a lowlevel scalar also
16:13 ruoso it should be possible to do something with that already
16:14 pmurias diakopter:  v6/smop/sm0p/KP6Grammar.pm
16:15 pmurias ruoso: meant plugging STD5 into elf, more as an alternative as STD_red is enough for the code smop could run now
16:18 pmurias cycling& bbl
16:24 ruoso pmurias, I'm not sure I understood what you said... but that's probably because I'm not that familiar with STD5 internals
16:25 moritz_ let's ask the other way round - how hard/easy is sm0p to parse? it is specced somewhere?
16:26 pmurias ruoso: i was considering whether to write a faster sm0p parser or to cleanup elf and plug STD5 into it
16:26 pmurias moritz_: i would guess sm0p is pretty simple to parse
16:27 eternaleye_ joined #perl6
16:27 ruoso pmurias, writing a faster sm0p parser is already a usefull thing to do
16:28 ruoso but I think it should be possible to do some more things with smop than what sm0p does
16:29 moritz_ is v6/smop/sm0p/Grammar.pm intended to be a "real" Perl 6 grammar for sm0p?
16:29 pmurias &
16:29 moritz_ "token frame" could be made "rule frame", then all of those <ws> tokens could go away
16:31 ruoso moritz_, supposedly yes...
16:31 ruoso but the KP6 version works with KP6
16:31 ruoso there's a start of what a parrot version would be
16:32 moritz_ parrot = PGE or rakudo here?
16:32 ruoso moritz_, I think PGE
16:32 ruoso I never actually tested it
16:32 ruoso I mean...
16:33 ruoso I could never make it work...
16:34 ruoso but conceptually Grammar.pm describes it... it might have some bugs that were only fixed in the KP6 version
16:37 Alias_ joined #perl6
16:42 Alias__ joined #perl6
16:58 Alias_ joined #perl6
17:00 rindolf joined #perl6
17:07 elmex_ joined #perl6
17:11 polettix joined #perl6
17:18 Alias_ joined #perl6
17:28 borondil joined #perl6
17:33 toddr joined #perl6
17:44 cognominal_ joined #perl6
17:46 poletti joined #perl6
17:46 eternaleye_ joined #perl6
17:58 toddr joined #perl6
18:08 toddr joined #perl6
18:08 barney joined #perl6
18:11 FurnaceBoy joined #perl6
18:14 sri_work joined #perl6
18:17 cognominal__ joined #perl6
18:21 pmurias joined #perl6
18:23 pmurias ruoso: is a faster sm0p parser something your blocking or would it just be usefull?
18:25 ruoso not really blocking... no...
18:25 ruoso it's just a PITA to wait KP6 everytime...
18:31 icwiener joined #perl6
18:32 toddr joined #perl6
18:35 icwiener Hi, I watched for Perl 6 books and found some. Is is already possible to write a book that is not outdated quite fast? I mean, is the language itself solid enough to write books? Just curious because I'm considering buying the one James Lee wrote and not following the process closely enough to know such things.
18:35 icwiener Do you have any hints? Maybe about the book as well? :=)
18:36 xinming joined #perl6
18:38 xinming joined #perl6
18:38 toddr joined #perl6
18:38 PerlJam icwiener: what books on perl 6 did you find?
18:39 pmurias icwiener: the spec seems to gradualy stablise, but the implementations are rapidly changing
18:41 icwiener PerlJam: Perl 6 and Parrot Essentials (2004)
18:41 icwiener PerlJam: Perl 6 Now (2004)
18:41 icwiener and some more older books...
18:41 PerlJam icwiener: the latter really isn't a perl 6 book.
18:42 icwiener Oh, right just read the descriptive title.
18:42 PerlJam (It's about how to do perl 6 like things in perl 5 today)
18:42 pmurias @tell mncharity Foo.new(a=>1,b=>1) gets parsed as Foo.new(a=>(1,b=1))
18:42 lambdabot Consider it noted.
18:42 icwiener PerlJam: Beginning Perl 6: From Novice to Professional (July 2008)
18:42 PerlJam icwiener: the perl 6 portion of Perl 6 and Parrot Essentials is definitely outdated.
18:42 PerlJam icwiener: the parrot portion is too, but the reference material is still fairly good.
18:43 pmurias you can always print out the synopsis
18:44 icwiener pmurias: So what is thought in the book (the latter one) might be "stable" but how it is done in the compiler/interpreter/whatever is still changing. Did I get that right? But the implementation is not important for learning from the book right?
18:45 pmurias icwiener: i haven't read the book
18:45 PerlJam pmurias: since it's not even out yet :)
18:45 icwiener PerlJam: What's with the latter book. Do you know it? It seems promising. The author wrote another Perl (5) book that is rated very highly.
18:45 PerlJam I wonder if I could cajole rdice into giving me a copy for review :)
18:46 PerlJam icwiener: I know nothing about it.
18:46 PerlJam icwiener: though I'd be leery of it give that perl 6 is still a christmas away
18:46 icwiener PerlJam: Ok. Maybe after you got your review copy... ;)
18:47 pmurias icwiener: what i mean is the book can only discuss how things are speced to be not how they are, as the language isn't implemented (fully|mostly) yet
18:47 PerlJam pmurias: well, it could say things like "in rakudo, you'd do this" and "i pugs, you'd do this" and  "In <insert some other implementation>, you'd do this"
18:47 erikh left #perl6
18:48 pmurias PerlJam: but it would outdate itself rapidly
18:48 pmurias not the pugs stuff :(
18:48 PerlJam pmurias: not for pugs since it hasn't changed in a year or so :)
18:48 PerlJam Schwern is slowing down my IRC
18:48 Auzon Yeah, but Elf and Rakudo would be obsolete before it got to press. ;)
18:49 ingy /kick Sch
18:49 ingy meh
18:49 ingy /kick Sch*
18:50 Auzon rakudo: say try {1}
18:50 icwiener Hmm. Ok. Thank you for your advice. Helped a lot with my decision. :)
18:50 p6eval rakudo r28431 OUTPUT[1␤]
18:50 Auzon rakudo: say try {5**2}
18:50 p6eval rakudo r28431 OUTPUT[25␤]
18:50 PerlJam icwiener: why are you interested in perl 6?
18:50 PerlJam icwiener: I ask because it's not suitable for some uses just yet
18:50 Auzon rakudo: my Int $foo; $foo = 'obviously not an Int'; say $foo;
18:50 p6eval rakudo r28431 OUTPUT[Type check failed␤current instr.: 'parrot;Perl6Object;infix:=' pc 59 (src/gen_builtins.pir:51)␤
18:51 Auzon rakudo: my Str $foo; $foo = 5; say $foo;
18:51 pmurias unless you're prepared to hack on the compiler
18:51 p6eval rakudo r28431 OUTPUT[Type check failed␤current instr.: 'parrot;Perl6Object;infix:=' pc 59 (src/gen_builtins.pir:51)␤
18:51 Eevee wow, try{} exists now?
18:51 Eevee when did that happen
18:51 Auzon Eevee: Not sure, but I think I have another test for Rakudo to pass unfudged.
18:51 Eevee you guys move too fast for me to keep up and do anything  :P  slow down
18:51 * pmurias is scared of STD_red, but mncharity isn't here to fix it for him :(
18:52 icwiener PerlJam: Because I wrote some stuff in Perl 5 about five years ago and I need a nice language for prototyping at the end of the year (yes around christmas ;)) ... I have a month vacation in August so I thought that would be a nice opportunity to get into Perl 6. :)
18:53 dolmen joined #perl6
18:53 PerlJam icwiener: well, if you don't mind the state it's in, I encourage you to use rakudo if you can.
18:54 Auzon Can I ask what you're prototyping?
18:54 xinming_ joined #perl6
18:56 rakudo_svn r28432 | pmichaud++ | [rakudo]:
18:56 rakudo_svn r28432 | pmichaud++ | * SVN property fix on spectest-progress.csv .
18:57 icwiener Auzon: Nothing big. We have to implement a client server application in C and I think it's nice to have the client or the server written in some less problematic language. That way you do not have the problem of having a server and a client that are both not yet working correctly and it's hard to see where the problem is.
18:57 icwiener PerlJam: Thanks for the advise.
18:58 Auzon Interesting. Rakudo might be enough for you.
18:59 dolmen Auzon, is there sockets in rakudo yet?
18:59 Auzon Not that I know of.
18:59 icwiener But until christmas there will be, right? :)
18:59 dolmen :)
19:00 PerlJam Parrot has sockets, it's just not exposed to Rakudo yet (AFAIK)
19:00 Auzon rakudo: my Int $foo; say try {$foo = 'asdf'};
19:00 p6eval rakudo r28432 OUTPUT[Null PMC access in get_string()␤current instr.: 'print' pc 9561 (src/gen_builtins.pir:6286)␤
19:00 PerlJam So, all it would take is someone to write the glue.
19:00 dolmen oh, you're prototyping a Chritsmas gift :)
19:00 Auzon rakudo: my Int $foo; say eval '$foo = "asdf"';
19:00 p6eval rakudo r28432 OUTPUT[Scope  not found for PAST::Var '$foo'␤current instr.: 'parrot;PCT::HLLCompiler;panic' pc 156 (src/PCT/HLLCompiler.pir:103)␤
19:01 icwiener dolmen: hehe, no. actually some stuff for an exam that is supposed to be given in january.
19:02 Auzon Alright. Well, good luck, icwiener.
19:02 Auzon away &
19:03 icwiener Thank you. To all of you. :)
19:03 icwiener Bye, for now.
19:13 Schwern joined #perl6
19:25 rakudo_svn r28433 | pmichaud++ | [rakudo]:
19:25 rakudo_svn r28433 | pmichaud++ | * Update Complex as subclass of Any, add .perl method (dolmen++)
19:25 rakudo_svn r28433 | pmichaud++ | * Patch RT#55872 courtesy Olivier Mengu?\195?\169 <olivier.mengue@gmail.com>
19:25 rakudo_svn r28433 | pmichaud++ |   (with minor changes by pmichaud)
19:32 dolmen pmichaud++
19:35 borondil left #perl6
19:45 Schwern joined #perl6
19:45 pugs_svnbot r20837 | diakopter++ | [yap6] fixed the ast output so it's actually a tree
19:45 pugs_svnbot joined #perl6
19:46 diakopter http://www.perlcabal.org/sv​n/pugs/revision/?rev=20837   stupid pugs_svnbot
19:46 lambdabot Title: revision: /pugs (Rev: 20837, via SVN::Web)
19:46 * diakopter heads to Alias' next talk
19:48 pmurias diakopter: why is pugs_svnbot stupid?
19:48 Alias_ joined #perl6
19:48 moritz_ because it doesn't fully show diakopter's wonderful commit messages
19:48 moritz_ surprisingly it works well with everbody else's commits
19:49 diakopter :P
19:49 diakopter :PP
19:50 moritz_ anyway, diakopter++ # verbose commit messages
19:50 diakopter I think, rather, it's freenode that doesn't work with my commits.
19:51 moritz_ freenode? why?
19:53 diakopter b/c it kicks pugs_svnbot when it sends messages in too quick of succession
19:54 moritz_ I ignore joins and quits... was it really kicked?
19:58 diakopter yes
19:58 diakopter 14:43:32 -!- pugs_svnbot [n=pugs_svn@feather.perl6.nl] has quit [Excess Flood]
20:00 Schwern joined #perl6
20:07 pmurias Term::ANSIColor++ # my favourite module
20:07 moritz_ diakopter: is it that pugs based svn bot?
20:07 pmurias karma Term::ANSIColor
20:07 pmurias @karma Term::ANSIColor
20:07 lambdabot Term::ANSIColor has a karma of 1
20:08 moritz_ diakopter: I use Bot::BasicBot myself, it throttles automatically
20:09 Exodist joined #perl6
20:12 diakopter so does botnix (dalek on #parrot)
20:15 Schwern joined #perl6
20:18 rakudo_svn r28436 | pmichaud++ | [rakudo]:
20:18 rakudo_svn r28436 | pmichaud++ | * Make rakudo's grammar slightly closer to STD.pm (expect_term).
20:27 armagad_ joined #perl6
20:38 perlbot joined #perl6
20:38 araujo joined #perl6
20:45 spinclad_ i see rakudo_svn doesn't pass utf8 through as dalek does ('Olivier Mengué')
20:46 Schwern joined #perl6
20:47 moritz_ yes, I'll have to investigate
20:47 moritz_ later this week, hopefully
20:49 FurnaceBoy joined #perl6
21:13 pmurias diakopter: is mncharity at the yapc?
21:18 simcop2387 joined #perl6
21:20 diakopter pmurias: I don't know
21:23 pmurias :)
21:28 IllvilJa joined #perl6
21:34 pmurias TimToady: use'ing Thing in "grammar Foo is Thing" is wrong
21:34 pmurias Perl lives in STD5 dosn't it?
21:42 bacek_ joined #perl6
21:46 pmurias diakopter: what did TimToady use for onscreen match dumping?
21:52 diakopter a script he had
21:52 diakopter I don't know; email him?
21:54 pmurias diakopter: i'm wandering if it was my script ;)
21:57 armagad_ joined #perl6
21:59 diakopter pmurias: it might have been, but there was no color
22:02 pmurias diakopter: you have seen the output of STD5_dump_match?
22:02 diakopter noo
22:03 TimToady I didn't have a chance to show it, ran out of time
22:03 TimToady and most of my examples aren't whole files
22:03 pmurias TimToady: did you use YAML?
22:05 TimToady mostly just filtered through ->hash to cut down the output, yeah.
22:05 TimToady but I mostly wasn't trying to show trees
22:06 TimToady but specific bits of stuff that flow from the grammar like the difference between prefix:<++> and postfix:<++> and the user-added prefix:<+->
22:06 TimToady and how the bits of code look, and how the LTM works
22:07 TimToady and I was gonna use your program and brag about it, but last night it didn't parse a file with just $a++ in it, so I left it in the way it was
22:08 PerlJam TimToady: so, for LTM, you stop ltm processing as soon as you hit something that's "over-quantified"?  I.e.  'abc' ** 3..5 would work, but 'abc'+  would not?
22:08 * PerlJam still doesn't quite understand ltm
22:10 TimToady 'abc'+ should count as one 'abc'
22:10 TimToady (if there's nothing after it)
22:11 TimToady though, actually, I think the + comes through to
22:11 TimToady since that might influence which is the longest token
22:11 TimToady after, an identifier is <alpha>\w*, more or less
22:12 TimToady sorry, just woke up from migraine-enforced nap, so not quite thinking straight yet
22:12 diakopter TimToady: want to know who won the golf?
22:12 TimToady sure
22:12 diakopter they tied the 18 holes
22:13 PerlJam I'm having sinus headaches myself.  A nap sounds real good.
22:13 diakopter at even par
22:13 diakopter and Tiger won in the first sudden death hole
22:13 TimToady sudden death after that?
22:13 TimToady ah, well, I was a little surprised his knee held up
22:13 pugs_svnbot r20838 | pmurias++ | initial port of the sm0p grammar to gimme5 (the hack/rule engine compiles STD5)
22:13 TimToady I thought Rocco might have the advantage down the way
22:16 pmurias TimToady: STD5_dump_match seems to have broken down horribly for STD5
22:18 pmurias have you changed the way STD needs to be invoked
22:19 pmurias ruoso: if you aren't sleeping i have ci a initial version of the sm0p grammar running under gimme5
22:21 TimToady pmurias: I don't think so
22:22 ruoso pmurias, cool...
22:22 * diakopter heads to tpf grant bof
22:22 ruoso pmurias, had you tested using it as the  preprocessor?
22:23 pmurias it only does the matching
22:23 ruoso the grammar is a match and replace...
22:23 ruoso there is no real action....
22:23 mncharity joined #perl6
22:23 pmurias i remove actions before passing it to gimme5
22:24 ruoso even if it's only string replace?
22:25 pmurias mncharity: hi
22:25 pmurias ruoso: yes, i'll use elf later to run the actions
22:26 ruoso alright then...
22:26 pmurias TimToady: could you paste the scripts you use to run STD5?
22:26 ruoso btw... I'm not really around here...
22:26 ruoso I'm finishing packaging for a transatlantic move
22:26 * ruoso moving back to brasil
22:28 pmurias ruoso: i won't iterupt you then, so you don't forget anything ;)
22:28 pmurias * interupt
22:29 eternaleye joined #perl6
22:29 TimToady ~.~.
22:30 TimToady sorry, this wireless doesn't roam well...
22:30 TimToady pmurias: hang on a sec
22:30 mncharity hi pmurias
22:30 lambdabot mncharity: You have 1 new message. '/msg lambdabot @messages' to read it.
22:30 mncharity /msg lambdabot @messages
22:31 pmurias mncharity: are you at the yapc?
22:33 * pmurias should have looked at the ip adress instead of asking stupidly
22:33 cjfields joined #perl6
22:33 cjfields rakudo: 'A'..'D'.say;
22:34 p6eval rakudo r28443 OUTPUT[D␤]
22:34 pasteling "TimToady" at 198.37.17.244 pasted "tryfoo, runs the foo rule in STD (currently set up to test backref match)" (14 lines, 234B) at http://sial.org/pbot/31333
22:34 cjfields rakudo: say 'A'..'D';
22:34 p6eval rakudo r28443 OUTPUT[ABCD␤]
22:34 cjfields rakudo: say 'A'..'Z'
22:34 p6eval rakudo r28443
22:34 p6eval ..OUTPUT[ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGA​HAIAJAKALAMANAOAPAQARASATAUAVAWAXAYAZBABBBCBDBEBFB​GBHBIBJBKBLBMBNBOBPBQBRBSBTBUBVBWBXBYBZCACBCCCDCEC​FCGCHCICJCKCLCMCNCOCPCQCRCSCTCUCVCWCXCYCZDADBDCDDD​EDFDGDHDIDJDKDLDMDNDODPDQDRDSDTDUDVDWDXDYDZEAEBECE​DEEEFEGEHEIEJEKELEMENEOEPEQERESETEUEVEWEXEYEZFAFB
22:34 p6eval ..FCFDFEFFFGFHFIFJFKFLFMFNFO​FPFQFRFSFTFUFVFWFXFYFZGA...
22:34 cjfields Ugh.
22:35 cjfields rakudo: say 'A'..^'Z'
22:35 p6eval rakudo r28443 OUTPUT[ABCDEFGHIJKLMNOPQRSTUVWXY␤]
22:35 Auzon Wow. That's pretty WTFy.
22:35 cjfields yeah, just found that one.
22:35 Auzon You can use .say if you put the first group in parens
22:35 TimToady alpha ++ should never exceed the length on the right
22:35 TimToady and you have to have that test anyway, in case the comparison "misses"
22:35 Auzon rakudo: ('A' .. 'Z').perl.say
22:36 p6eval rakudo r28443 OUTPUT["A".."Z"␤]
22:36 TimToady on the other hand, it *should* stop on Z anyway
22:36 pmurias TimToady: foo works
22:36 dolmen rakudo: say ('A'..'Z')
22:36 p6eval rakudo r28443
22:36 p6eval ..OUTPUT[ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGA​HAIAJAKALAMANAOAPAQARASATAUAVAWAXAYAZBABBBCBDBEBFB​GBHBIBJBKBLBMBNBOBPBQBRBSBTBUBVBWBXBYBZCACBCCCDCEC​FCGCHCICJCKCLCMCNCOCPCQCRCSCTCUCVCWCXCYCZDADBDCDDD​EDFDGDHDIDJDKDLDMDNDODPDQDRDSDTDUDVDWDXDYDZEAEBECE​DEEEFEGEHEIEJEKELEMENEOEPEQERESETEUEVEWEXEYEZFAFB
22:36 p6eval ..FCFDFEFFFGFHFIFJFKFLFMFNFO​FPFQFRFSFTFUFVFWFXFYFZGA...
22:36 pmurias TimToady: does comp_unit work for you?
22:36 Auzon seems to me that the trimming needs to be just a bit shorter...
22:37 cjfields that's what I would think, but...
22:37 cjfields rakudo: say 'A'..'Y'
22:37 p6eval rakudo r28443 OUTPUT[ABCDEFGHIJKLMNOPQRSTUVWXY␤]
22:37 cjfields which is fine
22:37 pmurias foo works for me too
22:38 cjfields rakudo: say 'A'..
22:38 p6eval rakudo r28443 OUTPUT[Statement not terminated properly at line 1, near ".."␤current instr.: 'parrot;PGE::Util;die' pc 120 (runtime/parrot/library/PGE/Util.pir:82)␤
22:38 pasteling "TimToady" at 198.37.17.244 pasted "trytry, which runs try.t as a comp_unit (where try.t is an old copy of radix.t)" (15 lines, 264B) at http://sial.org/pbot/31334
22:38 cjfields rakudo: say 'A'..'AA'
22:38 p6eval rakudo r28443 OUTPUT[A␤]
22:38 pmurias mncharity: i'm thinking it would be a good idea to add STD5 as a second parser to elf
22:39 TimToady pmurias: and yes, the last nopaste works with comp_unit
22:39 TimToady I can also run your program on try.t, not on a simple $a++
22:41 TimToady works on the most recent radix.t as well
22:42 TimToady so it's not that my try.t is old
22:42 SubStack_ joined #perl6
22:42 pmurias so it's an STD bug
22:42 pmurias ?
22:43 TimToady I don't know why your program doesn't work; didn't have a chance to look at it
22:43 pugs_svnbot r20839 | Auzon++ | [evalbot] shortened the max length slightly to keep output in one message.
22:43 TimToady I was up till 1:00 getting ready for my talk today
22:43 TimToady and had a sufficient number of my own bugs :)
22:43 pmurias it's your program that doesn't work
22:43 pmurias ;)
22:44 pmurias it works on radix.t
22:44 dolmen rakudo: my $a = 'Z'; $a++; say $a;
22:44 p6eval rakudo r28443 OUTPUT[AA␤]
22:44 pmurias STD5_dump_match works on radix.t
22:44 mncharity pmurias: Foo.new(a=>1,b=>2) parsing as a=>(1,b=>2) is STD.pm spec (the precedence check in EXPR has been commented out there for a long time).  :a<1>,:b<2> works.
22:45 mncharity not at yapc
22:45 TimToady could well be my bug, but I already had programs that parsed $a++, so I just used em
22:45 Auzon elf: say time
22:45 p6eval OUTPUT[syntax error at ./elf_f_faster line 3160, near ") ~"␤syntax error at ./elf_f_faster line 3161, near "))"␤syntax error at ./elf_f_faster line 3162, near "}elsif"␤Global symbol "$m" requires explicit package name at ./elf_f_faster line 3162.␤Execution of ./elf_f_faster aborted due to
22:45 p6eval ..compilation errors.␤]
22:45 Auzon elf: sub time is p5 {time}; say time
22:45 p6eval OUTPUT[syntax error at ./elf_f_faster line 3160, near ") ~"␤syntax error at ./elf_f_faster line 3161, near "))"␤syntax error at ./elf_f_faster line 3162, near "}elsif"␤Global symbol "$m" requires explicit package name at ./elf_f_faster line 3162.␤Execution of ./elf_f_faster aborted due to
22:45 p6eval ..compilation errors.␤]
22:45 pmurias TimToady: if i pass $a++ to comp_unit is spawns an error
22:45 Auzon elf: say 1
22:45 p6eval OUTPUT[syntax error at ./elf_f_faster line 3160, near ") ~"␤syntax error at ./elf_f_faster line 3161, near "))"␤syntax error at ./elf_f_faster line 3162, near "}elsif"␤Global symbol "$m" requires explicit package name at ./elf_f_faster line 3162.␤Execution of ./elf_f_faster aborted due to
22:45 p6eval ..compilation errors.␤]
22:46 dolmen rakudo: my $a = 'AZ'; $a++; say $a;
22:46 Auzon evalbot control restart
22:46 Auzon oops, sorry
22:46 p6eval joined #perl6
22:46 dolmen rakudo: my $a = 'AZ'; $a++; say $a;
22:46 Auzon rakudo: say 'A' .. 'Z'
22:46 TimToady it's probably somewhere in faststopper
22:46 p6eval rakudo r28443 OUTPUT[BA␤]
22:46 p6eval rakudo r28443
22:46 p6eval ..OUTPUT[ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGA​HAIAJAKALAMANAOAPAQARASATAUAVAWAXAYAZBABBBCBDBEBFB​GBHBIBJBKBLBMBNBOBPBQBRBSBTBUBVBWBXBYBZCACBCCCDCEC​FCGCHCICJCKCLCMCNCOCPCQCRCSCTCUCVCWCXCYCZDADBDCDDD​EDFDGDHDIDJDKDLDMDNDODPDQDRDSDTDUDVDWDXDYDZEAEBECE​DEEEFEGEHEIEJEKELEMENEOEPEQERESETEUEVEWEXEYEZFAFB
22:46 p6eval .....
22:46 mncharity elf: say 3
22:46 p6eval OUTPUT[syntax error at ./elf_f_faster line 3160, near ") ~"␤syntax error at ./elf_f_faster line 3161, near "))"␤syntax error at ./elf_f_faster line 3162, near "}elsif"␤Global symbol "$m" requires explicit package name at ./elf_f_faster line 3162.␤Execution of ./elf_f_faster aborted due to
22:46 p6eval ..compila...
22:47 Auzon dang. It's still too long, by just a few characters
22:47 pmurias it's my fault
22:47 pmurias i changed =~ to ~~
22:47 mncharity :(  we talked about that...
22:47 mncharity not right thing
22:48 pmurias mncharity: that = breaking the bootstrap?
22:49 pmurias i didn't break it, it just requires 5.10
22:49 pugs_svnbot r20840 | Auzon++ | [evalbot] last commit was just barely too long with the message length. Old length was 350 if it matters.
22:49 mncharity adding code is generally safer than changing or removing.  and there's lots of stuff needing to be added.   an infix:<~~> implementation in p6 would be neat. ;)
22:49 Auzon Do you have multi methods, mncharity?
22:49 pmurias mncharity: i disagree
22:50 mncharity very crude ones.  basically just Class::Multimethods.
22:50 pmurias with the changing and removing bit
22:51 mncharity pmurias: re disagree, I know.  how about I fork an "elf_p" from elf_f.  that will also provide a place for you to work on adding STD.
22:52 TimToady pmurias: found it
22:52 pmurias mncharity: okay
22:52 mncharity Auzon: re multimethods, and on the SBCL backend, not yet (no even classes yet).
22:52 pugs_svnbot r20841 | lwall++ | [STD] accidental magical value collision at -1 in faststopper
22:52 Auzon with multimethods, it shouldn't be too hard to implement an infix:<~~>
22:53 TimToady pmurias: both .pos and $+endargs were using -1 to represent "no position yet", and -1 == -1, so it succeeded in failing :)
22:54 TimToady the sort of bug that only shows up if the file starts with EXPR rather than a statement_control
22:54 mncharity re infix:<~~>, oh, there's enough mm to do that.  ie, fixed arity, no optional or named args, class-not-value based.
22:55 mncharity defining ~~ in the prelude won't actually get it called at the moment, unless you call it directly in GLOBAL::, but I was originally thinking of doing that this evening.
22:56 pmurias this = infix:<~~>
22:56 pmurias ?
22:56 dolmen perl6: my $a = 'Z'; my $b = $a; $a++; say ($a gt $b).perl;
22:56 p6eval kp6 r20841: OUTPUT[syntax error at position 27, line 1 column 27:␤my $a = 'Z'; my $b = $a; $a++; say ($a gt $b).perl␤                           ^ HERE␤]
22:56 p6eval ..pugs: OUTPUT[Bool::False␤]
22:56 p6eval ..rakudo r28443: OUTPUT[Bool::False␤]
22:56 p6eval ..elf r20841: OUTPUT[syntax error at ./elf_f_faster line 3160, near ") ~"␤syntax error at ./elf_f_faster line 3161, near "))"␤syntax error at ./elf_f_faster line 3162, near "}elsif"␤Global symbol "$m" requires explicit package name at ./elf_f_faster line 3162.␤Execution of ./elf_f_faster aborted
22:56 p6eval ..due to compila...
22:57 mncharity multi infix:<~~>(Blah $a,Blip $b){...}  lather rinse repeat
22:57 pmurias upgrading evalbot to perl5.10 would fix it
22:57 pmurias shower&
22:58 TimToady pmurias: your program now works on my ++$a; file
22:58 mncharity problem is, instead of =~ , a nonspec 'can do anything we want it to' op being hardwired into the emitter, that's now been changed to ~~ .  so... after the fork, will revert.
22:58 Auzon 5.10's infix:<~~> is slightly different in subtle ways from what I remember. The Perl 6 meaning changed sometime before 5.10 was released, so ~~ doesn't follow the P6 meaning in P5.
22:59 dolmen rakudo: say 'A'..^'AA'
22:59 p6eval rakudo r28443 OUTPUT[A␤]
22:59 mncharity the "so..." elaborates as 'which is rather an obstacle to then doing ~~ right'.
22:59 dolmen rakudo: say 'A'..'AA'
22:59 p6eval rakudo r28443 OUTPUT[A␤]
23:00 pmurias mncharity: =~ is speced
23:00 mncharity pmurias: ooo, htanks for the unicode fix
23:02 mncharity and the autobox... hmm... does that mean the feather autobox needs to be upgraded as well?
23:02 mncharity re '=~ is speced', ?
23:02 pmurias mncharity: it's speced not to be valid
23:03 pmurias pugs: my $a;$a =+ 3;say $a;
23:03 p6eval OUTPUT[3␤]
23:03 pmurias pugs: my $a;$a = ~ 3;say $a;
23:03 p6eval OUTPUT[3␤]
23:03 pmurias pugs: my $a;$a =~ 3;say $a;
23:03 p6eval OUTPUT[*** ␤    Unexpected "3"␤    There is no =~ operator in Perl 6 -- did you mean ~~ (match) or ~= (concat-assign)?␤    at /tmp/MXG4gIk6C0 line 1, column 13␤]
23:04 Auzon pugs: say "foo" . "bar"
23:04 p6eval OUTPUT[*** ␤    Unexpected "."␤    expecting operator, ":" or ","␤    at /tmp/woxbsc3lZL line 1, column 11␤]
23:04 pmurias as a way of catching a mistake cause by a perl5 mindset
23:04 pmurias s/mindest/usage/
23:04 Auzon same with .length
23:08 mncharity pmurias: "it's speced not to be valid".  ah, ok.  happily it will eventually go away when real regex support gets added.  it could certainly be replaced with something non-prohibited, like ==~ , but that would be silly.
23:08 TimToady and everything else in STD that calls .obs
23:10 mncharity pmurias: misc/elfish/elf_p/ an ok name for the fork?
23:14 pmurias p meaning p(murias)?
23:15 mncharity re r20789, so autobox had a minor rev 'old api breaks even though it would be trivial to keep it working' change?   eep... 2.53?  that's just sooo wrong.
23:15 TimToady pmurias: there seems to be a bug in your program, parsing "++$a;\n" it nests sigil 4 deep for some reason
23:15 mncharity re p, or whatever.  open to suggestions.  or you can simply rename it of course.
23:16 TimToady the yaml output only shows one level of sigil, not 4
23:16 pmurias k
23:21 pmurias TimToady: found it $<sigil> = $<variable><sigil>
23:22 pmurias TimToady: why do you do it?
23:26 TimToady the assignment operator has to know whether it should parse as list or item assignment
23:26 TimToady and that depends on whether the sigil is '$'
23:28 pugs_svnbot r20842 | putter++ | [elf] Copy elf/elf_f_src to elfish/elf_p/ .  An experimental fork for pmurias++.
23:29 TimToady it should probably just propagate the text of the sigil, not the node
23:29 mncharity Actually, that might have been better as elf_x - ie, a non-stable development branch.  ah well.
23:30 pmurias TimToady: yes
23:31 TimToady I'll take a look at it sometime, so don't worry about it
23:35 Kattana joined #perl6
23:36 dolmen rakudo: say ('a'..'z').chars
23:36 p6eval rakudo r28445 OUTPUT[Method 'chars' not found for invocant of class 'Range'␤current instr.: '_block11' pc 49 (EVAL_14:20)␤
23:36 dolmen rakudo: say ('a'..'z').perl.chars
23:36 p6eval rakudo r28445 OUTPUT[8␤]
23:37 TimToady .chars should be another one of those methods that has an Any variant that coerces to Str
23:37 dolmen rakudo: my $a = 'a'..'z'; say $a.chars
23:37 p6eval rakudo r28445 OUTPUT[Method 'chars' not found for invocant of class 'Range'␤current instr.: '_block11' pc 70 (EVAL_14:27)␤
23:37 dolmen rakudo: my Str $a = 'a'..'z'; say $a.chars
23:37 p6eval rakudo r28445 OUTPUT[Type check failed␤current instr.: 'parrot;Perl6Object;infix:=' pc 59 (src/gen_builtins.pir:51)␤
23:37 TimToady rakudo: say ~('a'..'z')
23:37 p6eval rakudo r28445 OUTPUT[get_string() not implemented in class 'Range'␤current instr.: 'prefix:~' pc 11061 (src/gen_builtins.pir:7401)␤
23:38 dolmen rakudo: say (~('a'..'z').chars)
23:38 p6eval rakudo r28445 OUTPUT[Method 'chars' not found for invocant of class 'Range'␤current instr.: '_block11' pc 49 (EVAL_14:20)␤
23:38 dolmen rakudo: say (~('a'..'z')).chars
23:38 p6eval rakudo r28445 OUTPUT[get_string() not implemented in class 'Range'␤current instr.: 'prefix:~' pc 11061 (src/gen_builtins.pir:7401)␤
23:40 TimToady if bare ~ doesn't work, adding a .chars won't make it better
23:41 TimToady perl6: say ('a'..'z').join.chars
23:41 p6eval kp6 r20842: OUTPUT[syntax error at position 4, line 1 column 4:␤say ('a'..'z').join.char␤    ^ HERE␤]
23:41 p6eval ..pugs: OUTPUT[26␤]
23:41 p6eval ..rakudo r28445: OUTPUT[Method 'join' not found for invocant of class 'Range'␤current instr.: '_block11' pc 49 (EVAL_14:20)␤
23:41 p6eval ..elf r20842: OUTPUT[syntax error at ./elf_f_faster line 3160, near ") ~"␤syntax error at ./elf_f_faster line 3161, near "))"␤syntax error at ./elf_f_faster line 3162, near "}elsif"␤Global symbol "$m" requires explicit package name at ./elf_f_faster line 3162.␤Execution of ./elf_f_faster aborted
23:41 p6eval ..due to compila...
23:42 TimToady perl6: say ['a'..'z'].join.chars
23:42 p6eval kp6 r20842: OUTPUT[syntax error at position 4, line 1 column 4:␤say ['a'..'z'].join.char␤    ^ HERE␤]
23:42 p6eval ..pugs: OUTPUT[26␤]
23:42 p6eval ..rakudo r28445: OUTPUT[2001␤]
23:42 p6eval ..elf r20842: OUTPUT[syntax error at ./elf_f_faster line 3160, near ") ~"␤syntax error at ./elf_f_faster line 3161, near "))"␤syntax error at ./elf_f_faster line 3162, near "}elsif"␤Global symbol "$m" requires explicit package name at ./elf_f_faster line 3162.␤Execution of ./elf_f_faster aborted
23:42 p6eval ..due to compila...
23:42 diakopter rakudo: 2001...?
23:42 p6eval rakudo r28445 OUTPUT[Statement not terminated properly at line 1, near "...?"␤current instr.: 'parrot;PGE::Util;die' pc 120 (runtime/parrot/library/PGE/Util.pir:82)␤
23:42 TimToady ooh, rakudo is on a space odyssey
23:42 dolmen rakudo: say (~(('a'..'z').list)).chars
23:42 p6eval rakudo r28445 OUTPUT[2001␤]
23:43 dolmen rakudo: say (~(('a'..'y').list)).chars
23:43 p6eval rakudo r28445 OUTPUT[49␤]
23:43 dolmen rakudo: say (~(('A'..'Y').list)).chars
23:43 p6eval rakudo r28445 OUTPUT[49␤]
23:43 dolmen rakudo: say ('A'..'Y').list
23:43 p6eval rakudo r28445 OUTPUT[ABCDEFGHIJKLMNOPQRSTUVWXY␤]
23:43 bacek_ joined #perl6
23:44 dolmen rakudo: say ~(('A'..'Y').list)
23:44 p6eval rakudo r28445 OUTPUT[A B C D E F G H I J K L M N O P Q R S T U V W X Y␤]
23:45 diakopter rakudo: say ~(('A'..'Y').list.pick)
23:45 p6eval rakudo r28445 OUTPUT[Method 'pick' not found for invocant of class 'List'␤current instr.: '_block11' pc 58 (EVAL_14:21)␤
23:46 diakopter pugs: say ~(('A'..'Y').list.pick)
23:46 p6eval OUTPUT[P␤]
23:46 diakopter pugs: say ~(('R','A','K','U','D','O').list.pick)
23:46 p6eval OUTPUT[K␤]
23:46 diakopter pugs: say ~(('R','A','K','U','D','O').list.pick)
23:46 p6eval OUTPUT[K␤]
23:47 diakopter pugs: say ~(('R','A','K','U','D','O').list.pick)
23:47 p6eval OUTPUT[R␤]
23:47 TimToady perl6: say ('a'..'y').cat
23:47 p6eval kp6 r20842: OUTPUT[syntax error at position 4, line 1 column 4:␤say ('a'..'y').ca␤    ^ HERE␤]
23:47 p6eval ..pugs: OUTPUT[*** Unimplemented unaryOp: cat␤    at /tmp/6x0LBEdYR3 line 1, column 5 - line 2, column 1␤]
23:47 p6eval ..rakudo r28445: OUTPUT[Method 'cat' not found for invocant of class 'Range'␤current instr.: '_block11' pc 49 (EVAL_14:20)␤
23:47 p6eval ..elf r20842: OUTPUT[syntax error at ./elf_f_faster line 3160, near ") ~"␤syntax error at ./elf_f_faster line 3161, near "))"␤syntax error at ./elf_f_faster line 3162, near "}elsif"␤Global symbol "$m" requires explicit package name at ./elf_f_faster line 3162.␤Execution of ./elf_f_faster aborted
23:47 p6eval ..due to compila...
23:47 Auzon diakopter: try <r a k u d o> instead ;)
23:47 diakopter pugs: say ~(('rakudo').split('').pick)
23:47 p6eval OUTPUT[r␤]
23:48 diakopter pugs: say ~(('rakudo').split('').pick)
23:48 p6eval OUTPUT[u␤]
23:48 eternaleye_ joined #perl6
23:48 diakopter rakudo: say ~(('rakudo').split('').pick)
23:48 p6eval rakudo r28445 OUTPUT[Method 'pick' not found for invocant of class 'List'␤current instr.: '_block11' pc 47 (EVAL_12:20)␤
23:48 dolmen pugs: <rakudo>.split('').pick.say
23:48 p6eval OUTPUT[d␤]
23:48 diakopter rakudo: say ~(('rakudo').split(''))
23:48 p6eval rakudo r28445 OUTPUT[r a k u d o␤]
23:48 dolmen pugs: <rakudo>.split('').pick.say
23:48 p6eval OUTPUT[k␤]
23:48 TimToady perl6: say 'rakudo'.comb(/./).pick
23:48 p6eval kp6 r20842: OUTPUT[syntax error at position 17, line 1 column 17:␤say 'rakudo'.comb(/./).pic␤                 ^ HERE␤]
23:48 p6eval ..pugs: OUTPUT[k␤]
23:48 p6eval ..rakudo r28445: OUTPUT[Method 'comb' not found for invocant of class 'Perl6Str'␤current instr.: '_block11' pc 45 (EVAL_12:22)␤
23:48 p6eval ..elf r20842: OUTPUT[syntax error at ./elf_f_faster line 3160, near ") ~"␤syntax error at ./elf_f_faster line 3161, near "))"␤syntax error at ./elf_f_faster line 3162, near "}elsif"␤Global symbol "$m" requires explicit package name at ./elf_f_faster line 3162.␤Execution of ./elf_f_faster aborted
23:48 p6eval ..due to compila...
23:49 TimToady split '' is so perl 5...
23:49 diakopter well it doesn't have chars
23:49 diakopter oh wait it does
23:50 diakopter oh wait that's even wrong; heh
23:51 diakopter rakudo: say ~(('rakudo').split('').item.perl)
23:51 p6eval rakudo r28445 OUTPUT[["r", "a", "k", "u", "d", "o"]␤]
23:53 mncharity "split '' is so perl 5..." :)

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

Perl 6 | Reference Documentation | Rakudo