»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'perl6: say 3;' or rakudo:, niecza:, std:, or /msg p6eval perl6: ... | irclog: irc.perl6.org/ | UTF-8 is our friend!
Set by sorear on 4 February 2011.
00:02 cdarroch_ left 00:09 domidumont1 joined 00:12 domidumont left 00:43 yahooooo left 00:44 yahooooo joined 00:48 qiyong joined 00:53 icwiener left 01:04 Chillance left 01:07 tornadovj joined 01:09 Schwern left 01:10 Rotwang left 01:15 jevin left 01:19 leprevost joined 01:22 silent_h_ left 01:23 jaldhar joined 01:27 jevin joined 01:29 Schwern joined 01:35 Schwern left
dalek ecza: c7b4852 | sorear++ | / (3 files):
Captureless Matches generically get pseudo [0]
01:46
01:53 whiteknight left
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.
diakopter phenny: ask masak ...... do I get to determine where on the planet? ;)
phenny diakopter: I'll pass that on when masak is around.
02:00 noganex joined 02:01 woosley joined 02:03 noganex_ left 02:13 jaldhar left 02:30 rdesfo left 02:51 s1n left, lopaway is now known as lopnor 02:56 s1n joined 03:28 lopnor is now known as lopaway 03:44 molaf joined 03:45 lopaway is now known as lopnor 03:52 leprevost left
TimToady off to safari & 03:54
03:58 lopnor is now known as lopaway 04:03 jtbraun1 joined, mtk left 04:04 jtbraun left 04:11 mtk joined 04:16 woosley1 joined 04:17 woosley left 04:23 Su-Shee_ joined, satyavvd joined 04:24 vieq joined, vieq left 04:27 Su-Shee left 04:44 drbean left 04:46 satyavvd left 04:47 drbean joined 04:52 drbean left 04:56 drbean joined 05:00 satyavvd joined 05:50 kaare_ joined 06:00 satyavvd left 06:01 cjk101011 joined 06:03 jaldhar joined 06:06 satyavvd joined 06:18 cjk101011 left 06:19 cjk101011 joined 06:24 lopaway is now known as lopnor
TiMBuS hey jnthn, does blizkost let you use perl5 subs without using eval? 06:28
i see it lets you use modules 06:29
06:32 arlinius left
sorear TiMBuS: yes 06:37
I've all but taken over blizkost
(it turns out that interfacing to Perl5 without using the standard interface is horrible) 06:38
TiMBuS i see 06:39
so um how do you do it? say i wanted to use Digest::MD5's exported 'md5_hex' sub
i know i can use the oo version just fine 06:40
sorear use Digest::MD5:from<perl5>; say md5_hex(...) 06:42
TiMBuS really? 06:43
06:44 amkrankruleuen left
TiMBuS Could not find sub &md5_hex 06:44
aw 06:45
sorear I guess it wasn't actually exported 06:46
then, you'll need to use my &md5_hex = eval '\&Digest::MD5::md5_hex', :lang<perl5>; 06:47
06:47 kanishka left
TiMBuS dang 06:47
well thats near enough
sorear according to perldoc Digest::MD5, "None of these functions are exported by default." 06:48
06:49 cosimo left, amkrankruleuen joined 06:50 cosimo joined, cosimo left
TiMBuS sorear, yeah i know, i guess i was wondering how i would go about importing them 06:52
diakopter my &md5_hex = eval '\&Digest::MD5::md5_hex', :lang<perl5>; # one by one... 06:53
06:54 lopnor is now known as lopaway
woldrich timbus, my $md5 = *Digest::MD5::md5_hex; 06:54
06:57 fhelmberger joined
TiMBuS don't think that works, woldrich: Confused at line 2, near "my $md5 = " 06:57
woldrich timbus, 'Confused'? 06:58
what tells you this?
TiMBuS perl?
woldrich perl6?
TiMBuS yes
rakudo
woldrich sorry, thought I was in some perl5 channel...
diakopter np
TiMBuS lol
diakopter doesn't know whether this is the the sixth Perl 5 channel 06:59
07:03 wtw joined 07:06 knewt2 left 07:07 knewt2 joined 07:10 amkrankruleuen left 07:15 amkrankruleuen joined 07:17 drbean_ joined 07:18 drbean left
moritz_ wonders if we should rename the channel to #perl6_YES_REALLY_SIX_NOT_FIVE :-) 07:25
coldhead to make it clear it really is the sixth perl 5 channel? 07:29
07:34 barika left 07:38 fhelmberger left 07:42 mberends joined
mberends LOL 07:44
07:45 Axius joined 07:46 justatheory left, justatheory joined 07:49 amkrankruleuen left 07:50 amkrankruleuen joined 07:51 justatheory left, donri left 08:03 amkrankruleuen left, amkrankruleuen joined 08:09 _twitch left 08:15 Su-Shee_ is now known as Su-Shee 08:21 Axius left 08:24 benabik left 08:42 nymacro left 08:46 yerbestfrend joined 08:47 yerbestfrend left 08:55 barika joined 08:56 snearch joined 08:57 JimmyZ joined 09:03 f00li5h left, gimix left 09:07 lamstyle left 09:12 kanishka joined 09:20 amkrankruleuen left 09:21 amkrankruleuen joined 09:23 Mowah joined 09:46 daxim joined 09:48 JimmyZ left 09:53 amkrankruleuen left, woosley1 left 09:55 amkrankruleuen joined, satyavvd left, Mowah left 09:56 satyavvd joined 10:11 am0c joined 10:15 nadim__ joined, nadim_ left 10:17 xinming_ is now known as xinming 10:18 envi joined
moritz_ *sigh* try.rakudo.org backend seems down again :( 10:21
10:23 satyavvd left 10:30 am0c left 10:33 Mowah joined 10:37 Mowah left 10:48 Mowah joined 10:51 snearch left 11:08 JimmyZ joined 11:13 M_o_C joined 11:18 amkrankruleuen left 11:23 lamstyle joined 11:30 JimmyZ left
dalek ok: 69789ed | moritz++ | src/basics.pod:
grammar
11:30
11:32 leprevost joined 11:33 amkrankruleuen joined 11:40 woosley joined 11:42 Mowah left 11:44 amkrankruleuen left 11:45 amkrankruleuen joined 11:46 donri joined 11:50 mtk left 11:55 kanishka left 11:57 coldhead left 11:59 M_o_C left, mtk joined 12:01 orafu left, kanishka joined
flussence argh, I need to figure out why that backend keeps freezing... 12:02
12:02 orafu joined 12:09 JimmyZ joined 12:17 M_o_C joined 12:19 M_o_C left 12:21 JimmyZ left 12:22 Mowah joined 12:23 bluescreen joined 12:30 satish joined
satish hi how to work here 12:32
? 12:33
can anyone help me out?
mberends rakudo: say "Hi satish";
p6eval rakudo 58e40e: OUTPUT«Hi satish␤»
mberends rakudo: say "satish".uc 12:34
p6eval rakudo 58e40e: OUTPUT«SATISH␤»
12:34 sji joined 12:35 satish left 12:49 colomon left 12:51 leprevost_ joined 12:53 disaster123 joined 12:55 leprevost left, MayDaniel joined, MayDaniel left, MayDaniel joined 12:58 amkrankruleuen left, amkrankruleuen joined
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␤»
donri rakudo: say <atraps si siht>.join("."x 3~" ").uc~"!"x 3
p6eval rakudo 58e40e: OUTPUT«ATRAPS... SI... SIHT!!!␤»
donri rakudo: say <atraps si siht>.join("."x 3~" ").flip.uc~"!"x 3
p6eval rakudo 58e40e: OUTPUT«THIS ...IS ...SPARTA!!!␤»
takadonet morning all 13:04
moritz_ \o 13:05
TCIF!
13:06 coldhead joined
takadonet tcif? 13:07
13:09 leprevost_ left
moritz_ Thank Christ It's Friday 13:09
13:09 leprevost joined 13:12 lopaway is now known as lopnor 13:13 disaster123 left, JimmyZ joined 13:48 leprevost left 13:59 drbean_ is now known as drbean 14:02 coldhead left 14:09 ab5tract joined 14:15 Lorn_ joined 14:23 mberends left 14:29 pigdude joined 14:33 spq joined 14:39 jaldhar left
PerlJam Hello #perl6 14:41
takadonet PerlJam: yo 14:42
tadzik aloha 14:45
14:50 bluescreen left
moritz_ hello folks 14:54
please leave your comments on news.perlfoundation.org/2011/02/hag...truct.html
moritz_ trolls the channel
tadzik ENOAUTHORITY (: 14:55
moritz_ huh? 14:56
you need javascript enabled, iirc
but not "auhority"
tadzik nah, I just don't think my comment is valuable at all (: 14:57
moritz_ thinks differently 14:58
tadzik then I shall comment
moritz_ ++tadzik 14:59
donri wait, an employer can get away with forbidding employees to earn more money outside of work?
moritz_ donri: in Germany everything below 400€ per month doesn't count as employment 15:00
donri: so the employer has no say in it 15:01
donri but why do they have a say at all?
moritz_ to explain the relatively low demand
takadonet moritz_: done
... does it take long before they accept comments? 15:02
15:04 alester joined 15:05 sji left
pyrimidine moritz_: submitted a comment as well 15:05
tadzik submitted
pyrimidine I suppose Karen has to approve the comments 15:06
sjn !seen masak 15:08
gah, I always forget how to use them thar botties
seen masak
aloha masak was last seen in #perl6 17 hours 30 mins ago saying "o/".
donri seen how to use this command
aloha Sorry, I haven't seen how to use this command.
sjn seen help 15:09
aloha Sorry, I haven't seen help.
sjn aloha: thanks! ^^
15:16 cjk101011 left
moritz_ aloha: help 15:21
aloha moritz_: Ask me for help about: seen, karma (say 'help <modulename>').
moritz_ aloha: help seen
aloha moritz_: Tracks when and where people were seen. Usage: seen <nick>, hide, unhide.
moritz_ aloha: help karma
aloha moritz_: Gives karma for or against a particular thing. Usage: <thing>++ # comment, <thing>-- # comment, karma <thing>, explain <thing>.
15:21 JimmyZ left
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.
PerlJam moritz_: I think you should have 4 deliverables. spec, test, implementation, documentation. 15:22
(and get your corresponding 400 euro per deliverable) 15:23
moritz_ PerlJam: too late for that I suppose
PerlJam moritz_: it's never too late :) Surely you can request a revision? 15:24
moritz_: in any case moritz_++ :)
15:24 qiyong left
pyrimidine moritz_: agree with PerlJam, that sounds like a nice way to break it up (per deliverable) 15:25
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
moritz_ tadzik: because whitespace is metasyntactic in p6 regexes 15:26
nqp: say('a b' ~~ /a b/) 15:27
p6eval nqp: OUTPUT«␤»
moritz_ nqp: say('a b' ~~ /:s a b/)
p6eval nqp: OUTPUT«a b␤»
tadzik nqp: say("new 'Complex'" ~~ /:s new \[?'Complex'\]?/)
p6eval nqp: OUTPUT«␤»
moritz_ and ' is metasyntactic too 15:28
tadzik oh, right
moritz_ nqp: say("new 'Complex'" ~~ /:s "new" \[? "'Complex'" \]?/)
p6eval nqp: OUTPUT«new 'Complex'␤»
15:35 wtw left 15:37 MayDaniel left
donri explain donri 15:38
aloha positive: colomon++ (masak); negative: nothing; overall: 1.
donri hehe
15:39 tty234 left
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
takadonet karma takadonet 15:39
aloha takadonet has karma of 29.
takadonet seen pmichaud
aloha pmichaud was last seen in #perl6 1 days 16 hours ago joining the channel.
donri how boring, aloha is perl5 15:40
15:40 ab5tract left 15:41 fhelmberger joined 15:42 Axius joined
takadonet donri: change it to p6 then :) 15:46
pmichaud good morning, #perl6 15:48
PerlJam pmichaud: o/ 15:49
15:49 Axius_ joined
tadzik hello pmichaud 15:50
15:51 Axius left, satyavvd_ joined 15:52 woosley left 15:54 satyavvd left, satyavvd_ is now known as satyavvd
donri the ircbot stub in the book is friggin beautiful in some ways 15:54
15:55 satyavvd left, icwiener joined, satyavvd joined 15:56 Axius_ left
moritz_ good morning pmichaud 15:56
16:01 rdesfo joined 16:04 Axius joined
moritz_ www.perlmonks.org/?node_id=890175 the more I think about it, the less I like the invocant colon 16:06
16:07 mkramer left
flussence
.oO( oh, so *that's* why the example for exec() uses a block... )
16:07
16:08 dual joined 16:09 mkramer joined
daxim TRWTF is why he's still using FileHandle in 2011 16:09
flussence maybe he's programming under duress 16:10
[Coke] pmichaud: o/
moritz_ daxim: what's wrong with it?
daxim it should be deprecated more aggressively, and don't give me that wishy washy timtowtdi bullshit because it doesn't apply here 16:11
moritz_ that doesn't answer my question at all. 16:12
daxim it's a vestigial class
it's purpose is backcompat
obviously the supplicant is writing new code with it 16:13
that's wrong
flussence "NOTE: This class is now a front-end to the IO::* classes."
there's a reason...
moritz_ a frontend isn't necessarily a bad thing
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, Axius left 16:18 Psyche^ joined, Psyche^ is now known as Patterner
flussence (but on the other hand the IO::File manpage uses indirect object syntax in its examples while FileHandle doesn't...) 16:19
16:21 justatheory joined
moritz_ flussence: changed in blead 16:29
flussence yay
16:33 orafu left, risou joined 16:35 orafu joined 16:44 MayDaniel joined 16:56 lopnor is now known as lopaway 16:58 envi left 17:03 satyavvd left 17:05 daxim left 17:06 mkramer left 17:10 mkramer joined
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 17:28 sji joined
flussence hm, it gets further with <?after <[,.]>> ... now I get a different thing: 17:30
Method 'after' not found for invocant of class 'Cursor'
( code here - github.com/flussence/Text-Tabs-Wra...Jacobson.t )
moritz_ flussence: after NYI 17:31
flussence oh, ok
17:31 colomon joined
sorear fwiw, niecza supports that use of after. 17:43
17:46 cdarroch joined, cdarroch left, cdarroch joined
moritz_ niecza: say ~(a => 2) 17:48
p6eval niecza v2-105-gc7b4852: OUTPUT«Pair()<instance>␤»
moritz_ patch is on github :-)
niecza: .say for 1.list 17:49
p6eval niecza v2-105-gc7b4852: OUTPUT«1␤»
moritz_ rakudo: my @a = 1..5; say @a[ [0, 3] ]
p6eval rakudo 58e40e: OUTPUT«14␤»
moritz_ is that correct? or should it returns @a[2]? 17:50
sorear rakudo: say ~(a => 2) 17:53
p6eval rakudo 58e40e: OUTPUT«a 2␤»
sorear moritz_: it should return @a[2]; I'm pretty sure I saw it on RT first 17:54
s/first/already/
sorear starts reading moritz' application 17:55
moritz_ sorear: thanks
sorear: what do I have to do to get a commit bit to niecza? :-) 17:56
17:56 rdesfo left
sorear moritz_: ask 17:56
17:56 rdesfo joined
sorear seems I broke something ... 17:56
moritz_ sorear: can I haz a commit bit?
sorear: I think some regex newline tests regressed 17:57
sorear well I just tried to do the v3 bootstrap, and it hung :/ 17:58
17:58 Bzek joined 18:01 hercynium joined
moritz_ in fact three spectest files have regressed 18:02
18:04 lopnor is now known as lopaway 18:05 mberends joined
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
sorear NIECZA_HIGHWATER_TRACE=1 tells me that the hang occurred in the middle of trying to strip whitespace from a heredoc
which ... kinda sounds newline related 18:10
moritz_ it's a string "abc\ndef\ghi"
the test that fails is
ok(!( $str ~~ m/^bc/ ), 'SOS bc' );
the first one, that is
18:11 snearch joined
moritz_ niecza: say ?("abc" ~~ m/d/) 18:11
p6eval niecza v2-105-gc7b4852: OUTPUT«Bool::True␤»
moritz_ that might be the culprit too
18:15 Vlavv` joined
sorear niecza: say ?("abc" ~~ /d/) 18:17
p6eval niecza v2-105-gc7b4852: OUTPUT«Bool::False␤»
sorear niecza: say ?("abc\ndef\nghi" ~~ /^bc/) 18:18
18:18 Vlavv_ left
p6eval niecza v2-105-gc7b4852: OUTPUT«Bool::False␤» 18:18
sorear niecza: say q:to[gimel] ;␤ aleph␤ bet␤gimel␤ 18:21
p6eval niecza v2-105-gc7b4852: OUTPUT«(timeout)»
sorear niecza: say q:to[gimel] ;␤aleph␤bet␤gimel␤
p6eval niecza v2-105-gc7b4852: OUTPUT«aleph␤bet␤␤»
sorear niecza: say q:to[gimel] ;␤ aleph␤gimel␤ 18:22
p6eval niecza v2-105-gc7b4852: OUTPUT«(timeout)»
sorear the problem is on NieczaActions line 931 18:23
18:24 jtbraun1 left 18:25 impious joined, impious left, MayDaniel left
mberends is can haz a cheezburger o/ 18:27
18:28 MayDaniel joined, masak joined, fhelmberger left
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.
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
masak: 01:59Z <diakopter> ask masak < masak> literally. I will house you and feed you if you promise to work on this :)
masak: 01:59Z <diakopter> ask masak ...... do I get to determine where on the planet? ;)
masak diakopter: no, the context was "be my guest". :P
colomon not weekend! :(
mberends the weekend has begun, and for me it is Perl 6 Hackathon from now until 8th March :-)
masak mberends: wow!
colomon mberends++
colomon has to have his yearly meeting with his accountant in 90 minutes. 18:30
18:31 MayDaniel left 18:32 jtbraun joined
masak colomon: have the appropriate amount of fun. 18:33
colomon heh
18:34 MayDaniel joined
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:35
niecza: our Int $tabstop = 8; 18:36
p6eval niecza v2-105-gc7b4852: OUTPUT«===SORRY!===␤␤In our declaration, typename 'Int' must be predeclared (or marked as declarative with :: prefix) at /tmp/Xc5uR4cdJz line 1:␤------> our Int⏏ $tabstop = 8;␤␤Malformed our at /tmp/Xc5uR4cdJz line 1:␤------> our
..⏏Int $t…
sorear if you aren't testing type constraints, don't use them 18:37
flussence there's more unsupported thing errors, but a few of those things are only workarounds for rakudo :) 18:38
18:40 rdesfo left
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 18:51 MayDaniel left 18:57 Chillance joined
dalek ecza: 857b7a1 | sorear++ | src/niecza:
Fix hang on heredocuments with flush left terminators and indented contents
19:06
19:08 hanekomu joined
dalek ecza: dbcf870 | sorear++ | / (2 files):
Merge remote branch 'moritz/small-features-spectets'
19:08
sorear niecza can now build niecza again but it's not making a working verison 19:09
slavik1 sorear: at least it can build itself :) 19:20
19:25 jtbraun left 19:26 dwhipp left 19:29 jferrero joined 19:37 mtk left, plobsing left 19:38 plobsing joined 19:40 colomon left
masak digs into the p5 solutions 19:43
moritz_ \o/
masak next year, I'm going to call the tasks 't1' to 't5' :)
moritz_ does that mean we'll finally have a winner?
masak moritz_: I might to the finally-a-winner post separately.
moritz_ masak: I kinda expected that 19:44
masak but I expect to do that one fairly soon after p5.
moritz_ masak: I associated p4 with "perforce" (the version control system)
masak :)
sorear reminds me of the v2 story 19:45
*V2
mberends masak: will the t be for task, test, tease or torture?
19:46 mtk joined
moritz_ :-) 19:46
polymorphic abbreviate, it can mean all of that at once
mberends so it has eigenmeaning
masak mberends: the 't' will officially stand for 't' :) 19:49
19:49 rhr left
masak in unrelated news, I've been using Moose in the past few days. a very pleasant experience. 19:49
stevan++ 19:50
dalek ast: 9100295 | (Dave Whipp)++ | S03-sequence/limit-arity-2-or-more.t:
tests of sequence operator with limit function having arity > 1

Signed-off-by: Moritz Lenz [email@hidden.address]
masak moritz_++
19:51 MayDaniel joined, MayDaniel left, MayDaniel joined, rhr joined
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
(once they are properly implemented, I guess) 19:53
flussence that's an interesting idea...
dalek kudo: 7515fc2 | (Dave Whipp)++ | src/core/operators.pm:
add error for use of Multi as sequence limit

Signed-off-by: Moritz Lenz [email@hidden.address]
19:55
kudo: 1170a59 | (Dave Whipp)++ | src/core/operators.pm:
Sequence operator supports limit functions with arity > 1

Signed-off-by: Moritz Lenz [email@hidden.address]
masak I think backslashes are a decent sacrifice for introducting whitespace in the middle of a term.
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
masak I don't use it a lot myself, but I also wouldn't have a problem using it. 19:57
moritz_ if your map -> grep -> map -> join whatever statements become too long, they get hard to read 19:58
masak aye.
series of map -> grep -> map -> join are things I tend to want to vertically align to make the repetition stand out.
moritz_ that often helps, aye 19:59
masak oh, and this week's Perl 5/6 braino: trying to use 'for' to loop over a diamond operator in Perl 5 :) 20:00
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?
masak donri: TTIAR :) 20:02
flussence Definitely more readable even with the backslashes - old: github.com/flussence/Text-Tabs-Wrap...ap.pm#L123 new: github.com/flussence/Text-Tabs-Wra...ap.pm#L117
masak donri: it keeps coming back to that.
donri ?
two terms etc ok
masak yes.
donri but ; should disambiguate just fine?
moritz_ masak: it kinda works in p5. It just reads all the file into memory
donri I guess it reads as $_.join
masak std: my @a; @a.map({ $_ }) .grep({0}) 20:03
p6eval std 4608239: OUTPUT«===SORRY!===␤Method call found where infix expected (omit whitespace?) at /tmp/jVa3omrON3 line 1:␤------> my @a; @a.map({ $_ }) ⏏.grep({0})␤ expecting infix or meta-infix␤Parse failed␤FAILED 00:01 122m␤»
masak moritz_: troo
donri couldn't linebreak be specialcased there?
flussence special cases are bad.
masak moritz_: I stopped myself before running it. I just found it funny.
donri rakudo: <a b c>. map: *.uc
p6eval rakudo 58e40e: OUTPUT«===SORRY!===␤Confused at line 22, near "<a b c>. m"␤»
masak donri: I *definitely* wouldn't want a special case involving line breaks :)
donri: that way lies madness, and JavaScript. 20:04
donri but we have mandatory ;
ok well i basically agree anyway
masak I didn't say it'd be as bad as JavaScript :)
20:06 rhr left
masak ooh! colomon is using nested classes in his p5 solution! 20:10
we talked about nested classes here on the channel just the other day.
20:11 shi_ joined 20:13 rhr joined, sji left 20:16 kanishka left 20:18 rhr left 20:19 bluescreen left 20:20 rhr joined
masak suggested topic: when to write C< $a .. $b - 1 > and when to write C< $a ..^ $b > ? 20:26
:)
oh, and it's not a trick question. I'm assuming both $a and $b are integer indexes. 20:27
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}␤»
masak that's just... so cool.
20:31 ymasory_ joined
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
masak anyone remember if this one was ever submitted? 20:32
it was. rt.perl.org/rt3/Ticket/Display.html?id=76986 20:33
bbkr++
rakudo: say (my %).push( "abacadabra".comb.kv ).perl
p6eval rakudo 7515fc: OUTPUT«{"0" => "a", "1" => "b", "2" => "a", "3" => "c", "4" => "a", "5" => "d", "6" => "a", "7" => "b", "8" => "r", "9" => "a"}␤»
tadzik std: my $ = 'a'; my $ = 4;
p6eval std 4608239: OUTPUT«ok 00:01 121m␤»
tadzik niecza: my $ = 'a'; my $ = 4; say "alive" 20:34
masak rakudo: say (my %).push( "abacadabra".comb.kv.reverse ).perl
p6eval niecza v2-111-gdbcf870: OUTPUT«===SORRY!===␤␤Non-simple variables NYI at /tmp/1GLMZYmUdg line 1:␤------> my $⏏ = 'a'; my $ = 4; say "alive"␤␤Non-simple variables NYI at /tmp/1GLMZYmUdg line 1:␤------> my $ = 'a'; my $⏏ = 4; say
.."alive"␤␤Unhandled exception:…
rakudo 7515fc: OUTPUT«{"a" => [9, 6, 4, 2, 0], "r" => 8, "b" => [7, 1], "d" => 5, "c" => 3}␤»
masak tadzik: submit a niecza TODO! :)
20:35 rhr joined 20:54 aindilis left 20:55 aindilis joined
flussence I get the feeling this return is supposed to be a recursive call instead... any second opinion? github.com/flussence/Text-Tabs-Wra...rap.pm#L85 20:56
(FWIW, the perl5 code was like this already, I think a lot of this is missing test coverage...) 20:58
masak went into #catalyst and asked what the point of MVC was ;) 20:59
got good responses, actually.
flussence: sure looks that way. 21:00
21:00 araujo left
masak flussence: considering the other 'return' is a Str, and that the three items in that list match the signature. 21:00
21:01 araujo joined
masak rakudo: say 10 | 20 - 5 21:03
p6eval rakudo 7515fc: OUTPUT«any(10, 15)␤»
masak right. infix:<-> binds tighter than infix:<|>. 21:04
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.
I was talking about for loop ranges.
I actually hesitate between the two sometimes :) 21:09
and even more between $a ..^ $b - 1 and $a .. $b - 2
moritz_ there it's easy for me: $b - 2 wins 21:10
because ^ $b - 1 distributes the offset into two separate constructs 21:11
which makes the intent less clear
masak to me it's not that clear-cut.
sometimes the surrounding code uses ..^ $b
moritz_ to me ^ means "an epsilon less" 21:12
which doesn't make much sense for integers
so I tend not to use it with integers, except when golfing
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
moritz_ rakudo: say 1.8 ~~ ^2 21:13
p6eval rakudo 7515fc: OUTPUT«Bool::True␤»
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"
moritz_: which is why I tend to prefer the '- 1' case when it's not too clear why.
I don't think in terms of epsilons.
21:15 ymasory_ left
sbp rakudo: say 1.5 ~~ ^2 21:15
p6eval rakudo 7515fc: OUTPUT«Bool::True␤»
sbp rakudo: say 1.1 ~~ ^2
p6eval rakudo 7515fc: OUTPUT«Bool::True␤»
sbp rakudo: say 0.9 ~~ ^2
flussence good idea, bad idea? gist.github.com/844514
p6eval rakudo 7515fc: OUTPUT«Bool::True␤»
sbp rakudo: say -i ~~ ^2
p6eval rakudo 7515fc: OUTPUT«Bool::False␤»
moritz_ rakudo: say 2 ~~ ^2
p6eval rakudo 7515fc: OUTPUT«Bool::False␤»
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?
masak flussence: ifs-with-assignment-to-the-same-variable, that's a clear ternary refactor to me.
sbp it seems only related to the behaviour of the above
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.
rakudo: say (2.5 .. 7.5).list.perl
p6eval rakudo 7515fc: OUTPUT«(5/2, 7/2, 9/2, 11/2, 13/2, 15/2)␤»
sbp so again, why avoid using it because of the definition...
if the glove fits, you must compile 21:18
flussence hm, the perl5 was originally a ternary... not as nicely formatted though :)
moritz_ sbp: maybe it's irrational
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
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
masak all I know so far is that I will need to look at them again :) 21:22
in more detail.
moritz_ I'm merely saying that *I* think of ^ in terms of epsilons, because of the smart-matching behavior
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
flussence .u nbsp 21:25
phenny flussence: Sorry, no results for 'nbsp'.
flussence .u non-breaking space
phenny flussence: Sorry, no results for 'non-breaking space'.
sbp .u no break
phenny U+00A0 NO-BREAK SPACE ( )
flussence doh
rakudo: "\xa0" ~~ /\s/
p6eval rakudo 7515fc: ( no output )
masak fox, matthias, moritz_ and util have all settled on a dynamic programming solution. they all do it differently :)
flussence rakudo: say ("\xa0" ~~ /\s/)
p6eval rakudo 7515fc: OUTPUT« ␤»
masak colomon++ does the suffix tree. 21:26
moritz_ rakudo: say (1, 1/2, 1/4 ... -> *@a { ([+] @a) > 1.95 }).perl
p6eval rakudo 7515fc: OUTPUT«(1, 1/2, 1/4, 1/8, 1/16, 1/32)␤»
flussence hm, Text::Wrap probably shouldn't break on a nonbreaking space character...
21:26 hanekomu left
masak moritz_: nice! 21:26
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)␤»
moritz_ (Dave Whipp)++
masak \o/
moritz_ of course this can be made much easier
since the the last item of the sequence is the same as 2 - the cummulative value 21:28
diakopter seen masak
aloha masak was last seen in #perl6 52 seconds ago saying "\o/".
masak diakopter: \o/
21:31 coldhead joined
masak ok, going to sleep. I expect to have more time in the weekend to look at the p5 tasks. 21:31
good night, #perl6.
moritz_ good night masak-san 21:32
21:32 masak left
moritz_ looks forward to the p5 review 21:32
21:40 lopaway is now known as lopnor 21:48 colomon joined 21:53 hercynium left 21:57 pigdude left, shi_ left
colomon survived accountant 21:58
moritz_ \o/ 21:59
slavik1 colomon: p5? 22:00
no wait
colomon slavik1: p5?
slavik1 (04:58:25 PM) ***colomon survived accountant
gotta ask, what's that about?
colomon my annual trip to my accountant to do my business and personal taxes.
22:02 donri left
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:03
22:04 sji joined
moritz_ what about it? you need to pay more taxes on it? :-) 22:04
22:07 pigdude joined, risou_ joined 22:10 risou left 22:16 spq left 22:18 pigdude left 22:25 risou_ left 22:36 donaldh joined 22:53 colomon left 22:58 alester left 23:13 lopnor is now known as lopaway 23:22 icwiener left 23:27 colomon joined 23:33 kaare_ left, Mowah left
colomon moritz_: needed to reclassify it so I don't have to pay more taxes on it. :) 23:34
23:34 donaldh left 23:41 whiteknight joined