Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2011-02-25

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:02 cdarroch_ left #perl6
00:09 domidumont1 joined #perl6
00:12 domidumont left #perl6
00:43 yahooooo left #perl6
00:44 yahooooo joined #perl6
00:48 qiyong joined #perl6
00:53 icwiener left #perl6
01:04 Chillance left #perl6
01:07 tornadovj joined #perl6
01:09 Schwern left #perl6
01:10 Rotwang left #perl6
01:15 jevin left #perl6
01:19 leprevost joined #perl6
01:22 silent_h_ left #perl6
01:23 jaldhar joined #perl6
01:27 jevin joined #perl6
01:29 Schwern joined #perl6
01:35 Schwern left #perl6
01:46 dalek niecza: c7b4852 | sorear++ | / (3 files):
01:46 dalek niecza: Captureless Matches generically get pseudo [0]
01:46 dalek niecza: review: https://github.com/sorear/niecza/commit/c7b485208d
01:53 whiteknight left #perl6
01:59 diakopter phenny: ask masak < masak> literally. I will house you and feed you if you promise to work on this :)
01:59 phenny diakopter: I'll pass that on when masak is around.
01:59 diakopter phenny: ask masak   ......    do I get to determine where on the planet? ;)
01:59 phenny diakopter: I'll pass that on when masak is around.
02:00 noganex joined #perl6
02:01 woosley joined #perl6
02:03 noganex_ left #perl6
02:13 jaldhar left #perl6
02:30 rdesfo left #perl6
02:51 s1n left #perl6
02:51 lopaway is now known as lopnor
02:56 s1n joined #perl6
03:28 lopnor is now known as lopaway
03:44 molaf joined #perl6
03:45 lopaway is now known as lopnor
03:52 leprevost left #perl6
03:54 TimToady off to safari &
03:58 lopnor is now known as lopaway
04:03 jtbraun1 joined #perl6
04:03 mtk left #perl6
04:04 jtbraun left #perl6
04:11 mtk joined #perl6
04:16 woosley1 joined #perl6
04:17 woosley left #perl6
04:23 Su-Shee_ joined #perl6
04:23 satyavvd joined #perl6
04:24 vieq joined #perl6
04:24 vieq left #perl6
04:27 Su-Shee left #perl6
04:44 drbean left #perl6
04:46 satyavvd left #perl6
04:47 drbean joined #perl6
04:52 drbean left #perl6
04:56 drbean joined #perl6
05:00 satyavvd joined #perl6
05:50 kaare_ joined #perl6
06:00 satyavvd left #perl6
06:01 cjk101011 joined #perl6
06:03 jaldhar joined #perl6
06:06 satyavvd joined #perl6
06:18 cjk101011 left #perl6
06:19 cjk101011 joined #perl6
06:24 lopaway is now known as lopnor
06:28 TiMBuS hey jnthn, does blizkost let you use perl5 subs without using eval?
06:29 TiMBuS i see it lets you use modules
06:32 arlinius left #perl6
06:37 sorear TiMBuS: yes
06:37 sorear I've all but taken over blizkost
06:38 sorear (it turns out that interfacing to Perl5 without using the standard interface is horrible)
06:39 TiMBuS i see
06:39 TiMBuS so um how do you do it? say i wanted to use Digest::MD5's exported 'md5_hex' sub
06:40 TiMBuS i know i can use the oo version just fine
06:42 sorear use Digest::MD5:from<perl5>; say md5_hex(...)
06:43 TiMBuS really?
06:44 amkrankruleuen left #perl6
06:44 TiMBuS Could not find sub &md5_hex
06:45 TiMBuS aw
06:46 sorear I guess it wasn't actually exported
06:47 sorear then, you'll need to use my &md5_hex = eval '\&Digest::MD5::md5_hex', :lang<perl5>;
06:47 kanishka left #perl6
06:47 TiMBuS dang
06:47 TiMBuS well thats near enough
06:48 sorear according to perldoc Digest::MD5, "None of these functions are exported by default."
06:49 cosimo left #perl6
06:49 amkrankruleuen joined #perl6
06:50 cosimo joined #perl6
06:50 cosimo left #perl6
06:52 TiMBuS sorear, yeah i know, i guess i was wondering how i would go about importing them
06:53 diakopter my &md5_hex = eval '\&Digest::MD5::md5_hex', :lang<perl5>;  # one by one...
06:54 lopnor is now known as lopaway
06:54 woldrich timbus, my $md5 = *Digest::MD5::md5_hex;
06:57 fhelmberger joined #perl6
06:57 TiMBuS don't think that works, woldrich: Confused at line 2, near "my $md5 = "
06:58 woldrich timbus, 'Confused'?
06:58 woldrich what tells you this?
06:58 TiMBuS perl?
06:58 woldrich perl6?
06:58 TiMBuS yes
06:58 TiMBuS rakudo
06:58 woldrich sorry, thought I was in some perl5 channel...
06:58 diakopter np
06:58 TiMBuS lol
06:59 * diakopter doesn't know whether this is the the sixth Perl 5 channel
07:03 wtw joined #perl6
07:06 knewt2 left #perl6
07:07 knewt2 joined #perl6
07:10 amkrankruleuen left #perl6
07:15 amkrankruleuen joined #perl6
07:17 drbean_ joined #perl6
07:19 drbean left #perl6
07:25 * moritz_ wonders if we should rename the channel to #perl6_YES_REALLY_SIX_NOT_FIVE :-)
07:29 coldhead to make it clear it really is the sixth perl 5 channel?
07:34 barika left #perl6
07:38 fhelmberger left #perl6
07:42 mberends joined #perl6
07:44 mberends LOL
07:45 Axius joined #perl6
07:46 justatheory left #perl6
07:46 justatheory joined #perl6
07:49 amkrankruleuen left #perl6
07:50 amkrankruleuen joined #perl6
07:51 justatheory left #perl6
07:51 donri left #perl6
08:03 amkrankruleuen left #perl6
08:03 amkrankruleuen joined #perl6
08:09 _twitch left #perl6
08:15 Su-Shee_ is now known as Su-Shee
08:21 Axius left #perl6
08:24 benabik left #perl6
08:42 nymacro left #perl6
08:46 yerbestfrend joined #perl6
08:47 yerbestfrend left #perl6
08:55 barika joined #perl6
08:56 snearch joined #perl6
08:57 JimmyZ joined #perl6
09:03 f00li5h left #perl6
09:03 gimix left #perl6
09:07 lamstyle left #perl6
09:12 kanishka joined #perl6
09:20 amkrankruleuen left #perl6
09:21 amkrankruleuen joined #perl6
09:23 Mowah joined #perl6
09:46 daxim joined #perl6
09:48 JimmyZ left #perl6
09:53 amkrankruleuen left #perl6
09:53 woosley1 left #perl6
09:55 amkrankruleuen joined #perl6
09:55 satyavvd left #perl6
09:55 Mowah left #perl6
09:56 satyavvd joined #perl6
10:11 am0c joined #perl6
10:15 nadim__ joined #perl6
10:15 nadim_ left #perl6
10:17 xinming_ is now known as xinming
10:18 envi joined #perl6
10:21 moritz_ *sigh* try.rakudo.org backend seems down again :(
10:23 satyavvd left #perl6
10:30 am0c left #perl6
10:33 Mowah joined #perl6
10:37 Mowah left #perl6
10:48 Mowah joined #perl6
10:51 snearch left #perl6
11:08 JimmyZ joined #perl6
11:13 M_o_C joined #perl6
11:18 amkrankruleuen left #perl6
11:23 lamstyle joined #perl6
11:30 JimmyZ left #perl6
11:30 dalek book: 69789ed | moritz++ | src/basics.pod:
11:30 dalek book: grammar
11:30 dalek book: review: https://github.com/perl6/book/commit/69789edbc9
11:32 leprevost joined #perl6
11:33 amkrankruleuen joined #perl6
11:40 woosley joined #perl6
11:42 Mowah left #perl6
11:44 amkrankruleuen left #perl6
11:45 amkrankruleuen joined #perl6
11:46 donri joined #perl6
11:50 mtk left #perl6
11:55 kanishka left #perl6
11:57 coldhead left #perl6
11:59 M_o_C left #perl6
11:59 mtk joined #perl6
12:01 orafu left #perl6
12:01 kanishka joined #perl6
12:02 flussence argh, I need to figure out why that backend keeps freezing...
12:02 orafu joined #perl6
12:09 JimmyZ joined #perl6
12:17 M_o_C joined #perl6
12:19 M_o_C left #perl6
12:21 JimmyZ left #perl6
12:22 Mowah joined #perl6
12:23 bluescreen joined #perl6
12:30 satish joined #perl6
12:32 satish hi how to work here
12:33 satish ?
12:33 satish can anyone help me out?
12:33 mberends rakudo: say "Hi satish";
12:33 p6eval rakudo 58e40e: OUTPUT«Hi satish␤»
12:34 mberends rakudo: say "satish".uc
12:34 p6eval rakudo 58e40e: OUTPUT«SATISH␤»
12:34 sji joined #perl6
12:35 satish left #perl6
12:49 colomon left #perl6
12:51 leprevost_ joined #perl6
12:53 disaster123 joined #perl6
12:55 leprevost left #perl6
12:55 MayDaniel joined #perl6
12:55 MayDaniel left #perl6
12:55 MayDaniel joined #perl6
12:58 amkrankruleuen left #perl6
12:58 amkrankruleuen joined #perl6
13:02 donri rakudo: say <atraps si siht>.join("."x3~" ").uc~"!"x3
13:02 p6eval rakudo 58e40e: OUTPUT«===SORRY!===␤Unable to parse postcircumfix:sym<( )>, couldn't find final ')' at line 22␤»
13:02 donri rakudo: say <atraps si siht>.join("."x 3~" ").uc~"!"x 3
13:02 p6eval rakudo 58e40e: OUTPUT«ATRAPS... SI... SIHT!!!␤»
13:02 donri rakudo: say <atraps si siht>.join("."x 3~" ").flip.uc~"!"x 3
13:02 p6eval rakudo 58e40e: OUTPUT«THIS ...IS ...SPARTA!!!␤»
13:04 takadonet morning all
13:05 moritz_ \o
13:05 moritz_ TCIF!
13:06 coldhead joined #perl6
13:07 takadonet tcif?
13:09 leprevost_ left #perl6
13:09 moritz_ Thank Christ It's Friday
13:09 leprevost joined #perl6
13:12 lopaway is now known as lopnor
13:13 disaster123 left #perl6
13:13 JimmyZ joined #perl6
13:48 leprevost left #perl6
13:59 drbean_ is now known as drbean
14:02 coldhead left #perl6
14:09 ab5tract joined #perl6
14:15 Lorn_ joined #perl6
14:23 mberends left #perl6
14:29 pigdude joined #perl6
14:33 spq joined #perl6
14:39 jaldhar left #perl6
14:41 PerlJam Hello #perl6
14:42 takadonet PerlJam: yo
14:45 tadzik aloha
14:50 bluescreen left #perl6
14:54 moritz_ hello folks
14:54 moritz_ please leave your comments on http://news.perlfoundation.org/2011/0​2/hague-grant-application-struct.html
14:54 * moritz_ trolls the channel
14:55 tadzik ENOAUTHORITY (:
14:56 moritz_ huh?
14:56 moritz_ you need javascript enabled, iirc
14:56 moritz_ but not "auhority"
14:57 tadzik nah, I just don't think my comment is valuable at all (:
14:58 * moritz_ thinks differently
14:58 tadzik then I shall comment
14:59 moritz_ ++tadzik
14:59 donri wait, an employer can get away with forbidding employees to earn more money outside of work?
15:00 moritz_ donri: in Germany everything below 400€ per month doesn't count as employment
15:01 moritz_ donri: so the employer has no say in it
15:01 donri but why do they have a say at all?
15:01 moritz_ to explain the relatively low demand
15:01 takadonet moritz_: done
15:02 takadonet ... does it take long before they accept comments?
15:04 alester joined #perl6
15:05 sji left #perl6
15:05 pyrimidine moritz_: submitted a comment as well
15:05 tadzik submitted
15:06 pyrimidine I suppose Karen has to approve the comments
15:08 sjn !seen masak
15:08 sjn gah, I always forget how to use them thar botties
15:08 sjn seen masak
15:08 aloha masak was last seen in #perl6 17 hours 30 mins ago saying "o/".
15:08 donri seen how to use this command
15:08 aloha Sorry, I haven't seen how to use this command.
15:09 sjn seen help
15:09 aloha Sorry, I haven't seen help.
15:09 sjn aloha: thanks! ^^
15:16 cjk101011 left #perl6
15:21 moritz_ aloha: help
15:21 aloha moritz_: Ask me for help about: seen, karma (say 'help <modulename>').
15:21 moritz_ aloha: help seen
15:21 aloha moritz_: Tracks when and where people were seen. Usage: seen <nick>, hide, unhide.
15:21 moritz_ aloha: help karma
15:21 aloha moritz_: Gives karma for or against a particular thing. Usage: <thing>++ # comment, <thing>-- # comment, karma <thing>, explain <thing>.
15:21 JimmyZ left #perl6
15:21 moritz_ explain moritz_
15:21 aloha positive: p6advent support (tadzik), has a good blog post with all the most common tips and tricks. I'll try to find it for you. (masak), for the challenges ([particle]); negative: nothing; overall: 192.
15:22 PerlJam moritz_: I think you should have 4 deliverables.   spec, test, implementation, documentation.
15:23 PerlJam (and get your corresponding 400 euro per deliverable)
15:23 moritz_ PerlJam: too late for that I suppose
15:24 PerlJam moritz_: it's never too late  :)  Surely you can request a revision?
15:24 PerlJam moritz_: in any case moritz_++  :)
15:24 qiyong left #perl6
15:25 pyrimidine moritz_: agree with PerlJam, that sounds like a nice way to break it up (per deliverable)
15:26 tadzik nqp: say "new 'Complex'" ~~ / new \[?'Complex'\]? / # why doesn't this match?
15:26 p6eval nqp: OUTPUT«Confused at line 1, near "say \"new '"␤current instr.: 'parrot;HLL;Grammar;panic' pc 17541 (gen/hllgrammar-grammar.pir:4828)␤»
15:26 satyavvd joined #perl6
15:26 moritz_ tadzik: because whitespace is metasyntactic in p6 regexes
15:27 moritz_ nqp: say('a b' ~~ /a b/)
15:27 p6eval nqp: OUTPUT«␤»
15:27 moritz_ nqp: say('a b' ~~ /:s a b/)
15:27 p6eval nqp: OUTPUT«a b␤»
15:27 tadzik nqp: say("new 'Complex'" ~~ /:s new \[?'Complex'\]?/)
15:27 p6eval nqp: OUTPUT«␤»
15:28 moritz_ and ' is metasyntactic too
15:28 tadzik oh, right
15:28 moritz_ nqp: say("new 'Complex'" ~~ /:s "new" \[? "'Complex'" \]?/)
15:28 p6eval nqp: OUTPUT«new 'Complex'␤»
15:35 wtw left #perl6
15:37 MayDaniel left #perl6
15:38 donri explain donri
15:38 aloha positive: colomon++ (masak); negative: nothing; overall: 1.
15:38 donri hehe
15:39 tty234 left #perl6
15:39 takadonet explain takadonet
15:39 aloha positive: | projects.list: (dalek), | projects.list: (dalek), sending me ~6k visitors from reddit (moritz_); negative: nothing; overall: 29.
15:39 bluescreen joined #perl6
15:39 takadonet karma takadonet
15:39 aloha takadonet has karma of 29.
15:39 takadonet seen pmichaud
15:39 aloha pmichaud was last seen in #perl6 1 days 16 hours ago joining the channel.
15:40 donri how boring, aloha is perl5
15:40 ab5tract left #perl6
15:41 fhelmberger joined #perl6
15:42 Axius joined #perl6
15:46 takadonet donri: change it to p6 then :)
15:48 pmichaud good morning, #perl6
15:49 PerlJam pmichaud: o/
15:49 Axius_ joined #perl6
15:50 tadzik hello pmichaud
15:51 Axius left #perl6
15:51 satyavvd_ joined #perl6
15:52 woosley left #perl6
15:54 satyavvd left #perl6
15:54 satyavvd_ is now known as satyavvd
15:54 donri the ircbot stub in the book is friggin beautiful in some ways
15:55 satyavvd left #perl6
15:55 icwiener joined #perl6
15:55 satyavvd joined #perl6
15:56 Axius_ left #perl6
15:56 moritz_ good morning pmichaud
16:01 rdesfo joined #perl6
16:04 Axius joined #perl6
16:06 moritz_ http://www.perlmonks.org/?node_id=890175 the more I think about it, the less I like the invocant colon
16:07 mkramer left #perl6
16:07 flussence .oO( oh, so *that's* why the example for exec() uses a block... )
16:08 dual joined #perl6
16:09 mkramer joined #perl6
16:09 daxim TRWTF is why he's still using FileHandle in 2011
16:10 flussence maybe he's programming under duress
16:10 [Coke] pmichaud: o/
16:10 moritz_ daxim: what's wrong with it?
16:11 daxim it should be deprecated more aggressively, and don't give me that wishy washy timtowtdi bullshit because it doesn't apply here
16:12 moritz_ that doesn't answer my question at all.
16:12 daxim it's a vestigial class
16:12 daxim it's purpose is backcompat
16:13 daxim obviously the supplicant is writing new code with it
16:13 daxim that's wrong
16:13 flussence "NOTE: This class is now a front-end to the IO::* classes."
16:13 flussence there's a reason...
16:13 moritz_ a frontend isn't necessarily a bad thing
16:14 moritz_ if you say that the IO:: classes can do the same thing better, then that's a reason.
16:14 flussence it's longer to type :)
16:16 Patterner left #perl6
16:16 Axius left #perl6
16:18 Psyche^ joined #perl6
16:18 Psyche^ is now known as Patterner
16:19 flussence (but on the other hand the IO::File manpage uses indirect object syntax in its examples while FileHandle doesn't...)
16:21 justatheory joined #perl6
16:29 moritz_ flussence: changed in blead
16:29 flussence yay
16:33 orafu left #perl6
16:33 risou joined #perl6
16:35 orafu joined #perl6
16:44 MayDaniel joined #perl6
16:56 lopnor is now known as lopaway
16:59 envi left #perl6
17:03 satyavvd left #perl6
17:05 daxim left #perl6
17:06 mkramer left #perl6
17:11 mkramer joined #perl6
17:23 flussence rakudo: rx{<?after [,.]>} # what's wrong here? Trying to rewrite a qr{(?<=[,.])} in perl6
17:23 p6eval rakudo 58e40e: OUTPUT«===SORRY!===␤regex assertion not terminated by angle bracket at line 22, near " [,.]>} # "␤»
17:24 lopaway is now known as lopnor
17:26 plainhao joined #perl6
17:28 sji joined #perl6
17:30 flussence hm, it gets further with <?after <[,.]>> ... now I get a different thing:
17:30 flussence Method 'after' not found for invocant of class 'Cursor'
17:30 flussence ( code here - https://github.com/flussence/Text-T​abs-Wrap/blob/cleanup/t/Jacobson.t )
17:31 moritz_ flussence: after NYI
17:31 flussence oh, ok
17:31 colomon joined #perl6
17:43 sorear fwiw, niecza supports that use of after.
17:46 cdarroch joined #perl6
17:46 cdarroch left #perl6
17:46 cdarroch joined #perl6
17:48 moritz_ niecza: say ~(a => 2)
17:48 p6eval niecza v2-105-gc7b4852: OUTPUT«Pair()<instance>␤»
17:48 moritz_ patch is on github :-)
17:49 moritz_ niecza: .say for 1.list
17:49 p6eval niecza v2-105-gc7b4852: OUTPUT«1␤»
17:49 moritz_ rakudo: my @a = 1..5; say @a[ [0, 3] ]
17:49 p6eval rakudo 58e40e: OUTPUT«14␤»
17:50 moritz_ is that correct? or should it returns @a[2]?
17:53 sorear rakudo: say ~(a => 2)
17:53 p6eval rakudo 58e40e: OUTPUT«a 2␤»
17:54 sorear moritz_: it should return @a[2]; I'm pretty sure I saw it on RT first
17:54 sorear s/first/already/
17:55 * sorear starts reading moritz' application
17:55 moritz_ sorear: thanks
17:56 moritz_ sorear: what do I have to do to get a commit bit to niecza? :-)
17:56 rdesfo left #perl6
17:56 sorear moritz_: ask
17:56 rdesfo joined #perl6
17:56 sorear seems I broke something ...
17:56 moritz_ sorear: can I haz a commit bit?
17:57 moritz_ sorear: I think some regex newline tests regressed
17:58 sorear well I just tried to do the v3 bootstrap, and it hung :/
17:58 Bzek joined #perl6
18:01 hercynium joined #perl6
18:02 moritz_ in fact three spectest files have regressed
18:04 lopnor is now known as lopaway
18:05 mberends joined #perl6
18:09 sorear moritz_: tell me more about these newline tests
18:09 moritz_ t/spec/S05-metachars/line-anchors.t                         (Wstat: 0 Tests: 19 Failed: 7) Failed tests:  2, 4, 7-9, 13-14
18:09 sorear NIECZA_HIGHWATER_TRACE=1 tells me that the hang occurred in the middle of trying to strip whitespace from a heredoc
18:10 sorear which ... kinda sounds newline related
18:10 moritz_ it's a string "abc\ndef\ghi"
18:10 moritz_ the test that fails is
18:10 moritz_ ok(!( $str ~~ m/^bc/ ), 'SOS bc' );
18:10 moritz_ the first one, that is
18:11 snearch joined #perl6
18:11 moritz_ niecza: say ?("abc" ~~ m/d/)
18:11 p6eval niecza v2-105-gc7b4852: OUTPUT«Bool::True␤»
18:11 moritz_ that might be the culprit too
18:15 Vlavv` joined #perl6
18:17 sorear niecza: say ?("abc" ~~ /d/)
18:17 p6eval niecza v2-105-gc7b4852: OUTPUT«Bool::False␤»
18:18 sorear niecza: say ?("abc\ndef\nghi" ~~ /^bc/)
18:18 Vlavv_ left #perl6
18:18 p6eval niecza v2-105-gc7b4852: OUTPUT«Bool::False␤»
18:21 sorear niecza: say q:to[gimel] ;␤ aleph␤ bet␤gimel␤
18:21 p6eval niecza v2-105-gc7b4852: OUTPUT«(timeout)»
18:21 sorear niecza: say q:to[gimel] ;␤aleph␤bet␤gimel␤
18:21 p6eval niecza v2-105-gc7b4852: OUTPUT«aleph␤bet␤␤»
18:22 sorear niecza: say q:to[gimel] ;␤ aleph␤gimel␤
18:22 p6eval niecza v2-105-gc7b4852: OUTPUT«(timeout)»
18:23 sorear the problem is on NieczaActions line 931
18:24 jtbraun1 left #perl6
18:25 impious joined #perl6
18:25 impious left #perl6
18:25 MayDaniel left #perl6
18:27 * mberends is can haz a cheezburger o/
18:28 MayDaniel joined #perl6
18:28 masak joined #perl6
18:28 fhelmberger left #perl6
18:28 masak weekend! \o/
18:28 phenny masak: 24 Feb 21:42Z <Tene> tell masak that if he had made that offer of supporting me to work on Parrot and Perl 6 a year ago, I'd probably be living on his couch today.
18:29 phenny masak: 24 Feb 22:41Z <Tene> tell masak that last year around this time I was considering trying to move to texas for a couple of months to stay with pmichaud and work on rakudo
18:29 phenny masak: 01:59Z <diakopter> ask masak < masak> literally. I will house you and feed you if you promise to work on this :)
18:29 phenny masak: 01:59Z <diakopter> ask masak   ......    do I get to determine where on the planet? ;)
18:29 masak diakopter: no, the context was "be my guest". :P
18:29 colomon not weekend!  :(
18:29 mberends the weekend has begun, and for me it is Perl 6 Hackathon from now until 8th March :-)
18:29 masak mberends: wow!
18:29 colomon mberends++
18:30 * colomon has to have his yearly meeting with his accountant in 90 minutes.
18:31 MayDaniel left #perl6
18:32 jtbraun joined #perl6
18:33 masak colomon: have the appropriate amount of fun.
18:33 colomon heh
18:34 MayDaniel joined #perl6
18:35 flussence I went and installed mono+niecza just to see if I could get it to pass that one test file using <?after>. Didn't get very far :(
18:36 flussence niecza: our Int $tabstop = 8;
18:36 p6eval niecza v2-105-gc7b4852: OUTPUT«[31m===[0mSORRY![31m===[0m␤␤In our declaration, typename 'Int' must be predeclared (or marked as declarative with :: prefix) at /tmp/Xc5uR4cdJz line 1:␤------> [32mour Int[33m⏏[31m $tabstop = 8;[0m␤␤Malformed our at /tmp/Xc5uR4cdJz line 1:␤------> [32mour
18:36 p6eval ..[33m⏏[31mInt $t…
18:37 sorear if you aren't testing type constraints, don't use them
18:38 flussence there's more unsupported thing errors, but a few of those things are only workarounds for rakudo :)
18:40 rdesfo left #perl6
18:44 flussence alright, I've got Text::Tabs down to a single error in niecza... it doesn't like the first line with the module name.
18:44 sorear I suppose I need to fix that
18:47 snearch left #perl6
18:51 MayDaniel left #perl6
18:57 Chillance joined #perl6
19:06 dalek niecza: 857b7a1 | sorear++ | src/niecza:
19:06 dalek niecza: Fix hang on heredocuments with flush left terminators and indented contents
19:06 dalek niecza: review: https://github.com/sorear/niecza/commit/857b7a1b89
19:08 hanekomu joined #perl6
19:08 dalek niecza: dbcf870 | sorear++ | / (2 files):
19:08 dalek niecza: Merge remote branch 'moritz/small-features-spectets'
19:08 dalek niecza: review: https://github.com/sorear/niecza/commit/dbcf870498
19:09 sorear niecza can now build niecza again but it's not making a working verison
19:20 slavik1 sorear: at least it can build itself :)
19:25 jtbraun left #perl6
19:26 dwhipp left #perl6
19:29 jferrero joined #perl6
19:37 mtk left #perl6
19:37 plobsing left #perl6
19:38 plobsing joined #perl6
19:40 colomon left #perl6
19:43 * masak digs into the p5 solutions
19:43 moritz_ \o/
19:43 masak next year, I'm going to call the tasks 't1' to 't5' :)
19:43 moritz_ does that mean we'll finally have a winner?
19:43 masak moritz_: I might to the finally-a-winner post separately.
19:44 moritz_ masak: I kinda expected that
19:44 masak but I expect to do that one fairly soon after p5.
19:44 moritz_ masak: I associated p4 with "perforce" (the version control system)
19:44 masak :)
19:45 sorear reminds me of the v2 story
19:45 sorear *V2
19:45 mberends masak: will the t be for task, test, tease or torture?
19:46 mtk joined #perl6
19:46 moritz_ :-)
19:46 moritz_ polymorphic abbreviate, it can mean all of that at once
19:46 mberends so it has eigenmeaning
19:49 masak mberends: the 't' will officially stand for 't' :)
19:49 rhr left #perl6
19:49 masak in unrelated news, I've been using Moose in the past few days. a very pleasant experience.
19:50 masak stevan++
19:50 dalek roast: 9100295 | (Dave Whipp)++ | S03-sequence/limit-arity-2-or-more.t:
19:50 dalek roast: tests of sequence operator with limit function having arity > 1
19:50 dalek roast:
19:50 dalek roast: Signed-off-by: Moritz Lenz <moritz@faui2k3.org>
19:50 dalek roast: review: https://github.com/perl6/roast/commit/9100295200
19:50 masak moritz_++
19:51 MayDaniel joined #perl6
19:51 MayDaniel left #perl6
19:51 MayDaniel joined #perl6
19:51 rhr joined #perl6
19:52 flussence is there a nicer way to write @array.map(something-long)\n.join(something-else) without backslashing the line break between ")" and "."?
19:52 moritz_ feeds
19:53 moritz_ (once they are properly implemented, I guess)
19:53 flussence that's an interesting idea...
19:55 dalek rakudo: 7515fc2 | (Dave Whipp)++ | src/core/operators.pm:
19:55 dalek rakudo: add error for use of Multi as sequence limit
19:55 dalek rakudo:
19:55 dalek rakudo: Signed-off-by: Moritz Lenz <moritz@faui2k3.org>
19:55 dalek rakudo: review: https://github.com/rakudo/rakudo/commit/7515fc22cc
19:55 dalek rakudo: 1170a59 | (Dave Whipp)++ | src/core/operators.pm:
19:55 dalek rakudo: Sequence operator supports limit functions with arity > 1
19:55 dalek rakudo:
19:55 dalek rakudo: Signed-off-by: Moritz Lenz <moritz@faui2k3.org>
19:55 dalek rakudo: review: https://github.com/rakudo/rakudo/commit/1170a59c31
19:55 masak I think backslashes are a decent sacrifice for introducting whitespace in the middle of a term.
19:56 masak and it's sorta-kinda congruent with what you have to do in bash et al when breaking lines.
19:56 flussence that makes it sound a lot more sense-making
19:57 masak I don't use it a lot myself, but I also wouldn't have a problem using it.
19:58 moritz_ if your map -> grep -> map -> join whatever statements become too long, they get hard to read
19:58 masak aye.
19:58 masak series of map -> grep -> map -> join are things I tend to want to vertically align to make the repetition stand out.
19:59 moritz_ that often helps, aye
20:00 masak oh, and this week's Perl 5/6 braino: trying to use 'for' to loop over a diamond operator in Perl 5 :)
20:01 masak just 2.5 years ago, I distinctly remember half-cursing over having to use 'for' for that in Perl 6... :)
20:01 donri wait you have to backslash that?
20:02 masak donri: TTIAR :)
20:02 flussence Definitely more readable even with the backslashes - old: http://github.com/flussence/Text-Tabs-W​rap/blob/0c23ad1/lib/Text/Wrap.pm#L123 new: https://github.com/flussence/Text-Tabs-​Wrap/blob/cleanup/lib/Text/Wrap.pm#L117
20:02 masak donri: it keeps coming back to that.
20:02 donri ?
20:02 donri two terms etc ok
20:02 masak yes.
20:02 donri but ; should disambiguate just fine?
20:02 moritz_ masak: it kinda works in p5. It just reads all the file into memory
20:02 donri I guess it reads as $_.join
20:03 masak std: my @a; @a.map({ $_ })       .grep({0})
20:03 p6eval std 4608239: OUTPUT«[31m===[0mSORRY![31m===[0m␤Method call found where infix expected (omit whitespace?) at /tmp/jVa3omrON3 line 1:␤------> [32mmy @a; @a.map({ $_ })       [33m⏏[31m.grep({0})[0m␤    expecting infix or meta-infix␤Parse failed␤FAILED 00:01 122m␤»
20:03 masak moritz_: troo
20:03 donri couldn't linebreak be specialcased there?
20:03 flussence special cases are bad.
20:03 masak moritz_: I stopped myself before running it. I just found it funny.
20:03 donri rakudo: <a b c>. map: *.uc
20:03 p6eval rakudo 58e40e: OUTPUT«===SORRY!===␤Confused at line 22, near "<a b c>. m"␤»
20:03 masak donri: I *definitely* wouldn't want a special case involving line breaks :)
20:04 masak donri: that way lies madness, and JavaScript.
20:04 donri but we have mandatory ;
20:04 donri ok well i basically agree anyway
20:04 masak I didn't say it'd be as bad as JavaScript :)
20:06 rhr left #perl6
20:10 masak ooh! colomon is using nested classes in his p5 solution!
20:10 masak we talked about nested classes here on the channel just the other day.
20:11 shi_ joined #perl6
20:13 rhr joined #perl6
20:13 sji left #perl6
20:16 kanishka left #perl6
20:18 rhr left #perl6
20:19 bluescreen left #perl6
20:20 rhr joined #perl6
20:26 masak suggested topic: when to write C< $a .. $b - 1 > and when to write C< $a ..^ $b > ?
20:26 masak :)
20:27 masak oh, and it's not a trick question. I'm assuming both $a and $b are integer indexes.
20:30 masak rakudo: say (my %).push( "abacadabra".comb Z 0..* ).perl
20:30 p6eval rakudo 7515fc: OUTPUT«{"a" => [0, 2, 4, 6, 9], "b" => [1, 7], "c" => 3, "d" => 5, "r" => 8}␤»
20:30 masak that's just... so cool.
20:31 ymasory_ joined #perl6
20:32 masak rakudo: say (my %).perl; say (my %).perl
20:32 p6eval rakudo 7515fc: OUTPUT«===SORRY!===␤Redeclaration of symbol % at line 22, near ").perl"␤»
20:32 rhr left #perl6
20:32 masak anyone remember if this one was ever submitted?
20:33 masak it was. http://rt.perl.org/rt3/Tic​ket/Display.html?id=76986
20:33 masak bbkr++
20:33 masak rakudo: say (my %).push( "abacadabra".comb.kv ).perl
20:33 p6eval rakudo 7515fc: OUTPUT«{"0" => "a", "1" => "b", "2" => "a", "3" => "c", "4" => "a", "5" => "d", "6" => "a", "7" => "b", "8" => "r", "9" => "a"}␤»
20:33 tadzik std: my $ = 'a'; my $ = 4;
20:33 p6eval std 4608239: OUTPUT«ok 00:01 121m␤»
20:34 tadzik niecza: my $ = 'a'; my $ = 4; say "alive"
20:34 masak rakudo: say (my %).push( "abacadabra".comb.kv.reverse ).perl
20:34 p6eval niecza v2-111-gdbcf870: OUTPUT«[31m===[0mSORRY![31m===[0m␤␤Non-simple variables NYI at /tmp/1GLMZYmUdg line 1:␤------> [32mmy $[33m⏏[31m = 'a'; my $ = 4; say "alive"[0m␤␤Non-simple variables NYI at /tmp/1GLMZYmUdg line 1:␤------> [32mmy $ = 'a'; my $[33m⏏[31m = 4; say
20:34 p6eval .."alive"[0m␤␤Unhandled exception:…
20:34 p6eval rakudo 7515fc: OUTPUT«{"a" => [9, 6, 4, 2, 0], "r" => 8, "b" => [7, 1], "d" => 5, "c" => 3}␤»
20:34 masak tadzik: submit a niecza TODO! :)
20:35 rhr joined #perl6
20:54 aindilis left #perl6
20:55 aindilis joined #perl6
20:56 flussence I get the feeling this return is supposed to be a recursive call instead... any second opinion? https://github.com/flussence/Text-Tabs-​Wrap/blob/cleanup/lib/Text/Wrap.pm#L85
20:58 flussence (FWIW, the perl5 code was like this already, I think a lot of this is missing test coverage...)
20:59 * masak went into #catalyst and asked what the point of MVC was ;)
20:59 masak got good responses, actually.
21:00 masak flussence: sure looks that way.
21:00 araujo left #perl6
21:01 masak flussence: considering the other 'return' is a Str, and that the three items in that list match the signature.
21:01 araujo joined #perl6
21:03 masak rakudo: say 10 | 20 - 5
21:03 p6eval rakudo 7515fc: OUTPUT«any(10, 15)␤»
21:04 masak right. infix:<-> binds tighter than infix:<|>.
21:08 moritz_ masak: re $a ..^ $b vs. $a .. ($b - 1) depends on whether you want $b - 0.1 to match the range or not
21:08 masak oh, I had some implicit context, it seems.
21:08 masak I was talking about for loop ranges.
21:09 masak I actually hesitate between the two sometimes :)
21:09 masak and even more between $a ..^ $b - 1 and $a .. $b - 2
21:10 moritz_ there it's easy for me: $b - 2 wins
21:11 moritz_ because ^ $b - 1 distributes the offset into two separate constructs
21:11 moritz_ which makes the intent less clear
21:11 masak to me it's not that clear-cut.
21:11 masak sometimes the surrounding code uses ..^ $b
21:12 moritz_ to me ^ means "an epsilon less"
21:12 moritz_ which doesn't make much sense for integers
21:12 moritz_ so I tend not to use it with integers, except when golfing
21:13 sbp maybe your definition is broken? :-)
21:13 masak Util: your concerns about plagiarism in p5 are unfounded. as long as you didn't copy from other contestants :)
21:13 plainhao left #perl6
21:13 moritz_ rakudo: say 1.8 ~~ ^2
21:13 p6eval rakudo 7515fc: OUTPUT«Bool::True␤»
21:14 moritz_ sbp: rakudo agrees with my definition
21:14 masak moritz_: to me, it means something like "but not including, and we all know why"
21:14 masak moritz_: which is why I tend to prefer the '- 1' case when it's not too clear why.
21:14 masak I don't think in terms of epsilons.
21:15 ymasory_ left #perl6
21:15 sbp rakudo: say 1.5 ~~ ^2
21:15 p6eval rakudo 7515fc: OUTPUT«Bool::True␤»
21:15 sbp rakudo: say 1.1 ~~ ^2
21:15 p6eval rakudo 7515fc: OUTPUT«Bool::True␤»
21:15 sbp rakudo: say 0.9 ~~ ^2
21:15 flussence good idea, bad idea? https://gist.github.com/844514
21:15 p6eval rakudo 7515fc: OUTPUT«Bool::True␤»
21:15 sbp rakudo: say -i ~~ ^2
21:15 p6eval rakudo 7515fc: OUTPUT«Bool::False␤»
21:15 moritz_ rakudo: say 2 ~~ ^2
21:15 p6eval rakudo 7515fc: OUTPUT«Bool::False␤»
21:16 masak flussence: I'm a ternary guy, and I'd use them in any such situation.
21:16 sbp so why the behaviour of $a ..^ $b?
21:16 masak flussence: ifs-with-assignment-to-the-same-variable, that's a clear ternary refactor to me.
21:16 sbp it seems only related to the behaviour of the above
21:17 moritz_ in both cases it means "up to but exluding"
21:17 masak sbp: because in list context, ranges collapse into a list of values steps of 1 between them.
21:17 masak rakudo: say (2.5 .. 7.5).list.perl
21:17 p6eval rakudo 7515fc: OUTPUT«(5/2, 7/2, 9/2, 11/2, 13/2, 15/2)␤»
21:17 sbp so again, why avoid using it because of the definition...
21:18 sbp if the glove fits, you must compile
21:18 flussence hm, the perl5 was originally a ternary... not as nicely formatted though :)
21:18 moritz_ sbp: maybe it's irrational
21:19 sbp if there's some rationale behind the design of ^ that makes it incompatible with the present use in $a ..^ $b for integer ranges, are you arguing that it shouldn't be allowed there?
21:19 moritz_ not at all
21:20 orafu left #perl6
21:21 sbp then what are you saying? that it's conceptually clumsy, but not conceptually outrageous?
21:21 masak I have now looked at all the p5 solutions. these might be the most difficult of the bunch to judge.
21:22 orafu joined #perl6
21:22 masak all I know so far is that I will need to look at them again :)
21:22 masak in more detail.
21:22 moritz_ I'm merely saying that *I* think of ^ in terms of epsilons, because of the smart-matching behavior
21:23 moritz_ and that's why I feel they are not a perfect fit for integer iterations, even though it works
21:23 sbp ah! so you're using that as the prototypical case and saying it affects your approach to other uses, I see
21:23 hanekomu_ joined #perl6
21:25 flussence .u nbsp
21:25 phenny flussence: Sorry, no results for 'nbsp'.
21:25 flussence .u non-breaking space
21:25 phenny flussence: Sorry, no results for 'non-breaking space'.
21:25 sbp .u no break
21:25 phenny U+00A0 NO-BREAK SPACE ( )
21:25 flussence doh
21:25 flussence rakudo: "\xa0" ~~ /\s/
21:25 p6eval rakudo 7515fc:  ( no output )
21:25 masak fox, matthias, moritz_ and util have all settled on a dynamic programming solution. they all do it differently :)
21:25 flussence rakudo: say ("\xa0" ~~ /\s/)
21:25 p6eval rakudo 7515fc: OUTPUT« ␤»
21:26 masak colomon++ does the suffix tree.
21:26 moritz_ rakudo: say (1, 1/2, 1/4 ... -> *@a { ([+] @a) > 1.95 }).perl
21:26 p6eval rakudo 7515fc: OUTPUT«(1, 1/2, 1/4, 1/8, 1/16, 1/32)␤»
21:26 flussence hm, Text::Wrap probably shouldn't break on a nonbreaking space character...
21:26 hanekomu left #perl6
21:26 masak moritz_: nice!
21:27 moritz_ rakudo: say (1, 1/2, 1/4 ... -> *@a { ([+] @a) > 1.99 }).perl
21:27 p6eval rakudo 7515fc: OUTPUT«(1, 1/2, 1/4, 1/8, 1/16, 1/32, 1/64, 1/128)␤»
21:27 moritz_ (Dave Whipp)++
21:27 masak \o/
21:27 moritz_ of course this can be made much easier
21:28 moritz_ since the the last item of the sequence is the same as 2 - the cummulative value
21:28 diakopter seen masak
21:28 aloha masak was last seen in #perl6 52 seconds ago saying "\o/".
21:28 masak diakopter: \o/
21:31 coldhead joined #perl6
21:31 masak ok, going to sleep. I expect to have more time in the weekend to look at the p5 tasks.
21:31 masak good night, #perl6.
21:32 moritz_ good night masak-san
21:32 masak left #perl6
21:32 * moritz_ looks forward to the p5 review
21:40 lopaway is now known as lopnor
21:48 colomon joined #perl6
21:53 hercynium left #perl6
21:57 pigdude left #perl6
21:57 shi_ left #perl6
21:58 * colomon survived accountant
21:59 moritz_ \o/
22:00 slavik1 colomon: p5?
22:00 slavik1 no wait
22:00 colomon slavik1: p5?
22:00 slavik1 (04:58:25 PM) ***colomon survived accountant
22:00 slavik1 gotta ask, what's that about?
22:00 colomon my annual trip to my accountant to do my business and personal taxes.
22:02 donri left #perl6
22:03 colomon as usual, have a list of things I should have brought but didn't.  but it seems my only major mistake was in handling the rakudo grant money I got.  :)
22:04 sji joined #perl6
22:04 moritz_ what about it? you need to pay more taxes on it? :-)
22:07 pigdude joined #perl6
22:07 risou_ joined #perl6
22:10 risou left #perl6
22:16 spq left #perl6
22:18 pigdude left #perl6
22:25 risou_ left #perl6
22:36 donaldh joined #perl6
22:53 colomon left #perl6
22:58 alester left #perl6
23:13 lopnor is now known as lopaway
23:22 icwiener left #perl6
23:27 colomon joined #perl6
23:33 kaare_ left #perl6
23:33 Mowah left #perl6
23:34 colomon moritz_: needed to reclassify it so I don't have to pay more taxes on it.  :)
23:34 donaldh left #perl6
23:41 whiteknight joined #perl6

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

Perl 6 | Reference Documentation | Rakudo