Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2010-02-21

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:19 andy1 joined #perl6
00:19 snarkyboojum joined #perl6
00:24 jferrero joined #perl6
00:32 patspam joined #perl6
00:35 justatheory joined #perl6
00:36 lue hellooooo?
00:47 snarkyboojum joined #perl6
00:50 xabbu42 joined #perl6
00:53 yinyin joined #perl6
00:57 snarkyboojum joined #perl6
00:57 lue heloooooooooooo?
00:57 bkeeler hi
00:59 lue hello
01:03 lue I'm going to fall asleep on the lid of this laptop.
01:03 lue I've been sitting here since about 8:30, and now its 17:00 !
01:09 bkeeler Need a break here too
01:09 bkeeler Time to take the doggy for a walk and go to the store etc
01:52 devinus joined #perl6
02:09 justatheory joined #perl6
02:18 bkeeler Any NQP experts around?
02:19 Brennus joined #perl6
02:20 Brennus can anyone tell me how to check out a previous version?
02:22 bkeeler I think it's something like git checkout -t origin/<branch>
02:22 bkeeler I'm not much a git expert yet though
02:37 snarkyboojum joined #perl6
02:39 Brennus I was told to check out January's for a fuller implementation but I don't know the name or how to list them
02:41 bkeeler You can always download the release tarball from http://github.com/rakudo/rakudo/downloads if you can't make git cooperate
02:42 Brennus duh forgot about that - thanks
02:46 JimmyZ joined #perl6
02:56 pugs_svn r29793 | lwall++ | [S02] revise Whatever semantics to autocurry any unary or binary that doesn't
02:56 pugs_svn r29793 |     explicitly care to handle Whatever itself.  *+* is now Code:($x,$y)
02:58 crythias joined #perl6
03:03 lichtkind_ joined #perl6
03:20 devinus joined #perl6
03:26 devinus joined #perl6
03:26 nbrown joined #perl6
04:03 snarkyboojum rakudo: say 'A'..'£'
04:03 p6eval rakudo ec47f3: OUTPUT«ABCDEFGHIJKLMNOPQRSTUVWXYZ␤»
04:22 snarkyboojum rakudo: say ('A'..'£').iterator.GrabAndSay(50)
04:22 p6eval rakudo ec47f3: 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␤Z␤␤␤␤␤␤␤␤␤␤␤␤␤␤␤␤␤␤␤␤␤␤␤␤␤»
04:24 snarkyboojum how weird.. I just d/led and built the latest rakudo in master and I get a different result for that
04:29 TimToady do you have icu?
04:29 snarkyboojum I think so (?)
04:29 TimToady I get the newlines here
04:30 snarkyboojum I get A..Z.. ZZ though (if that makes sense)
04:30 snarkyboojum have blown away my git repo and retrying
04:31 TimToady rakudo: my @x = ('A'..'£').iterator.batch(50); say @x.elems
04:31 p6eval rakudo ec47f3: OUTPUT«26␤»
04:31 TimToady it does, if £ is not being UTF-8, but taken as Latin-1
04:31 snarkyboojum yeah, grab and say just prints out excess newlines
04:31 snarkyboojum oic
04:31 TimToady why I asked about icu
04:31 TimToady but could just be locale
04:32 * snarkyboojum is generally pretty clueless about that stuff
04:32 TimToady you get ZZ because that's the Perl 5 not-longer-than semantics
04:32 snarkyboojum not-longer-than semantics? :)
04:32 TimToady but p6 is supposed to carp about it
04:33 TimToady 'A'..'99' will give you the same result in Perl 5
04:33 TimToady as soon as it goes to AAA it knows it's done
04:34 TimToady but in a language with infinite lists, it doesn't seem all that useful
04:34 snarkyboojum I (kinda) see
04:34 snarkyboojum interesting :)
04:34 TimToady in p5 it's mostly only useful to prevent running out of memory, in other words
04:35 lue geez... string ranges in p6 are interesting :)
04:35 alester joined #perl6
04:36 TimToady hmm
04:36 TimToady rakudo: say 'ZZ' ... 'AA'
04:36 p6eval rakudo ec47f3:
04:36 p6eval ..OUTPUT«ZZZYZXZWZVZUZTZSZRZQZPZOZNZMZLZKZJZIZHZGZFZEZDZCZBZAYZYYYXYWYVYUYTYSYRYQYPYOYNYMYLYKYJYIYHYGYFYEYDYCYBYAXZXYXXXWXVXUXTXSXRXQXPXOXNXMXLXKXJXIXHXGXFXEXDXCXBXAWZWYWXWWWVWUWTWSWRWQWPWOWNWMWLWKWJWIWHWGWFWEWDWCWBWAVZVYVXVWVVVUVTVSVRVQVPVOVNVMVLVKVJVIVHVGVFVEVDVCVBVAUZUYUXUWUVUUUTUSURUQUP…
04:39 lue interesting!
04:39 TimToady rakudo: say 'A' ... {chr(.ord+1)}, '£'
04:39 p6eval rakudo ec47f3: OUTPUT«Decrement out of range␤current instr.: 'perl6;Perl6Exception;throw' pc 14244 (src/builtins/Seq.pir:52)␤»
04:40 TimToady rakudo: say 'A' ... {chr(.ord+1)}, 'Z'
04:40 p6eval rakudo ec47f3: OUTPUT«Decrement out of range␤current instr.: 'perl6;Perl6Exception;throw' pc 14244 (src/builtins/Seq.pir:52)␤»
04:40 TimToady rakudo: say 'A','B' ... {chr(.ord+1)}, 'Z'
04:40 p6eval rakudo ec47f3: OUTPUT«2␤»
04:41 lue ō.–
04:41 TimToady rakudo: say 'A','B' ... {chr($^a.ord+1)}, 'Z'
04:41 p6eval rakudo ec47f3: OUTPUT«2␤»
04:41 TimToady alpha: say 'A','B' ... {chr($^a.ord+1)}, 'Z'
04:41 p6eval alpha 30e0ed: OUTPUT«ABCDEFGHIJKLMNOPQRSTUVWXYZ␤»
04:41 TimToady alpha: say 'A','B' ... {chr($^a.ord+1)}, '£'
04:41 lue (finally came up with the raise eyebrow smiley!)
04:41 p6eval alpha 30e0ed: OUTPUT«ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£␤»
04:41 TimToady alpha: say 'A','B' ... {chr(.ord+1)}, '£'
04:41 p6eval alpha 30e0ed: OUTPUT«ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£␤»
04:42 TimToady alpha: say 'A','B' ... *.ord.succ.chr, '£'
04:42 p6eval alpha 30e0ed: OUTPUT«Method 'succ' not found for invocant of class 'Block'␤in Main (file src/gen_setting.pm, line 324)␤»
04:42 TimToady alpha: say 'A','B' ... {.ord.succ.chr}, '£'
04:42 p6eval alpha 30e0ed: OUTPUT«ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£␤»
04:42 TimToady there you go
04:43 TimToady old-style syntax though
04:43 lue :O
04:43 TimToady the * form oughta work too, eventually
04:44 lue alpha: say 'A','B' ... {.ord.succ.chr}, '‹'
04:44 JimmyZ Is gather lazy now?
04:44 p6eval alpha 30e0ed:  ( no output )
04:44 lue alpha: say 'A','B' ... {.ord.succ.chr}, '§'
04:44 p6eval alpha 30e0ed: OUTPUT«ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§␤»
04:44 snarkyboojum rakudo: say 'AA'.chars <=> '£'.chars
04:44 p6eval rakudo ec47f3: OUTPUT«1␤»
04:45 JimmyZ rakudo: my $a = 1..*;
04:45 p6eval rakudo ec47f3:  ( no output )
04:45 snarkyboojum so the reason I'm getting 0 when I run this in the rakudo REPL on my machine is because of an encoding difference?
04:46 snarkyboojum oh
04:46 snarkyboojum $ ./perl6 -e "say 'AA'.chars <=> '£'.chars"
04:46 snarkyboojum 1
04:47 snarkyboojum but inside the REPL -> 0
04:47 TimToady rakudo: say (gather map { take $_ }, 1...*).batch(10)
04:47 p6eval rakudo ec47f3: OUTPUT«Could not find non-existent sub &map␤current instr.: '_block43' pc 310 (EVAL_1:125)␤»
04:48 TimToady no map?!?
04:48 lue echo no map?!?
04:48 snarkyboojum so the REPL isn't reading this as UTF-8?
04:48 snarkyboojum in my example above?
04:48 TimToady seems like
04:48 TimToady maybe readline is busted
04:49 snarkyboojum fun fun
04:51 TimToady rakudo: say (gather (1..*).map: { take $_ }).batch(10)
04:51 p6eval rakudo ec47f3: OUTPUT«␤»
04:51 TimToady rakudo: say (gather (..*).map: { take $_ }).batch(10)
04:51 p6eval rakudo ec47f3: OUTPUT«Confused at line 11, near "say (gathe"␤current instr.: 'perl6;HLL;Grammar;panic' pc 500 (ext/nqp-rx/src/stage0/HLL-s0.pir:328)␤»
04:51 TimToady rakudo: say (gather ('a'..*).map: { take $_ }).batch(10)
04:51 p6eval rakudo ec47f3: OUTPUT«␤»
04:51 JimmyZ rakudo: (1..10).WHAT.say;
04:52 p6eval rakudo ec47f3: OUTPUT«Type objects do not have state, but you tried to access attribute $!excludes_min␤current instr.: 'perl6;Attribute;accessor_helper_ro' pc 3312 (src/gen/Attribute.pir:400)␤»
04:52 JimmyZ rakudo: (1...10).WHAT.say;
04:52 p6eval rakudo ec47f3: OUTPUT«Null PMC access in invoke()␤current instr.: 'perl6;GatherIterator;get' pc 345011 (src/gen/core.pir:47250)␤»
04:52 TimToady JimmyZ: looks like maybe not yet
04:52 JimmyZ rakudo: say (1...10).WHAT;
04:52 p6eval rakudo ec47f3: OUTPUT«GatherIterator()␤»
04:52 TimToady rakudo: say (gather ('a'..*).map: { take $_; last if state $stopper++ == 50 }).batch(10)
04:52 p6eval rakudo ec47f3: OUTPUT«Symbol '$stopper' not predeclared in <anonymous>␤current instr.: 'perl6;PCT;HLLCompiler;panic' pc 137 (compilers/pct/src/PCT/HLLCompiler.pir:101)␤»
04:53 TimToady not declared?!?
04:53 TimToady what do you suppose 'state' is doing?!?
04:53 lue should $stopper be defined for you?
04:53 TimToady rakudo: say (gather ('a'..*).map: { take $_; last if (state $)++ == 50 }).batch(10)
04:53 p6eval rakudo ec47f3: OUTPUT«Unable to parse blockoid, couldn't find final '}' at line 11␤current instr.: 'perl6;Regex;Cursor;FAILGOAL' pc 1664 (ext/nqp-rx/src/stage0/Regex-s0.pir:907)␤»
04:53 TimToady rakudo: say (gather ('a'..*).map: { take $_; last if (state $s)++ == 50 }).batch(10)
04:53 p6eval rakudo ec47f3: OUTPUT«Symbol '$s' not predeclared in <anonymous>␤current instr.: 'perl6;PCT;HLLCompiler;panic' pc 137 (compilers/pct/src/PCT/HLLCompiler.pir:101)␤»
04:54 TimToady rakudo: my $s = 0; say (gather ('a'..*).map: { take $_; last if $s++ == 50 }).batch(10)
04:54 p6eval rakudo ec47f3: OUTPUT«␤»
04:54 TimToady rakudo: my $s = 0; say (gather ('a'..'z').map: { take $_; last if $s++ == 50 }).batch(10)
04:54 p6eval rakudo ec47f3: OUTPUT«␤»
04:55 TimToady rakudo: my $s = 0; say (gather ('a'...'z').map: { take $_; last if $s++ == 50 }).batch(10)
04:55 p6eval rakudo ec47f3: OUTPUT«␤»
04:55 TimToady rakudo: my $s = 0; say (gather ('a'...'z').map: { take $_; last if $s++ == 50 })
04:55 p6eval rakudo ec47f3: OUTPUT«␤»
04:56 TimToady rakudo: say gather { ('a'...'z').map: { take $_ } }
04:56 p6eval rakudo ec47f3: OUTPUT«␤»
04:56 TimToady rakudo: say ~gather { ('a'...'z').map: { take $_ } }
04:56 p6eval rakudo ec47f3: OUTPUT«␤»
04:56 TimToady rakudo: say (gather { ('a'...'z').map: { take $_ } }).WHAT
04:56 p6eval rakudo ec47f3: OUTPUT«GatherIterator()␤»
04:56 TimToady rakudo: say (gather { ('a'...'z').map: { take $^a } }).WHAT
04:56 p6eval rakudo ec47f3: OUTPUT«GatherIterator()␤»
04:56 TimToady rakudo: say (gather { ('a'...'z').map: { take $^a } })
04:57 p6eval rakudo ec47f3: OUTPUT«␤»
04:57 TimToady rakudo: say (gather { ('a'...'z').map: { say $^a } })
04:57 p6eval rakudo ec47f3: OUTPUT«␤»
04:57 TimToady ah, stupid sink context
04:57 TimToady rakudo: say (gather { eager ('a'...'z').map: { say $^a } })
04:57 p6eval rakudo ec47f3:
04:57 p6eval ..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␤z␤aa␤ab␤ac␤ad␤ae␤af␤ag␤ah␤ai␤aj␤ak␤al␤am␤an␤ao␤ap␤aq␤ar␤as␤at␤au␤av␤aw␤ax␤ay␤az␤ba␤bb␤bc␤bd␤be␤bf␤bg␤bh␤bi␤bj␤bk␤bl␤bm␤bn␤bo␤bp␤bq␤br␤bs␤bt␤bu␤bv␤bw␤bx␤by␤bz␤ca␤cb␤cc␤cd␤ce␤cf␤cg␤ch␤ci␤cj␤ck��
04:57 TimToady er...
04:58 lue it gives the appearance of a foreign language! \o/
04:58 TimToady rakudo: say (gather { eager ('a'..'z').map: { say $^a } })
04:58 p6eval rakudo ec47f3: 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␤z␤␤»
04:58 TimToady ah, the ...'z' bug
04:59 TimToady rakudo: say (gather { eager ('a'..'z').map: { take $^a } })
04:59 p6eval rakudo ec47f3: OUTPUT«abcdefghijklmnopqrstuvwxyz␤»
04:59 JimmyZ rakudo:gather for 1..10 take $_;
04:59 snarkyboojum rakudo: say 'a'...'z'
04:59 TimToady rakudo: say (gather { eager ('a'..'zzzzzz').map: { take $^a } }).batch(10)
04:59 p6eval rakudo ec47f3:
04:59 p6eval ..OUTPUT«abcdefghijklmnopqrstuvwxyzaaabacadaeafagahaiajakalamanaoapaqarasatauavawaxayazbabbbcbdbebfbgbhbibjbkblbmbnbobpbqbrbsbtbubvbwbxbybzcacbcccdcecfcgchcicjckclcmcncocpcqcrcsctcucvcwcxcyczdadbdcdddedfdgdhdidjdkdldmdndodpdqdrdsdtdudvdwdxdydzeaebecedeeefegeheiejekelemeneoepeqereseteuevewex…
04:59 p6eval rakudo ec47f3: OUTPUT«abcdefghij␤»
05:00 JimmyZ rakudo: gather for 1..10 take $_;
05:00 p6eval rakudo ec47f3: OUTPUT«Missing block at line 11, near "take $_;"␤current instr.: 'perl6;HLL;Grammar;panic' pc 500 (ext/nqp-rx/src/stage0/HLL-s0.pir:328)␤»
05:00 TimToady JimmyZ: looks like gather/take is lazy
05:00 TimToady std: gather for 1..10 take $_;
05:00 p6eval std 29793: OUTPUT«[31m===[0mSORRY![31m===[0m␤Missing block at /tmp/MZZd33OwbU line 1:␤------> [32mgather for 1..10 [33m⏏[31mtake $_;[0m␤    expecting any of:␤   bracketed infix␤  infix or meta-infix␤FAILED 00:01 108m␤»
05:01 JimmyZ std: gather for 1..10 { take $_ };
05:01 p6eval std 29793: OUTPUT«ok 00:01 106m␤»
05:01 JimmyZ rakudo: gather for 1..10 { take $_ };
05:01 p6eval rakudo ec47f3:  ( no output )
05:01 TimToady rakudo: say (gather { eager ('a'...*).map: { take $^a } }).batch(10)
05:01 p6eval rakudo ec47f3: OUTPUT«abcdefghij␤»
05:02 JimmyZ rakudo: our multi infix:<xx>(Mu \$item, $n) { gather for 1..$n { take $item; } }
05:02 p6eval rakudo ec47f3:  ( no output )
05:03 JimmyZ TimToady: Is it a lazy version?
05:03 TimToady looks like it
05:04 JimmyZ thanks
05:04 TimToady rakudo: say ('a' xx *).batch(10)
05:04 p6eval rakudo ec47f3:  ( no output )
05:04 TimToady or not...
05:05 TimToady rakudo: say ('a' xx 999999).batch(10)
05:05 p6eval rakudo ec47f3:  ( no output )
05:05 TimToady looks like not
05:05 JimmyZ rakudo: our multi infix:<xx>(Mu \$item, $n) { gather for 1..$n { take $item; } } ;say ('a' xx 999999).batch(10)
05:05 p6eval rakudo ec47f3: OUTPUT«Ambiguous dispatch to multi 'infix:<xx>'. Ambiguous candidates had signatures:␤:(Mu $item, Any $n)␤:(Mu $item, Any $n)␤␤current instr.: '_block14' pc 29 (EVAL_1:0)␤»
05:07 JimmyZ rakudo: our multi infix:<xx>('a', $n) { gather for 1..$n { take $item; } } ;say ('a' xx 999999).batch(10)
05:07 p6eval rakudo ec47f3: OUTPUT«Symbol '$item' not predeclared in infix:<xx>␤current instr.: 'perl6;PCT;HLLCompiler;panic' pc 137 (compilers/pct/src/PCT/HLLCompiler.pir:101)␤»
05:10 TimToady rakudo: our multi infix:<xxx>($item, $n) { gather for 1..$n { take $item; } } ;say ('a' xxx 999999).batch(10)
05:10 p6eval rakudo ec47f3: OUTPUT«Confused at line 11, near "say ('a' x"␤current instr.: 'perl6;HLL;Grammar;panic' pc 500 (ext/nqp-rx/src/stage0/HLL-s0.pir:328)␤»
05:10 TimToady rakudo: our multi infix:<yyy>($item, $n) { gather for 1..$n { take $item; } } ;say ('a' yyy 999999).batch(10)
05:10 p6eval rakudo ec47f3: OUTPUT«Confused at line 11, near "say ('a' y"␤current instr.: 'perl6;HLL;Grammar;panic' pc 500 (ext/nqp-rx/src/stage0/HLL-s0.pir:328)␤»
05:14 TimToady rakudo: our multi yyy($item, $n) { gather for 1..$n { take $item; } } ;say (yyy('a',999999)).batch(10)
05:14 p6eval rakudo ec47f3:  ( no output )
05:15 TimToady rakudo: our multi yyy($item, $n) { gather eager do for 1..$n { take $item; } } ;say (yyy('a',999999)).batch(10)
05:15 p6eval rakudo ec47f3:  ( no output )
05:15 TimToady rakudo: our multi yyy($item, $n) { gather eager do for 1..$n { take $item; } } ;say (yyy('a',20)).batch(10)
05:15 p6eval rakudo ec47f3: OUTPUT«aaaaaaaaaa␤»
05:15 JimmyZ rakudo: sub infix:<+->($item, $n) { gather for 1..$n { take $item; } }; say (7 +- 999999).batch(10);
05:15 p6eval rakudo ec47f3: OUTPUT«Method 'batch' not found for invocant of class 'Integer'␤current instr.: '_block14' pc 29 (EVAL_1:0)␤»
05:16 TimToady rakudo: our multi yyy($item, $n) { gather eager do for 1..$n { take $item; say 'x'; } } ;say (yyy('a',20)).batch(10)
05:16 p6eval rakudo ec47f3: OUTPUT«x␤x␤x␤x␤x␤x␤x␤x␤x␤aaaaaaaaaa␤»
05:16 TimToady rakudo: our multi yyy($item, $n) { gather eager do for 1..$n { take $item; say 'x'; } } ;say (yyy('a',200)).batch(10)
05:16 JimmyZ rakudo: our multi yyy($item, $n) { gather for 1..$n { take $item; } } ;say (yyy('a',20)).batch(10)
05:16 p6eval rakudo ec47f3: OUTPUT«x␤x␤x␤x␤x␤x␤x␤x␤x␤aaaaaaaaaa␤»
05:16 p6eval rakudo ec47f3: OUTPUT«aaaaaaaaaa␤»
05:16 TimToady looks lazy to me
05:17 JimmyZ rakudo: our multi yyy($item, $n) { gather for 1..$n { take $item; } } ;say (yyy('a',*)).batch(10)
05:17 p6eval rakudo ec47f3:  ( no output )
05:17 TimToady though it's possible RangeIterator isn't
05:17 JimmyZ rakudo: our multi yyy($item, $n) { gather for 1..$n { take $item; } } ;say (yyy('a',10000000000)).batch(10)
05:18 p6eval rakudo ec47f3:  ( no output )
05:18 TimToady so it gives up trying to construct the .. before looping, maybe
05:18 TimToady rakudo: our multi yyy($item, $n) { gather eager do for 1..$n { take $item; say 'x'; } } ;say (yyy('a',*)).batch(10)
05:18 JimmyZ rakudo: our multi yyy($item, $n) { gather for 1...$n { take $item; } } ;say (yyy('a',10000000000)).batch(10)
05:19 p6eval rakudo ec47f3:  ( no output )
05:19 p6eval rakudo ec47f3:  ( no output )
05:37 lue hello?
05:37 PerlJam greetings
05:37 lue Oi!
05:38 alester joined #perl6
05:55 am0c joined #perl6
05:57 lue left #perl6
06:03 pugs_svn r29794 | lwall++ | [S02] a bit more rationale for previous change
06:04 dalek rakudo/master: e904536 | duff++ | src/Perl6/ (2 files):
06:04 dalek rakudo/master: Simple statement modifier for loop
06:04 dalek rakudo/master: Just iterates; doesn't return values
06:04 dalek rakudo/master: review: http://github.com/rakudo/rakudo/commit/e90453678f18304d9846847af857e5f33c780858
06:04 dalek rakudo/master: ed656df | duff++ | src/core/Any-list.pm:
06:04 dalek rakudo/master: Add non-method form of map
06:04 dalek rakudo/master: review: http://github.com/rakudo/rakudo/commit/ed656df06cf0fa627f9590edef8dcaa5200ab597
06:21 kst` joined #perl6
06:38 gfx joined #perl6
06:48 diakopter zugh
07:21 iblechbot joined #perl6
07:29 cotto joined #perl6
07:30 dalek rakudo/master: 68bb56b | duff++ | src/Perl6/ (2 files):
07:30 dalek rakudo/master: simplify statement_mod_loop logic a little
07:30 dalek rakudo/master: review: http://github.com/rakudo/rakudo/commit/68bb56ba66915fa81c3ea0918203565b350ae4c3
08:03 eternaleye joined #perl6
08:29 Su-Shee joined #perl6
08:33 Su-Shee good morning
08:33 bkeeler hallo
09:16 synth joined #perl6
09:47 drbean joined #perl6
10:15 payload joined #perl6
10:26 orafu joined #perl6
10:26 snarkyboojum joined #perl6
10:27 meppl joined #perl6
10:28 snarkyboojum joined #perl6
11:04 vorner left #perl6
11:25 akl joined #perl6
11:50 Gruber joined #perl6
11:52 meteorjay joined #perl6
11:52 kraih_sri joined #perl6
11:53 bbkr joined #perl6
11:54 itz joined #perl6
11:54 buu joined #perl6
11:54 jrockway joined #perl6
11:56 p6eval joined #perl6
12:05 quester joined #perl6
12:05 ilogger2 joined #perl6
12:22 pmurias joined #perl6
12:22 bkeeler alpha: my @a = gather { take 1, 2; }; say @a
12:22 p6eval alpha 30e0ed: OUTPUT«too many positional arguments: 2 passed, 1 expected␤in Main (file <unknown>, line <unknown>)␤»
12:28 eternaleye my @a = gather { take 1; take 2; }; say @a
12:28 eternaleye grr
12:28 eternaleye pastefail
12:28 eternaleye alpha: my @a = gather { take 1; take 2; }; say @a
12:29 p6eval alpha 30e0ed: OUTPUT«12␤»
12:29 bkeeler Yah, take is supposed to be a listop though
12:29 eternaleye Seems take in alpha doesn't obey the 'accepts a parcel' bit of the spec
12:29 bkeeler Fixing it now ;)
12:29 eternaleye \o/
12:29 eternaleye bkeeler++
12:30 frettled bkeeler: I see that #perl6 has recovered from our game :)
12:30 bkeeler So it has
12:30 eternaleye Hm, alpha is the old master... Is it still intended to be maintained?
12:31 eternaleye Or is it kept for comparison and cherry-picking?
12:31 eternaleye ng: my @a = gather { take 1, 2; }; say @a
12:31 eternaleye gah, old reflexes are old
12:32 eternaleye rakudo: my @a = gather { take 1, 2; }; say @a
12:32 p6eval rakudo 68bb56: OUTPUT«too many positional arguments: 2 passed, 1 expected␤current instr.: '&take' pc 16846 (src/builtins/Junction.pir:485)␤»
12:32 eternaleye Ah, you're fixing it in master and just consulting alpha to see if it got it right
12:32 bkeeler indeed
12:33 eternaleye Missing that is probably a sign that I ought to sleep. This conclusion is supported by it being 4:30 AM
12:33 ggoebel joined #perl6
12:34 Chillance joined #perl6
13:19 crythias joined #perl6
13:19 xabbu42 joined #perl6
13:28 quester left #perl6
13:30 Patterner joined #perl6
13:34 avar joined #perl6
13:34 jonasbn joined #perl6
13:38 payload joined #perl6
13:47 mikehh joined #perl6
13:54 huf joined #perl6
13:57 wknight8111 joined #perl6
14:03 iblechbot joined #perl6
14:11 eternaleye Hm. After reading the S26 discussion on -lang, I decided to do a read-through of that synopsis, and I find myself very happy with it... except for where, under Modules, it uses the syntax '=use Perldoc::Plugin::XHTML-1.2.1-(*)' to set :ver<1.2.1> and :auth(*). It just doesn't feel quite right. Perhaps speccing it as '=use Perldoc::Plugin::XHTML:ver<1.2.1>:auth(*)'? I suggest this because it specifically staes that C<require> is
14:11 eternaleye ...spec as P6 propr
14:11 eternaleye *proper
14:33 jonasbn joined #perl6
14:56 nadim joined #perl6
15:00 am0c joined #perl6
15:07 nihiliad joined #perl6
15:12 TimToady eternaleye: that's how it used to be in Perl too; feel free to update it to the new syntax
15:16 colomon morning!
15:23 * colomon needs to get his head back into the game this morning, after a benefit concert that ran late last night...
15:50 Psyche^ joined #perl6
15:55 pmichaud good morning, #perl 6
15:56 pmurias joined #perl6
16:07 colomon o/
16:07 colomon lazy day here.
16:08 Trashlord joined #perl6
16:11 PerlJam does :pasttype('call') really work with no :name() set?
16:15 pmichaud I think it treats the first child as a callable
16:16 pmichaud colomon: the latest changes made to RangeIter don't match the spec
16:16 pmichaud the latest spec doesn't do any checking of string lengths
16:16 PerlJam That's what the docs say, but I must be doing something wrong as I get "too few positional arguments: 0 passed, 1 (or more) expected"
16:16 PerlJam It's like the other children aren't being passed as args.
16:17 PerlJam (in this case, child)
16:17 pmichaud hmmmm
16:19 pmichaud in that case, it obviously *is* calling something :-)
16:20 PerlJam I'm trying to add the statement modifier form of given.  Here's the patch that I'm working with: https://gist.github.com/13afc5a984d7399803ef
16:22 PerlJam oh, I think I see
16:22 * PerlJam is slow this morning
16:22 PerlJam oh, no I don't see
16:22 pmichaud std:  proto token foo { }
16:22 p6eval std 29794: OUTPUT«[31m===[0mSORRY![31m===[0m␤Null pattern not allowed at /tmp/ZhexAtix5z line 1:␤------> [32mproto token foo { [33m⏏[31m}[0m␤FAILED 00:01 107m␤»
16:33 PerlJam whoever is was that was complaining about compiling core.pm taking forever wasn't kidding.
16:39 pmichaud yes, I need to do some profiling there to see what we can do to speed things up.
16:41 colomon pmichaud: test suite and talking to TimToady make it very clear that the string length stuff is what is intended for Range.
16:42 colomon 'Y'..'AB' is supposed to be Y, Z, AA, AB, not a null list.
16:42 colomon It's also how infix:<...> is supposed to behave.  And other Range stuff needs to be fixed based on that as well.
16:43 pmichaud colomon: do you have that conversation?  The one I saw yesterday indicated otherwise.
16:43 colomon where?
16:44 pmichaud http://irclog.perlgeek.de/perl6/2010-02-20#i_2012654
16:44 colomon http://irclog.perlgeek.de/perl6/2010-02-20#i_2012532 (for instance) indicates that .succ and Ranges do not use lexicographic order
16:46 dalek nqp-rx: 09ded51 | pmichaud++ | src/NQP/Grammar.pm:
16:46 dalek nqp-rx: Throw a useful error message if a protoregex is given a body other than <...>.
16:46 dalek nqp-rx: Based on comments from Austin Hastings (Austin++).
16:46 dalek nqp-rx: review: http://github.com/perl6/nqp-rx/commit/09ded5128fb83ce35e2d0953794b552cc8c4813e
16:46 colomon As I read it in your link, TimToady is talking about a slightly different related issue.
16:46 pmichaud my point is that the spec now says we terminate the range upon reaching the endpoint
16:46 pmichaud and nothing in the spec indicates anything about length-of-string comparison
16:46 colomon afk # lunch, back in ten
16:48 eternaleye TimToady: Cool, I'll make a patch
16:54 colomon or I'll just grab my laptop to the table while I cook ravs for the boy.
16:54 colomon You have to be able to compare the start and end of a series, for sure.
16:55 colomon And since succ does not use lexicographic order, you have to factor in string length.
16:56 pmichaud it doesn't have anything to do with .succ -- the question is what after is supposed to do
16:56 pmichaud let me put it this way
16:56 pmichaud at one time the spec contained a fair bit of detail about how ranges worked with strings based on string length
16:56 pmichaud that's no longer there
16:56 pmichaud which implies to me that string length is no longer intended to be part of the calculation
16:59 PerlJam I thought that was just more water-bed ... push the complexity into the comparison operator we're using
16:59 pmichaud PerlJam: I'm fine if that's the case -- the RangeIterCmp patch doesn't do that.  It keeps the complexity in the range iterator (which is why I think it's not correct)
16:59 colomon I think TimToady just hasn't thought it all through yet.  :)
17:00 colomon pmichaud: I think I actually proposed a new comparison operator sometime in the last two days.  I certainly thought about it.
17:00 pmichaud colomon: so, whenever TimToady hasn't thought something through, my preference is to implement what the spec says :-)
17:00 pmichaud as opposed to what we think "might work" :)
17:01 eternaleye Someone w/ a commitbit: S26-update-module-syntax.patch is at http://ix.io/Ly
17:01 colomon but the spec doesn't say anything sensible on the question at all!
17:01 colomon you're looking at series operator, not Range.
17:02 pmichaud ???
17:03 colomon Likewise, since Z comes after A:
17:03 colomon 'Z' ... 'A'
17:03 colomon uses the function:
17:03 colomon 'Z', *.pred ... -> $old,$new { $old ne 'A' and $new !before 'A'; }
17:03 colomon That's ... not ..
17:05 pmichaud I think that's orthogonal to what I'm saying.
17:07 uniejo joined #perl6
17:08 pmichaud If a range is to take into account the length of a string in computing the endpoints, I want to see that in the spec.
17:09 pmichaud It was in the spec before, it's not there now.
17:09 pmichaud I presume it was removed because length-of-string is no longer the defining criteria.
17:09 pmichaud that being the case, I don't want rakudo code depending on it yet.  In other words, the existence of multi RangeIterCmp()  looks out-of-place with the spec.
17:09 iblechbot joined #perl6
17:10 justatheory joined #perl6
17:10 pmichaud Yes, this probably means we need further clarification from the language design.
17:10 pmichaud (s/the defining criteria/a defining criteria above)
17:12 pmichaud however, reading TimToady++'s comments further, I think he does indeed give the correct semantics (and they don't rely on length).
17:12 colomon I'm all in favor of further clarification.
17:12 pmichaud oh, perhaps not.
17:12 pmichaud hmmm.
17:13 colomon rakudo: say 'A' before '£'
17:13 p6eval rakudo 68bb56: OUTPUT«1␤»
17:13 pmichaud (yes, we need further clarification of 'Y'..'AB')
17:13 pmichaud by my reading of the current spec, that's a null range
17:13 pmichaud because 'Y' comes after 'AB'
17:14 colomon http://irclog.perlgeek.de/perl6/2010-02-20#i_2012585
17:14 dual joined #perl6
17:14 colomon for instance -- TimToady says 'A'..'£' should be infinite.
17:14 pmichaud ...and it is
17:15 pmichaud because all of the elements of the range are !after '£'
17:15 colomon but that's only taking the funky .succ into account.
17:15 pmichaud I don't see the problem.
17:16 pmichaud (I don't see how the #perl6 log you just pasted contradicts the interpretation of 'Y'..'AB' as "null list")
17:17 colomon actually, thinking about that just makes the spec look more broken to me.
17:18 colomon I'm starting to think the real problem here is that .succ does the wrong thing...
17:18 PerlJam colomon: explain.
17:18 fyskij joined #perl6
17:19 PerlJam (.succ is the one thing I think is exactly right :)
17:19 colomon It's completely ASCII-and English-centric.
17:20 colomon But then, the idea that Range listifies still looks kind of broken, too.
17:20 TimToady yes, the spec is broken
17:21 colomon I was just going to say "Find TimToady and get a ruling".  ;)
17:21 TimToady a series like 'Y'..'AB' should only terminate on eqv, and has nothing to do with after/before
17:21 TimToady or length
17:22 colomon TimToady: but you can't know what to do with 'Y'...'AB' without know about after/before.
17:22 colomon that's how you determine whether to use succ or pred
17:22 colomon need to call some folks about a dog, will be watching only for a few minutes...
17:22 TimToady we might make that determination on length, maybe
17:22 PerlJam un ... are we talking about ranges or series?
17:23 TimToady but I'll need to think about it s'more
17:23 PerlJam series don't grok strings I thought. only numbers.
17:23 TimToady rakudo: say 'Z'...'A'
17:23 p6eval rakudo 68bb56: OUTPUT«ZYXWVUTSRQPONMLKJIHGFEDCBA␤»
17:24 * PerlJam looks at the spec again
17:24 eternaleye TimToady: Mind applying the patch to S26 I pasted above?
17:24 TimToady but strings have to be handled specially if they're of different lengths, fershure
17:25 lisppaste3 uniejo pasted "Upto Str funtionality (^"x") " at http://paste.lisp.org/display/95363
17:25 TimToady eternaleye: don't you have a commit bit?
17:25 eternaleye Not for pugs
17:25 pmichaud so then the question becomes... does Range handle strings of different lengths, or does some operator do it?
17:25 TimToady if you /msg me your email I can add you
17:25 eternaleye Unless I did and forgot
17:25 TimToady looking
17:26 TimToady not under your current nick, if so
17:26 eternaleye And it's this nick @ gmail
17:26 TimToady you want same nick for svn id?
17:26 eternaleye Sounds good to me
17:27 TimToady sent
17:27 TimToady thanks
17:27 lue joined #perl6
17:29 m-locks joined #perl6
17:30 TimToady the basic abstraction problem has to do with whether .succ guarantees monotonicity or not
17:30 lue ah, you're still on that :)
17:31 TimToady the problem isn't the lack of monotonicity, but the not knowing :)
17:31 PerlJam TimToady: say that it must and be done with it :)
17:32 pmichaud I think we have two forms of monotonicity at play
17:32 pmichaud for 'Y' and 'AB', there's one that says  "AB should come before Y".  That's lexicographic ordering.
17:32 pmichaud Then there's one that says "AB should come after Y" -- that's the magic increment ordering
17:33 pmichaud in the case of strings, .succ is using magic increment ordering, but cmp uses lexicographic ordering
17:35 eternaleye WTF? The S26 on perlcabal is the one from openfoundry, which is far out of date. No need for my patch, but perhaps perlcabal needs to be re-aimed?
17:36 pmichaud it's interesting to compare this with numerics -- e.g.,   8 and 12 instead of "Y" and "AB"
17:37 colomon there are also weird side issues, like the idea that 'aaaa' .. 'z' is a Range which matches almost every word, but is empty.
17:37 eternaleye Hm, no, it's aimed correctly, it just must not be synced
17:38 colomon afk # off to grocery
17:38 lue rakudo: say 'hello'~~('aaaa' .. 'z');
17:38 pmichaud ...perhaps we just disallow ranges on string?
17:38 p6eval rakudo 68bb56: OUTPUT«1␤»
17:38 lue ō.-
17:38 pmichaud if you want a string sequence, use ... ?
17:39 lue colomon was right (is he ever not?)
17:39 pmichaud I mean, "use the series operator"
17:39 pmichaud or, perhaps we say something like this...
17:39 pmichaud if you're wanting to produce a sequence of elements, you should use the series operator
17:40 pmichaud if you're wanting to keep track of a range of endpoints, use the range operator
17:40 lue rakudo: say 'hello'~~('aaaa'...'z');
17:40 p6eval rakudo 68bb56: OUTPUT«Method 'ACCEPTS' not found for invocant of class 'GatherIterator'␤current instr.: 'infix:<~~>' pc 212013 (src/gen/perl6-actions.pir:15486)␤»
17:41 pmichaud for select data types such as integers where .succ ordering matches cmp ordering, a Range can be used to produce a list of elements in the range
17:41 pmichaud but attempting to iterate a Range with string endpoints produces an exception
17:41 pmichaud (in that case, you should've used a series)
17:42 eternaleye TimToady: I was confused by the fact that S26's HTML page is 97 revisions out of date
17:42 lue string ranges ought to fall under the {} custom ranges area...
17:43 colomon pmichaud: we still need to define how series works with strings, too, then.... :)
17:43 pmichaud colomon: yes, there is that.  :)
17:43 pmichaud I'm just brainstorming ideas at the moment
17:43 PerlJam eternaleye: It looks up-to-date to me.
17:44 lue colomon: I thought you went to grocery. Is it delievered to you? :)
17:44 pmichaud from an implementation perspective, I'm tempted to have rakudo throw a "not yet specced" error whenever constructing a Range from Str endpoints.
17:44 pmichaud my concern is that right now people are trying various string range combinations in Rakudo when none of them can really be considered correct.
17:44 lue a NYS in addition to NYI? That's amazing!
17:45 crazed joined #perl6
17:45 eternaleye Pugs SVN says 'pugs - Revision 29794', while the S26 HTML page says 'syn r29697' at the top. Also, the end sections before the SUMMARY are different between the current pod and the HTML
17:46 pmichaud eternaleye: what url are you looking at?
17:46 eternaleye Both feather.perl6.nl/syn and perlcabal.org/syn
17:46 PerlJam eternaleye: rev 29794 was the last time something in the pugs repo was updated.  rev 29697 was the last time S26 was updated.
17:46 eternaleye And the tail end of the document being different?
17:47 lue pmichaud: Can you really know it's 42 if you don't know the question to LUE ?
17:47 PerlJam different where?
17:47 lue solution: spec string ranges! (to the ApocolypseMobile!)
17:48 pmichaud top of http://perlcabal.org/syn/S26.html says that it was generated on Feb 12
17:48 pmichaud so I'm guessing it's just not updating properly
17:48 pmichaud PerlJam: what are you looking at that appears "up-to-date"?
17:49 PerlJam oh, I guess I missing the gen date on the HTML page
17:49 pmichaud PerlJam: url?
17:49 eternaleye =use -> DOC USE, the addition of DOC INIT, and most clearly demonstrating is the complete absence of the string Pod6::Literate from the HTML
17:50 eternaleye Also the Modules section seems to have been rewritten in totality
17:50 pmichaud yes, there was a significant set of commits to S26 in the past week.
17:51 PerlJam I was looking at http://perlcabal.org/syn/S26.html and comparing to my local repo for up-to-dateness, but apparently I'm not up-to-date either (though I'm 90% sure I updated my repo this morning)
17:51 eternaleye It seems the last update coincides with Damien's last revision being (finally) put into SVN
17:52 eternaleye I noticed that looking at the dates on the S26 thread on -lang
17:52 PerlJam must be some weirdness with git-svn.  Perhaps I didn't update my entire repo, but rather a subsection?
17:53 PerlJam anyway ... lunch
17:53 * PerlJam &
17:53 pmichaud lunch here also
17:54 * lue wishes to know the purpose of & (he does not know all of your secret symbols)
17:54 Su-Shee like setting a process into background.
17:54 IllvilJa joined #perl6
17:57 m-locks what's wrong with parrot/perl6 on windows? i try to run it on xp and it says the application failed to init properly (0xc0150002). click on ok to terminate the application
17:57 m-locks this happens with both
17:57 m-locks parrot.exe and perl6.exe
17:58 m-locks does it log any of the error messages or anything anywhere?
18:00 eternaleye lue: On Unix machines, putting '&' at the end of a shell command tells the command to run in the background and let the user continue interacting with the shell. Here, it's a reference to 'detaching from the terminal', just on the opposite side of the screen
18:01 lue ah. Thank you. (never had to use it, why I didn't know)
18:01 lue That would help a lot, though :D
18:02 eternaleye Unix is rarely something you _have_ to use, but once you start it's the only one you want to use ;D
18:02 eternaleye So much more POWER, muahahahahaha
18:02 m-locks can't use the os x version of parrot as it does not seem to compile, something to do with the configure script and gcc-4.2
18:02 uniejo joined #perl6
18:03 lue I have gcc 4.4.3 (sorry I can't help much, not familiar with windows/mac anymore)
18:03 eternaleye lue: Oh, you meant backgrounding, not unix
18:04 m-locks well the precompiled version apparently does not work on win
18:04 m-locks and it does not output any debug info what's wrong
18:04 m-locks although this version is a stripped one, xp performance ed
18:04 m-locks might have something to do with that
18:05 eternaleye m-locks: The only person I can think of off the top of my head who regularly uses Rakudo and Parrot on windows is jnthn, but I'm not sure if he's awake right now
18:05 tjc joined #perl6
18:06 m-locks ok
18:08 m-locks i googled up this long log from this channel that was about the same configure issue that i'm currently experiencing with snow leopard
18:08 m-locks it's the current macports version of parrot
18:10 lue (theoretically) the source should compile on any *nix machine... which includes OSX
18:11 eternaleye What's the version in macports? The most recent Parrot release is 2.1.1
18:12 m-locks 1.0.0
18:12 lue Oi. Run perl Configure.pl --gen-parrot in the rakudo source code
18:12 m-locks hmm gonna try it
18:13 lue this, in case it was too buried in my sentence: perl Configure.pl --gen-parrot
18:14 uniejo Can anyone commit the ^"str" funtionality, that I nopasted half an hour ago. The spec only mentions upto for integers.
18:17 eternaleye uniejo: Well, upto makes sense for integers, since you have a well-defined starting point: 0. What's the starting point for strings? 'a'? If so, what if someone does ^
18:17 eternaleye ergh
18:17 eternaleye ^','
18:18 lue strings are not nice for p6 it seems. Just allow the whole of Unicode and be done with it :)
18:18 lue Of course, it all needs to be specced...
18:18 eternaleye Also, it isn't in the spec, so it's not likely to go into rakudo without some _heavy_ review, and being added to the spec if it's a valid proposition
18:18 uniejo The starting point is where .pred returns failure
18:19 eternaleye lue: Counting by codepoints or unicode-defined ranges ;P
18:19 eternaleye ?
18:19 eternaleye uniejo: It seems doubtful that will do something useful
18:20 eternaleye It sounds like more of a taxonomical curiosity than something with a purpose
18:20 lue seriously, just allowing the whole of unicode in string ranges (and so on) would be easier than trying to figure out _what_ to allow!
18:21 lue or a simple NYS (Not Yet Specced) error.
18:21 m-locks aye i agree, laissez-faire is the way
18:21 eternaleye lue: Yes, but do we do the ranges based on what unicode defines to be valid ranges, or do we just count codepoints? They're mutually exclusive.
18:21 eternaleye And if we do the former, not all of unicode is allowed
18:21 eternaleye Since some things fall in none of the enumerated ranges
18:21 lue conclusion: force all the questioned parts to return NYS until specced
18:22 m-locks eval: my Int $perl6 = 6; say "$perl6"
18:22 m-locks i herd u got evaluation feature here
18:23 uniejo eternaleye: Could be. I figure that if there is an upto function, it could just as well work for strings.
18:23 m-locks but does not seem to work that way
18:26 lue m-locks: try rakudo: or alpha: or pugs: or std: (I recommend rakudo: or alpha:)
18:26 jferrero joined #perl6
18:26 eternaleye m-locks: we do, see the topic
18:27 eternaleye rakudo: say 'Just try me!';
18:27 p6eval rakudo 68bb56: OUTPUT«Just try me!␤»
18:27 m-locks oh it got buried there, didn't have enough chars on the screen
18:28 m-locks alpha: my Int $perl6 = 6; say "$perl6";
18:28 p6eval alpha 30e0ed: OUTPUT«6␤»
18:28 m-locks whoa, lotsa stuff there
18:30 eternaleye Alpha is what was the master branch until recently, rakudo is the current master which has laziness and other neat stuff but doesn't have quite as much implemented yet. Std is the official validator, it tells you if your perl6 is kosher
18:31 lue I rather enjoy The Book of Camelia myself, but it always gives me cryptic output :)
18:32 m-locks ok cheers
18:33 lue eternaleye: this whole thing about strings out to all be NYS'd (where appropriate) and then discussed in a (relatively) formal matter.
18:33 lue it's a great oversight in the spec, imo. and we must figure it out now!
18:36 lue (for you here "last night" (~11 hrs. ago), ifMUD is written in perl :D )
18:43 m-locks heh, nice
18:43 m-locks bythe way, does that --gen-parrot retrieve the rakudo source files from svn too?
18:43 m-locks or is there such an option
18:47 lue no. rakudo uses git. If you've download the rakudo source from git, then a simple git pull command will do.
18:47 m-locks damn
18:47 lue If you downloaded a tarball of some sort, then I'm afraid all I know how to do is pull git source.
19:02 m-locks ok seems to have compiled
19:02 m-locks All tests successful, 301 subtests skipped.
19:04 lue \o/
19:10 * colomon is back from the grocery, sitting out in the car with a sleeping boy...
19:10 lue o/
19:11 lue <whisper>Hello colomon!</whisper>
19:15 colomon m-locks: --gen-parrot does indeed retrieve Parrot using svn.
19:16 m-locks yes, but i was wondering if it did retrieve rakudo also, you all-in-one building
19:16 m-locks +know
19:18 colomon --gen-parrot is an option you can only use when you have already retrieved rakudo, so far  as I know...
19:18 lue he means the latest version of
19:18 tjc joined #perl6
19:19 * colomon is very confused by this line of thought...
19:19 m-locks aye, but i installed git already
19:21 lue You'll be wantin' te use: git clone git://github.com/rakudo/rakudo.git
19:22 lue Be warned! This will get you the `bleeding-edge' version of rakudo.
19:28 m-locks ok
19:28 m-locks but somethings up
19:28 m-locks tried to run some helloworld.pl and all i get is
19:28 m-locks "load_bytecode" couldn't find file 'P6Regex.pbc'
19:28 m-locks current instr.: '' pc -1 ((unknown file):-1)
19:28 m-locks seems like parrot is not on
19:30 m-locks the tests went ok
19:32 lue ō.– hmmm
19:35 m-locks maybe its got something to do with the install directory of parrot
19:35 wknight81 joined #perl6
19:35 m-locks i mean, i didn't set it specifically
19:35 lue did the configure script compile parrot?
19:35 m-locks yes
19:36 lue hmmm. (I'm somewhat new here as well, can't help much :( )
19:36 lue colomon: I choose you!
19:37 m-locks hmm it seems to have been fixed, i moved the parrot_install directory back under the rakudo dir
19:37 m-locks now i get huge lines of error core
19:37 colomon unfortunately I've never successfully built rakudo on Windows.
19:38 colomon m-locks: oh, yeah, if you're using --gen-parrot parrot / parrot_install needs to be in the rakudo directory.
19:38 m-locks aye
19:39 colomon pmichaud, TimToady: http://irclog.perlgeek.de/perl6/2010-02-21#i_2017315 sounds right to me.
19:40 colomon pmichaud, TimToady: Seems to me the success of series makes Range returning a "list" look unnecessary and kludgy.
19:42 lue The whole thing with strings is iffy. It should return a NYS error for now.
19:54 lue (from what I understand) it's not specced yet. It's more-or-less implied.
19:55 colomon lue: strings are definitely spec'd as working.  it's just the details which are crucially lacking.
19:55 colomon about to lose wi-fi.
19:56 lue yes, details aren't specced. The idea's there, but the thought wasn't finished :D
20:12 colomon joined #perl6
20:13 lue o/ Hi again, colomon
20:13 colomon hello
20:13 colomon now in Wendy's parking lot with wife and sleeping boy
20:14 colomon this house showing stuff is a PITA
20:15 lue ...real estate? Oi.
20:18 justatheory joined #perl6
20:24 colomon lue: yeah, basically we get a call at 1pm tell us we need to be out of the house from 3-6 so they can show it twice.  And of course, my parents are arriving to visit at 4pm.
20:26 colomon So I took the boy to the grocery store while my wife cleaned up (easy since it was shown each of the last two days as well), then stayed with him in the driveway while he slept, then we motored down here to get Frosty's and wi-fi, and when he wakes, we'll take him to the nearby toddler play area until my parents arrive in town.
20:26 lue *face of someone as they say oooh!* oooh!
20:27 crythias joined #perl6
20:28 snarkyboojum joined #perl6
20:37 colomon alpha:     sub gcd ($a, $b) { ($a, $b ... { $^x % $^y || () })[*-1] }; say gcd(42,44);
20:37 p6eval alpha 30e0ed: OUTPUT«2␤»
20:37 colomon alpha:    sub gcd ($a, $b) { ($a, $b ... { $^x % $^y || () })[*-1] }; say gcd(42,24);
20:37 p6eval alpha 30e0ed: OUTPUT«6␤»
20:43 lue what be the purpose of what you did?
20:45 colomon It's a weird (and obsolete) definition of GCD coded using the series operator.  My head's all scattery, so I'm trying to accomplish something useful by going over S03-operators/series.t and fixing all the now-obsolete bits.
20:46 colomon That one struck me as kind of crazy, so I wanted to test it and see if it actually worked in alpha.  And it does!
20:47 colomon I think the way to recode it to spec is { ($a, $b, { $^x & $^y } ... 0)[*-2] }, but don't quote me on that, and it's not testable as that syntax is NYI in master.
20:48 colomon oooo, type, not $^x & $^y, $^x % $^y
20:51 colomon *typo  # not my day for typing, apparently.
20:58 snarkyboojum joined #perl6
21:06 crazed joined #perl6
21:06 crazed joined #perl6
21:07 pmurias joined #perl6
21:09 lue hello
21:11 m-locks have you tried this? http://www.mactech.com/articles/mactech/Vol.23/23.05/Perl6Xcode/index.html
21:11 lichtkind joined #perl6
21:17 lichtkind jnthn: ahoj o/
21:34 Entonian joined #perl6
21:35 payload joined #perl6
22:31 cognominal joined #perl6
22:36 norg joined #perl6
22:39 snarkyboojum joined #perl6
22:40 tigar joined #perl6
22:41 Entonian joined #perl6
23:00 lichtkind jnthn: ping
23:01 test joined #perl6
23:02 Entonian joined #perl6
23:03 REPLeffect joined #perl6
23:10 REPLeffect joined #perl6
23:14 lichtkind moritz_: ping?
23:14 ggoebel joined #perl6
23:21 REPLeffect joined #perl6
23:22 quietfanatic joined #perl6
23:29 Entonian joined #perl6
23:31 colomon joined #perl6
23:40 REPLeffect joined #perl6
23:47 snarkyboojum joined #perl6
23:50 REPLeffect joined #perl6
23:59 REPLeffect joined #perl6

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

Perl 6 | Reference Documentation | Rakudo