Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2013-05-13

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:03 odoacre_ joined #perl6
00:10 Swarley__ joined #perl6
00:11 berekuk joined #perl6
00:24 lustlife joined #perl6
00:45 colomon sorear: ping?
00:49 frd|afk joined #perl6
00:50 dalek niecza: ba63d9a | (Solomon Foster)++ | FETCH_URL:
00:50 dalek niecza: Update to latest release.
00:50 dalek niecza: review: https://github.com/sorear/niecza/commit/ba63d9aaba
00:50 * colomon has no idea how cloud.github.com works.
01:11 woosley1 left #perl6
01:11 woosley1 joined #perl6
01:14 anuby joined #perl6
01:16 rjbs colomon: It uses the cloud.
01:25 FROGGS joined #perl6
01:47 btyler joined #perl6
01:49 adu joined #perl6
01:49 sorear colomon: hi
01:53 grondilu left #perl6
01:54 adu hi
02:03 colomon sorear: how do I upload stuff to cloud.github.com/sorear/niecza?  it's stupid, but it's got me completely stumped.  I uploaded the "new release" of niecza to my webpage in the meantime, just to get it working.
02:07 sorear colomon: You can't, github discontinued the file upload feature.
02:07 colomon sorear: glad to know I wasn't just looking in the wrong place for 30 minutes.
02:08 colomon I probably should add an MD5 tag or something to make sure no one hacks the niecza-24.zip file at harmonyware.com.
02:10 adu so sad
02:14 colomon sorear: another question: hints for where/how Nil disappears from list comprehensions?  The only thing that jumps out at me is lib/CodeGen.cs line 4375, but even that's more of a "well, maybe that could be it, but I don't see how".
02:18 cibs joined #perl6
02:19 sorear Nil disappears from list comprehensions because it's flagged as iterable and iterates as nothing.
02:20 colomon what flags it as iterable?
02:21 colomon is it that bit in CodeGen?  ru.setting.Nil = Kernel.NewRWListVar(nst.typeObj);
02:22 * colomon guesses no, because commenting it out did not changes Nil's behavior in this respect
02:23 sorear actually, that is part of what does it
02:23 frdmn joined #perl6
02:25 bonsaikitten colomon: just put a tag in git, then you can get a mostly working zip from github automatically
02:26 cognominal__ joined #perl6
02:28 sorear bonsaikitten: that would require making a separate branch to hold the contents of the binary packages
02:30 bonsaikitten sorear: oh right. I rarely think about precompiled stuff :)
02:37 colomon sorear: is it something to do with NilP?
02:37 sorear yes
02:38 sorear NilP is iterable, all other type objects aren't
02:38 sorear this is handled in multiple places
02:44 sftp joined #perl6
02:45 daniel-s_ joined #perl6
02:47 cognominal__ joined #perl6
02:47 cibs joined #perl6
02:47 btyler joined #perl6
02:47 lue joined #perl6
02:47 Khisanth joined #perl6
02:47 kurahaupo joined #perl6
02:50 census joined #perl6
02:52 census joined #perl6
02:52 cognominal__ joined #perl6
02:52 cibs joined #perl6
02:52 btyler joined #perl6
02:52 lue joined #perl6
02:52 Khisanth joined #perl6
02:52 kurahaupo joined #perl6
03:06 wamiks joined #perl6
03:13 wamiks joined #perl6
03:15 colomon sorear: I haven't been able to get this working yet, but at least I know where to look now.  sorear++
03:21 fgomez joined #perl6
03:23 colomon afk # bedtime
03:28 preflex_ joined #perl6
03:31 leprevost joined #perl6
03:38 thou joined #perl6
04:24 Psyche^ joined #perl6
05:04 thou joined #perl6
05:43 dmol joined #perl6
05:52 kaleem joined #perl6
06:11 frdmn joined #perl6
06:15 dayangkun joined #perl6
06:34 SamuraiJack joined #perl6
06:50 FROGGS joined #perl6
07:16 domidumont joined #perl6
07:17 domidumont joined #perl6
07:21 sqirrel joined #perl6
07:33 salv0 joined #perl6
07:37 fhelmberger joined #perl6
07:44 daxim joined #perl6
07:47 fhelmberger joined #perl6
07:50 domidumont joined #perl6
07:54 kresike joined #perl6
07:55 kresike hello all you happy perl6 people
07:55 kivutar joined #perl6
07:56 sergot o/
07:56 diakopter _-_
07:56 labster hello
07:58 sorear o/o/
07:59 dagurval \o/
08:00 berekuk joined #perl6
08:01 FROGGS \o
08:03 xinming joined #perl6
08:06 dagurval r: my @a <== gather for 1..Inf -> $i { print "."; take $i; }
08:06 camelia rakudo 2a04f2: OUTPUT«(timeout)..............................​..............................................​..............................................​..............................................​..............................................​..........................................…
08:06 dagurval Why isn't @a lazy?
08:07 sorear because it's the last statement in a block
08:07 sorear try adding a ;1 after it
08:07 dagurval r: my @a <== gather for 1..10 -> $i { print "."; take $i; }; 1
08:07 camelia rakudo 2a04f2: OUTPUT«..........»
08:07 sorear erm
08:08 sorear r: my @b = (my @a <== gather for 1..10 -> $i { print "."; take $i })
08:08 camelia rakudo 2a04f2: OUTPUT«..........»
08:08 sorear r: my @b := (my @a <== gather for 1..10 -> $i { print "."; take $i })
08:08 sorear r: my @b = (my @a <== gather for 1..Inf -> $i { print "."; take $i })
08:08 camelia rakudo 2a04f2: OUTPUT«(timeout)..........»
08:08 camelia rakudo 2a04f2: OUTPUT«(timeout)..............................​..............................................​..............................................​..............................................​..............................................​..........................................…
08:09 tadzik r: my $a <== gather for 1..Inf -> $i { print "."; take $i; }
08:09 camelia rakudo 2a04f2: OUTPUT«(timeout)..............................​..............................................​..............................................​..............................................​..............................................​..........................................…
08:10 Juerd That's not annoying at all :)
08:13 dagurval so it's a bug, or are we doing it wrong?
08:17 dduncan joined #perl6
08:17 dduncan left #perl6
08:17 sorear i suspect bug
08:18 dagurval r: my @a <== 1..Inf;
08:18 camelia rakudo 2a04f2: OUTPUT«(timeout)»
08:19 dagurval I'll add a test in roast for it :)
08:21 bbkr_ joined #perl6
08:21 moritz suspect that feeds just aren't lazy yes
08:22 [Coke] joined #perl6
08:23 bruges joined #perl6
08:23 ivan``_ joined #perl6
08:23 dalek perl6-bench: 9a14e25 | (Geoffrey Broadwell)++ | timeall:
08:23 dalek perl6-bench: Factor out some common code in time_command() in timeall
08:23 dalek perl6-bench: review: https://github.com/japhb/pe​rl6-bench/commit/9a14e25ff8
08:23 dalek perl6-bench: 52b7474 | (Geoffrey Broadwell)++ | timeall:
08:23 dalek perl6-bench: Significant refactoring of timeall to support time-scaled tests
08:23 dalek perl6-bench: review: https://github.com/japhb/pe​rl6-bench/commit/52b7474a33
08:24 scottp_ joined #perl6
08:24 bakedb_ joined #perl6
08:24 pmichaud_ joined #perl6
08:24 sergot_ joined #perl6
08:24 jferrero joined #perl6
08:24 diakopte1 joined #perl6
08:24 mls_ joined #perl6
08:24 rhr joined #perl6
08:24 Util joined #perl6
08:25 jlaire joined #perl6
08:25 xinming joined #perl6
08:26 araujo_ joined #perl6
08:26 drbean_ joined #perl6
08:26 huf joined #perl6
08:27 smash_ joined #perl6
08:27 lestaway joined #perl6
08:27 vaelxon joined #perl6
08:28 BinGOs_ joined #perl6
08:29 berekuk joined #perl6
08:29 mathw_ o/
08:29 FROGGS \o
08:29 labster o/
08:30 mathw \o/
08:30 tadzik \o
08:30 FROGGS *g*
08:30 labster internet weather sure has been stormy lately.  must be climate change.
08:30 tadzik there's a storm coming, Mr Wayne
08:31 FROGGS if the climat is changing lizmat will tell us surely
08:31 mathw I'll see your storm and raise you a winter
08:31 tadzik I see your winter and raise you Dragonstorm! \o/
08:31 hugme joined #perl6
08:31 sorear nuclear winter, asteroid winter, AI winter, or regular old winter?
08:32 tadzik http://gatherer.wizards.com/Handlers/Ima​ge.ashx?multiverseid=46426&amp;type=card of course
08:32 awwaiid joined #perl6
08:32 hypolin joined #perl6
08:32 TimToady joined #perl6
08:32 Yappo_________ joined #perl6
08:32 mattp___ joined #perl6
08:34 daxim 8r?  …… overpriced
08:35 tadzik oh, it's not really
08:35 lizmat The climate is changing
08:36 dakkar joined #perl6
08:36 tadzik few dark rituals and seething songs and you get your 8r and more than enough spells on stack to put 4 dragons with haste into play
08:36 tadzik instawin :)
08:36 lizmat who am I to argue with FROGGS  :-)
08:36 FROGGS *g*
08:36 dalek v5: dceb649 | (Tobias Leich)++ | t/test.pl:
08:36 dalek v5: better signatures for cmp_ok
08:36 dalek v5: review: https://github.com/rakudo-p5/v5/commit/dceb649898
08:36 dalek v5: 415b381 | (Tobias Leich)++ | t/test_summary:
08:36 dalek v5: parse "print 1..10" too to get the plan
08:36 dalek v5: review: https://github.com/rakudo-p5/v5/commit/415b381396
08:36 dalek v5: ec9e394 | (Tobias Leich)++ | STATUS.md:
08:36 dalek v5: update after change of parsing plan and cmp_ok
08:36 dalek v5: review: https://github.com/rakudo-p5/v5/commit/ec9e394981
08:36 * labster casts counterspell
08:37 tadzik oh noes
08:37 awwaiid joined #perl6
08:37 hypolin joined #perl6
08:37 TimToady joined #perl6
08:37 Yappo_________ joined #perl6
08:37 mattp___ joined #perl6
08:37 sorear does counterspell counter the card, or one spell?
08:37 BinGOs joined #perl6
08:37 FROGGS like $spell++ ?
08:37 sorear and does the mana cost count sepately for each copy?
08:37 tadzik it counters the entire dragonstorm
08:38 * sorear has been away from m:tg for ~10y
08:38 tadzik I stopped playing around tenth edition, ate up too much monetary resources
08:38 tadzik and I was not even a student back then
08:38 tadzik and no, you pay 8r just once
08:38 labster lol, I stopped around 4th edition.
08:39 tadzik mtg is weird recently
08:39 tadzik no mana burn for one thing
08:39 tadzik and those Planeswalker cards
08:39 sorear I stopped around... I wasn't paying attention to the edition numbers :[
08:39 tadzik I've been to a couple tournaments, it was about as fun as it was expensiev
08:40 dalek roast: 0bb5a4d | (Dagur Valberg Johannsson)++ | S03-feeds/basic.t:
08:40 dalek roast: 2 lazy tests for <== operator
08:40 dalek roast: review: https://github.com/perl6/roast/commit/0bb5a4d6f9
08:40 * mst can handle collecting RPG supplements but not card games
08:40 mst doesn't quite tweak the "ooh! shiny!" for me
08:40 Timbus i thought cards with storm were copied and placed on the stack when played. therefore you would need to play a counter per copy
08:41 tadzik hmm
08:41 Timbus i had a deck that used storm and i think thats how it went
08:41 labster It led me to people who played D&D and other tabletop RPGs, and then I realized I could have a lot more fun doing group storytelling.
08:41 Timbus http://gatherer.wizards.com/pages/ca​rd/details.aspx?name=Mind's%20Desire i used this
08:42 Timbus and you had better believe it won
08:42 FROGGS p: my @a <== 0..Inf
08:42 camelia pugs: OUTPUT«*** Unsafe function '=' called under safe mode␤    at /tmp/XUgGNSdcel line 1, column 1 - line 2, column 1␤»
08:42 FROGGS -.-
08:42 tadzik oh wow, that's a killer
08:43 labster assignment considered unsafe
08:43 tadzik A copy of a spell can be countered, just like any other spell, but each copy has to be countered individually. Countering a storm spell won't counter the copies of it.
08:43 tadzik right
08:43 Timbus i played it with a deck that used twiddle (spell: untap target, cost 1 blue) and a lotus artifact (tap to give 3 mana, pick your colour)
08:43 Timbus and yeah. i won.
08:44 labster but countering the spell that creates the storm... you just have to get far enough up the call stack, correct?
08:44 * lizmat wonders if somebody messed with the channel selector
08:44 Timbus lol
08:44 tadzik hahaha
08:44 diakopte1 bzzzzzzzzzt
08:44 diakopte1 bzzzzzzzzzzzzzzzzzt
08:44 diakopte1 bzzzt
08:44 tadzik Timbus: what lotus artifact are you talking about?
08:45 tadzik that sounds like black lotus, but that one is sacficed. And also priced at ~$3000 iirc :)
08:45 * FROGGS changes topic to: we're playing card games, not doing peril anymore...
08:45 Timbus gilded lotus i think
08:45 Timbus noooo not that
08:45 Timbus D:
08:45 tadzik oh, this one :)
08:47 dalek roast: 5bfc7fd | dagurval++ | S03-feeds/basic.t:
08:47 dalek roast: moved nieza fudge
08:47 dalek roast: review: https://github.com/perl6/roast/commit/5bfc7fd3fb
08:49 mst FROGGS: quick, put on your peril sensitive sunglasses
08:51 sorear tadzik: any luck with CBP?
08:51 tadzik sorear: I'm having my visa appointment on next monday
08:52 tadzik someone will stare at me and decide if I'm worthy
08:54 * lizmat wonders whether a prolific online presence would be helpful for such a staring contest or not
08:55 * lizmat also wonders who else US government officials have been staring in the past at and to what purpose
08:56 * lizmat is bored doing another spectest
08:56 tadzik oh, you know, Poles are all thieves who fly to the US and stay there forever not paying taxes
08:56 arnsholt Yeah, I'm glad I could do the ESTA thing
08:57 sorear I thought they were more afraid tadzik would hijack a plane and crash it into the WTC
08:57 tadzik there was an incident when one of our former presidents, a nobel piece prize winner refused to have his fingerprints taken when flying to the US
08:57 arnsholt One of my colleagues has some terrible stories of her time with a Serbian passport, getting through passport control here in Norway
08:58 bonsaikitten arnsholt: I've heard of horrible things from people with german passportds
08:58 bonsaikitten it's quite random and confusing, but apparently germans are expected to have white skin, OR ELSE
08:58 arnsholt sorear: Oh, but there's a question for that in the forms, so that's unpossible once they've issued a visa =p
08:58 tadzik yeah
08:58 lizmat there was a time when I was flying regularly from Amsterdam to Chicago, that I was the only one on the flight having to open my suitcase for inspection  :-)
08:59 tadzik there's actually a question like this: "if you were a political leader, did you order any military actions which violated freedom of religion?"
08:59 tadzik or something like this
08:59 arnsholt Some of those questions are a bit hilarious. "Are you a terrorist? Are you a drug smuggler? Were you a nazi between 1936 and 1945?"
08:59 tadzik yeah
08:59 * lizmat is puzzled by the timeframe reference
08:59 tadzik "Do you have practical experience with chemical weaponry?"
09:00 hoelzro I think on the citizenship exam (or is it the entrance document?) that asks if you're a drukkard
09:00 nwc10 I believe that it's like money laundering regulations. It's easier to prosecute someone for lying on the immigration form, than the actual actions in question.
09:00 hoelzro *drunkard
09:00 lizmat like there haven't been any nazis post 1945
09:00 sorear would Cardinal Ratzinger have been allowed in?
09:00 arnsholt lizmat: It's (slightly) more subtle than that
09:00 hoelzro I find the Nazi question interesting, considering there's a Nazi party in the US
09:00 hoelzro they're small, but they're there
09:00 arnsholt Something about any association with German war crimes during WWII, IIRC
09:00 hoelzro that would make sense
09:01 * sorear would like the countries of the west to shut up and get serious about that "free movement of people" thing...
09:01 arnsholt sorear: Indeed
09:02 jnthn +100000
09:02 arnsholt Unfortunately people are all for it when all they see is "no passport control when on holidays", but less than cheerful when they realize -other- people can get into their country as well
09:02 jnthn .oO( wouldn't mind if some countries to the East then also relaxed their visa needs... :/ )
09:02 tadzik they probably don't want the british to come here with ships and blackpowder rifles and take away their homeland, right? Hah! Like that's gonna ever happen!
09:02 tadzik oh, wait
09:03 arnsholt (Norway is currently in the middle of what is turning into an annual "OHNOES TEH GYPSIES" scarefest)
09:03 nwc10 yes, exactly. It will be the new aircraft carriers, but black powder rifles because the planes aren't ready yet.
09:04 * hoelzro imagines a fighter jet armed with muzzle loaded blackpowder rifles
09:04 hoelzro two shots, back to base.
09:04 tadzik 3 shots per minute
09:04 tadzik if you reload fast
09:04 tadzik and it's dry
09:05 sorear arnsholt: i've never difficulty dealing with passport control, because unlike the US Luxembourg has sensible immigration people
09:05 hoelzro the second to last time I had to go through US customs, I almost missed my connecting flight
09:05 hoelzro and I'm even a citizen
09:08 * sorear lives a stone's throw from the us/mx border and thinks it should look more like the lu/de border
09:08 sorear (large trebuchet or light-gas gun may be required)
09:09 bonsaikitten sorear: same amount of illegal things move over both borders already ;)
09:17 tadzik well, it's sad that people traveling is "illegal things"
09:21 Gothmog_ joined #perl6
09:23 arnsholt sorear: Yeah, I can imagine =)
09:24 sorear dumb americans generalize from "two russian citizens with bombs" to "all foreigners have bombs"
09:25 arnsholt (In other news, Haskell is fun)
09:25 sorear indeed.
09:25 sorear let's talk about that instead.
09:26 arnsholt Agreed! =D
09:26 sorear haskeelllll
09:26 arnsholt I've just a few work-related milestones, so my next project is currently being doodled in Haskell
09:27 arnsholt It's a bit mind-bending to work in, but pretty cool
09:28 * moritz uses panda2 for the first
09:29 * arnsholt thinks moritz accidentally a word
09:31 sorear time, I guess
09:33 moritz time, yes
09:38 arnsholt Yeah, I figured =)
09:38 arnsholt Hmm. I've managed to read in and represent my data (it seems). Now for the trickier, less monad-y, bit
09:39 arnsholt Or actually, I'm not representing my data. That's the hard bit
09:51 census joined #perl6
09:51 kivutar_ joined #perl6
09:58 sqirrel joined #perl6
10:32 crab2313 joined #perl6
10:37 census joined #perl6
10:39 ilbot6 joined #perl6
10:45 rindolf joined #perl6
10:47 * lizmat can't help liking http://www.youtube.com/watch?v=KaOC9danxNo very much
10:48 ilbot6 joined #perl6
10:48 * moritz wonders how stable ilbot6 on postgresql will be
10:52 lizmat wrt to optimising away +@ in .nqp files: I'm not seeing any significant difference in CPU usage of the spectest
10:52 lizmat *and* since I broke 2 tests with this batch of changes, I'm not going to pursue this any further at the present time
10:53 lizmat unless someone convinces me it is worthwhile anyway, so I should check out the breakage of these two tests
10:54 hoelzro when did Rakudo start passing S12-methods/qualified.t?
10:56 moritz it was added to t/spectest.data in December last year
10:56 moritz and the test you're interested in was unfudged in Feb
10:57 hoelzro wow!
10:57 hoelzro I guess that's not *too* old =)
10:57 hoelzro I can continue work on my XMPP bot!
10:57 hoelzro \o/
11:03 xinming joined #perl6
11:07 shlomif joined #perl6
11:09 preflex_ joined #perl6
11:09 sqirrel_ joined #perl6
11:09 x2 joined #perl6
11:10 fgomez_ joined #perl6
11:11 fhelmberger_ joined #perl6
11:13 kaleem joined #perl6
11:17 xinming joined #perl6
11:21 lizmat bad weather again :-(
11:25 bruges_ joined #perl6
11:25 Gothmog_ joined #perl6
11:25 BinGOs joined #perl6
11:25 lestrrat joined #perl6
11:25 araujo_ joined #perl6
11:25 bruges joined #perl6
11:25 salv0 joined #perl6
11:25 FROGGS joined #perl6
11:25 cognominal__ joined #perl6
11:25 cibs joined #perl6
11:25 lue joined #perl6
11:25 Khisanth joined #perl6
11:39 kaleem joined #perl6
12:01 lizmat r: my $a; $a{Mu}=1
12:01 camelia rakudo 2a04f2: OUTPUT«Cannot call 'postcircumfix:<{ }>'; none of these signatures match:␤:(: Mu *%_)␤:(: :p(:$p)!, Mu *%_)␤:(: :k(:$k)!, Mu *%_)␤:(: :kv(:$kv)!, Mu *%_)␤:(: :v(:$v)!, Mu *%_)␤:(: :BIND(:$BIND)!, Mu *%_)␤:(\SELF: $key, Mu *%_)␤:(\SELF: $key, Mu \$BIND, Mu *%_)␤:(\SELF: $k…
12:01 lizmat n: my $a; $a{Mu}=1
12:01 camelia niecza v24-50-gba63d9a: OUTPUT«Use of uninitialized value in string context␤  at /home/p6eval/niecza/lib/CORE.setting line 1355 (warn @ 5) ␤  at /home/p6eval/niecza/lib/CORE.setting line 266 (Mu.Str @ 15) ␤  at <unknown> line 0 (ExitRunloop @ 0) ␤  at /tmp/1MqAHIY22W line 1 (mainline @ …
12:02 lizmat n: my $a; $a{Mu}=1; say $a{''}
12:02 camelia niecza v24-50-gba63d9a: OUTPUT«Use of uninitialized value in string context␤  at /home/p6eval/niecza/lib/CORE.setting line 1355 (warn @ 5) ␤  at /home/p6eval/niecza/lib/CORE.setting line 266 (Mu.Str @ 15) ␤  at <unknown> line 0 (ExitRunloop @ 0) ␤  at /tmp/JKeMhPmawD line 1 (mainline @ …
12:02 sqirrel joined #perl6
12:04 lizmat rn: class Mu {}; my $a; $a<Mu>=1
12:04 camelia rakudo 2a04f2: OUTPUT«Nominal type check failed for parameter '$expected'; expected Any but got Mu instead␤  in sub infix:<=> at src/gen/CORE.setting:13414␤  in block  at src/gen/CORE.setting:1726␤  in block  at /tmp/uEs0gat_pQ:1␤␤»
12:04 camelia ..niecza v24-50-gba63d9a:  ( no output )
12:05 lizmat rn: class Mu {}; my $a; $a<Mu>=1; say $a<Mu>
12:05 camelia niecza v24-50-gba63d9a: OUTPUT«1␤»
12:05 camelia ..rakudo 2a04f2: OUTPUT«Nominal type check failed for parameter '$expected'; expected Any but got Mu instead␤  in sub infix:<=> at src/gen/CORE.setting:13414␤  in block  at src/gen/CORE.setting:1726␤  in block  at /tmp/mecrqSHDf4:1␤␤»
12:05 FROGGS rn: my $a; $a<Mu>=1
12:05 camelia rakudo 2a04f2, niecza v24-50-gba63d9a:  ( no output )
12:05 FROGGS rn: class Mu {};
12:06 camelia rakudo 2a04f2, niecza v24-50-gba63d9a:  ( no output )
12:06 FROGGS ?
12:06 moritz well
12:06 moritz if you redeclare Mu in an inner scope, stuff isn't ~~ Mu anymore
12:06 moritz or... something
12:07 lizmat_ joined #perl6
12:08 FROGGS ahh, okay, I feared it does treat <Mu> as a string
12:08 lizmat_ (got disconnected: 2nd attempt)  I'm trying to see whether I can use Mu as a key in a hash
12:08 FROGGS not*
12:08 lizmat_ e.g. when there is no :auth info for a module, it would be logical to use Mu for the key then
12:08 FROGGS hmmm
12:09 lizmat_ as that would smartmatch with Any from a "use" command
12:09 FROGGS but why do you want to redeclare Mu?
12:09 moritz rn: class Mu {}; my $a; $a<bla> = 1;
12:09 camelia niecza v24-50-gba63d9a:  ( no output )
12:09 camelia ..rakudo 2a04f2: OUTPUT«Nominal type check failed for parameter '$expected'; expected Any but got Mu instead␤  in sub infix:<=> at src/gen/CORE.setting:13414␤  in block  at src/gen/CORE.setting:1726␤  in block  at /tmp/Q2Y322EDl7:1␤␤»
12:09 lizmat_ I don't
12:09 moritz FROGGS: it's not related to the string being Mu
12:09 lizmat_ I just wanted to see whether it made a difference
12:09 FROGGS rn: my $a; $a{Mu} = 1;
12:09 camelia niecza v24-50-gba63d9a: OUTPUT«Use of uninitialized value in string context␤  at /home/p6eval/niecza/lib/CORE.setting line 1355 (warn @ 5) ␤  at /home/p6eval/niecza/lib/CORE.setting line 266 (Mu.Str @ 15) ␤  at <unknown> line 0 (ExitRunloop @ 0) ␤  at /tmp/ICdEC1vCTf line 1 (mainline @ …
12:09 camelia ..rakudo 2a04f2: OUTPUT«Cannot call 'postcircumfix:<{ }>'; none of these signatures match:␤:(: Mu *%_)␤:(: :p(:$p)!, Mu *%_)␤:(: :k(:$k)!, Mu *%_)␤:(: :kv(:$kv)!, Mu *%_)␤:(: :v(:$v)!, Mu *%_)␤:(: :BIND(:$BIND)!, Mu *%_)␤:(\SELF: $key, Mu *%_)␤:(\SELF: $key, Mu \$BIND, Mu *%_)␤:(\SELF: $k…
12:10 FROGGS r: my $a; $a{Any}=1; say $a
12:10 camelia rakudo 2a04f2: OUTPUT«use of uninitialized value of type Any in string context  in block  at /tmp/zpowZQI7uT:1␤␤("" => 1).hash␤»
12:11 jnthn I'm pretty sure redeclaring Mu will make all kinds of difference. :)
12:11 lizmat_ sorry, please forget about that  :-)
12:11 FROGGS "all kinds"... yeah, that fits :o)
12:11 daniel-s__ joined #perl6
12:12 fgomez joined #perl6
12:12 lizmat_ but being able to use Mu as a key in a hash, does not seem possible at present
12:12 fhelmberger joined #perl6
12:12 FROGGS strings only atm
12:12 lizmat_ r: say ~Mu
12:12 camelia rakudo 2a04f2: OUTPUT«Nominal type check failed for parameter ''; expected Any but got Mu instead␤  in sub prefix:<~> at src/gen/CORE.setting:1271␤  in block  at /tmp/hVqTelct4Z:1␤␤»
12:13 scottp joined #perl6
12:13 lizmat_ n: say ~Mu
12:13 camelia niecza v24-50-gba63d9a: OUTPUT«Use of uninitialized value in string context␤  at /home/p6eval/niecza/lib/CORE.setting line 1355 (warn @ 5) ␤  at /home/p6eval/niecza/lib/CORE.setting line 266 (Mu.Str @ 15) ␤  at <unknown> line 0 (ExitRunloop @ 0) ␤  at /tmp/s9afKbLVLF line 1 (mainline @ …
12:14 ilbot6 joined #perl6
12:14 kaleem joined #perl6
12:14 gtodd1 joined #perl6
12:15 FROGGS why is the value auf :auth a key in a hash?
12:15 lustlife1 joined #perl6
12:15 dayangkun joined #perl6
12:15 FROGGS what is the value then?
12:15 lizmat_ well, that's a proposal I'm working on, to support module Foo:name<Foo::Bar>:from<perl6>​:auth<cpan:JRANDOM>:ver<1.0.0> {} syntax
12:16 lizmat_ Mu was supposed to be the value in absence of a specific :auth<cpan:JRANDOM>
12:16 FROGGS so, the value will be the path? or a reference to the module?
12:17 FROGGS I'd vote for 'Any' and '*' beeing these special keys
12:17 FROGGS (as strings I might need to mention)
12:17 lizmat_ rn: class Foo::Bar {}; say OUR::; say OUR::Foo::
12:17 camelia niecza v24-50-gba63d9a: OUTPUT«Stash.new(...)␤Stash.new(...)␤»
12:17 camelia ..rakudo 2a04f2: OUTPUT«("Foo" => Foo).hash␤("Bar" => Foo::Bar).hash␤»
12:17 lizmat_ in stashes
12:18 FROGGS hmmmm
12:18 lizmat_ from/auth/ver would become part of the longname, as it were
12:19 FROGGS if we had hashes as keys, you could do: say OUR::Foo:ver<*>::Bar::
12:19 jnthn Probably you just need a way to canonicalize the names
12:19 FROGGS but there is a bit of black magic needed to get the right key
12:20 lizmat_ jnthn: I'm writing a document exploring options in this area
12:20 jnthn It's like infix:<+> is the proper name we install under, even though you may declare it as infix:['+'] or infix:<< + >> or whatever.
12:20 lizmat_ well, that would be the local alias, as it were, right>
12:20 lizmat_ ?
12:21 FROGGS jnthn: yeah, but what about wildcards?
12:21 FROGGS and regex search patterns? >.<
12:21 jnthn FROGGS: I'm talking about naming, not searching.
12:21 lizmat_ like "module Baz:name<Foo::Bar>" would declare Foo::Bar and make it available as Baz
12:21 census joined #perl6
12:22 lizmat_ we need a naming scheme that will allow for easy searching
12:22 FROGGS right, but if you could do that in general, it would be cool: say OUR::Foo:ver{/^1\.<[345]>/}::Bar::
12:22 lizmat_ but in the context of namespaces, I guess we can get away with 'Mu' as a string
12:22 lizmat_ it's just not as easy to smartmatch
12:23 lizmat_ FROGGS: shouldn't that need to be: OUR::Foo::Bar:ver{/^1\.<[345]>/}:: ?
12:23 FROGGS I hope TimToady++ doesnt read what I wrote otherwise we have some NYI's more :o)
12:24 FROGGS lizmat_: both could work
12:24 lizmat_ I think that is an implementation detail, really, so not a TimToady++ concern?
12:24 jnthn If that kind of thing should work is a language design concern.
12:24 FROGGS I was thinking about hashes in general
12:25 FROGGS if you would have hashes as keys, you could search for a key using adverbs as search patterns
12:25 jnthn Hashes default to having string keys. Stashes certainly do, and if you start trying to make it otherwise it cascades out all over the place.
12:25 lizmat jnthn: I agree
12:26 lizmat OTOH, something similar is going on with sets of sets
12:26 jnthn Anyway, I need to get back to doing $dayjob stuffs...
12:27 FROGGS my %hash = ( :value<Foo>, :auth<cpan:FROGGS> ) => 'Foo/Bar.pm'; say %hash<Foo>:auth({ /FROGGS/ })
12:28 FROGGS that looks perl6y to me fwiw
12:29 dalek perl6-roast-data: 3de2c0a | coke++ | / (4 files):
12:29 dalek perl6-roast-data: today (automated commit)
12:29 dalek perl6-roast-data: review: https://github.com/coke/perl6​-roast-data/commit/3de2c0af25
12:29 * lizmat is trying to wrap her mind around FROGGS' idea
12:30 shinobicl joined #perl6
12:30 lizmat hmmm… named parameters on circumfix{}
12:31 lizmat it's been done, I guess:
12:31 lizmat rn: my %a= ( a => 1 ); say %a<a>:p
12:31 camelia rakudo 2a04f2, niecza v24-50-gba63d9a: OUTPUT«"a" => 1␤»
12:32 lizmat but this syntax would then not allow you to have any "p" key in the hash of the key
12:33 lizmat as it would be ambiguous
12:33 lizmat rn: my %a= ( a => 1 ); say %a<a>:auth<FROGGS>
12:33 camelia rakudo 2a04f2: OUTPUT«1␤»
12:33 camelia ..niecza v24-50-gba63d9a: OUTPUT«Unhandled exception: Excess arguments to KERNEL Hash.postcircumfix:<{ }>, unused named auth␤  at <unknown> line 0 (KERNEL Hash.postcircumfix:<{ }> @ 1) ␤  at /home/p6eval/niecza/lib/CORE.setting line 183 (postcircumfix:<{ }> @ 5) ␤  at /tmp/pYzyHhkRgK line…
12:34 fhelmberger joined #perl6
12:35 FROGGS dunno if it really is a good idea
12:35 FROGGS it is a bit of a question if you need that often or not
12:36 lizmat I'm not sure about the current low level implementation of sets
12:36 lizmat but TimToady++ seemed to indicate a set of sets should be possible
12:36 wamiks joined #perl6
12:37 lizmat which would indicate some magic wrt keys there to me, if the implementation is based on hashes
12:38 jnthn Yes, but those can sanely be object hashes.
12:38 * lizmat is not sure what object hashes are
12:39 lizmat you mean where the key can be on object?  then $a{Mu} would also work, no?  as Mu is also an object?
12:40 shinobicl left #perl6
12:41 moritz yes
12:42 lizmat but object hashes are NYI, right?
12:42 jnthn They're implemented but using them for Stashes is probably stupid.
12:43 lizmat from a performance point of view?
12:43 jnthn That, and also what happens when you need to install the thing lexically?
12:43 jnthn Remember that packages in Perl 6 can be lexical.
12:43 lizmat yes, but that just means they live in MY:: , no?
12:44 jnthn Well, MY:: is a high-level view into them
12:44 FROGGS I'm not sure at all how it will work out if you want to use several modules that just differ by auth or version...
12:44 wamiks1 joined #perl6
12:44 diakopte1 joined #perl6
12:44 jnthn Under the hood we don't really look up most lexicals by name.
12:44 lizmat FROGGS: well, that's exactly what I'm trying to figure out
12:45 lizmat jnthn: it's more for introspection, I guess
12:47 huf_ joined #perl6
12:47 * FROGGS .oO(   my $dog = Dog:auth({/cpan/}).new( ... )   )
12:48 dakkar_ joined #perl6
12:48 lizmat FROGGS: no, you would do something like: use Pooch:name<Dog>:auth({/cpan/}); my $dog= Pooch.new(…)
12:49 preflex_ joined #perl6
12:49 lizmat where you could simplify this by saying: use Dog:auth({/cpan/}); my $dog= Dog.new(…)
12:49 FROGGS yeah
12:49 lizmat the use would make sure you have an alias (presumably OUR::) for the loaded module
12:50 ivan`` joined #perl6
12:50 lizmat and it would fail on the use if there was more than one candidate that matched
12:50 FROGGS yeah, you dont come around that alias, since you can't 'use' two modules with the same modulename in the same scope
12:51 lizmat indeed
12:52 lizmat see also: https://gist.github.com/lizmat/5557120
12:52 btyler joined #perl6
12:52 guru joined #perl6
13:15 _ilbot joined #perl6
13:15 Topic for #perl6 is now »ö« Welcome to Perl 6! | http://perl6.org/ | evalbot usage: 'perl6: say 3;' or rakudo:,  niecza:, std:, or /msg camelia perl6: ... | irclog: http://irc.perl6.org/ | UTF-8 is our friend!
13:31 _ilbot joined #perl6
13:31 Topic for #perl6 is now »ö« Welcome to Perl 6! | http://perl6.org/ | evalbot usage: 'perl6: say 3;' or rakudo:,  niecza:, std:, or /msg camelia perl6: ... | irclog: http://irc.perl6.org/ | UTF-8 is our friend!
13:31 geekosaur (arguably they should when they're from the same source, but.)
13:31 FROGGS nah, dont think they do
13:33 moritz ms live search supposedly handles 'Crawl-Dely: 5'
13:36 Pleiades` joined #perl6
13:38 moritz but afaict, ms live search != msn != bing
13:38 _jaldhar joined #perl6
13:40 Ulti joined #perl6
13:41 pecastro joined #perl6
13:46 sqirrel joined #perl6
13:50 jferrero_ joined #perl6
13:50 Psyche^ joined #perl6
13:54 _ilbot joined #perl6
13:54 Topic for #perl6 is now »ö« Welcome to Perl 6! | http://perl6.org/ | evalbot usage: 'perl6: say 3;' or rakudo:,  niecza:, std:, or /msg camelia perl6: ... | irclog: http://irc.perl6.org/ | UTF-8 is our friend!
13:54 cotto joined #perl6
14:03 kaare_ joined #perl6
14:10 fhelmberger joined #perl6
14:10 colomon joined #perl6
14:10 PZt joined #perl6
14:10 sivoais_ joined #perl6
14:10 snuffles_ joined #perl6
14:10 preflex_ joined #perl6
14:10 tokuhirom_ joined #perl6
14:10 cognominal joined #perl6
14:10 skids joined #perl6
14:10 stevan__ joined #perl6
14:10 bruges joined #perl6
14:10 ivan`` joined #perl6
14:10 Celelibi joined #perl6
14:10 scottp_ joined #perl6
14:10 lustlife joined #perl6
14:10 silug____ joined #perl6
14:10 geekosaur joined #perl6
14:10 broquaint joined #perl6
14:10 _jaldhar joined #perl6
14:10 Pleiades` joined #perl6
14:10 sivoais joined #perl6
14:10 sftp_ joined #perl6
14:10 moritz joined #perl6
14:10 btyler joined #perl6
14:10 preflex joined #perl6
14:10 dakkar_ joined #perl6
14:10 huf_ joined #perl6
14:10 diakopter joined #perl6
14:10 fgomez joined #perl6
14:10 lizmat joined #perl6
14:10 xinming joined #perl6
14:10 kivutar_ joined #perl6
14:10 mattp___ joined #perl6
14:10 Yappo_________ joined #perl6
14:10 TimToady joined #perl6
14:10 hypolin joined #perl6
14:10 awwaiid joined #perl6
14:10 berekuk joined #perl6
14:10 smash_ joined #perl6
14:10 drbean joined #perl6
14:10 jlaire joined #perl6
14:10 Util joined #perl6
14:10 rhr joined #perl6
14:10 mls_ joined #perl6
14:10 jferrero joined #perl6
14:10 sergot_ joined #perl6
14:10 pmichaud_ joined #perl6
14:10 bakedb_ joined #perl6
14:10 [Coke] joined #perl6
14:10 bbkr_ joined #perl6
14:10 domidumont joined #perl6
14:10 daxim joined #perl6
14:10 frdmn joined #perl6
14:10 18WADHFYL joined #perl6
14:10 18WADHDGB joined #perl6
14:10 Rix joined #perl6
14:10 mangala joined #perl6
14:10 rking1 joined #perl6
14:10 hoelzro joined #perl6
14:10 clkao joined #perl6
14:10 snuffles joined #perl6
14:10 japhb joined #perl6
14:10 sciurius joined #perl6
14:10 pjcj joined #perl6
14:10 Tene joined #perl6
14:10 genehack joined #perl6
14:10 markov1 joined #perl6
14:10 nebuchadnezzar joined #perl6
14:10 eternaleye joined #perl6
14:10 nyuszika7h joined #perl6
14:10 dalek joined #perl6
14:10 stevan_ joined #perl6
14:10 6JTAAJNEE joined #perl6
14:10 takesako____ joined #perl6
14:10 tokuhirom joined #perl6
14:10 autumn joined #perl6
14:10 integral joined #perl6
14:10 gfldex joined #perl6
14:10 Ayiko joined #perl6
14:10 bloonix joined #perl6
14:10 BooK joined #perl6
14:10 xilo joined #perl6
14:10 cosimo joined #perl6
14:10 dagurval joined #perl6
14:10 anocelot joined #perl6
14:10 patspam joined #perl6
14:10 itz joined #perl6
14:10 Juerd joined #perl6
14:10 yx joined #perl6
14:10 groky joined #perl6
14:10 LoRe_ joined #perl6
14:10 Hor|zon joined #perl6
14:10 jercos joined #perl6
14:10 camelia joined #perl6
14:10 mikemol_ joined #perl6
14:10 avarab joined #perl6
14:10 [particle] joined #perl6
14:10 mj41_ joined #perl6
14:10 felher joined #perl6
14:10 p5eval_ joined #perl6
14:10 cxreg joined #perl6
14:10 telex joined #perl6
14:10 breinbaas joined #perl6
14:10 krunen joined #perl6
14:10 djanatyn joined #perl6
14:10 crazedpsyc joined #perl6
14:10 charsbar_______1 joined #perl6
14:10 baest joined #perl6
14:10 labster joined #perl6
14:10 tadzik joined #perl6
14:10 DarthGandalf joined #perl6
14:10 mst joined #perl6
14:10 sorear joined #perl6
14:10 lee_ joined #perl6
14:10 timotimo joined #perl6
14:10 rom1504 joined #perl6
14:10 Exodist joined #perl6
14:10 ruoso joined #perl6
14:10 kshannon_ joined #perl6
14:10 sunnavy joined #perl6
14:10 ingy joined #perl6
14:10 ehouse joined #perl6
14:10 apejens joined #perl6
14:10 MrMeek joined #perl6
14:10 sjn joined #perl6
14:10 GlitchMr joined #perl6
14:10 ponbiki joined #perl6
14:10 swarley joined #perl6
14:10 SHODAN joined #perl6
14:10 revdiablo joined #perl6
14:10 flussence joined #perl6
14:10 `patch` joined #perl6
14:10 espent joined #perl6
14:10 ggoebel joined #perl6
14:10 rjbs joined #perl6
14:10 atrodo joined #perl6
14:10 sdgvf_ joined #perl6
14:10 jfried joined #perl6
14:10 __sri joined #perl6
14:10 sjohnson joined #perl6
14:10 prammer_ joined #perl6
14:10 bonsaikitten joined #perl6
14:10 szbalint joined #perl6
14:10 nwc10 joined #perl6
14:10 jerome__ joined #perl6
14:10 s1n1 joined #perl6
14:10 mtk joined #perl6
14:10 Maddingue joined #perl6
14:10 pnu_ joined #perl6
14:10 PerlJam joined #perl6
14:10 gabriel_ joined #perl6
14:10 arnsholt joined #perl6
14:10 raiph joined #perl6
14:10 betterwo1ld joined #perl6
14:10 mathw joined #perl6
14:10 kst joined #perl6
14:10 dbr joined #perl6
14:10 masak joined #perl6
14:10 risou_ joined #perl6
14:10 simcop2387 joined #perl6
14:10 zamolxes joined #perl6
14:10 Kharec joined #perl6
14:10 robinsmidsrod joined #perl6
14:10 cooper joined #perl6
14:10 shachaf joined #perl6
14:10 Woodi joined #perl6
14:10 Grrrr joined #perl6
14:10 rafl joined #perl6
14:10 tomaw joined #perl6
14:10 yves_ joined #perl6
14:10 felipe joined #perl6
14:10 wtw joined #perl6
14:10 ironcamel joined #perl6
14:10 dpk joined #perl6
14:10 yoleaux joined #perl6
14:10 LordVorp joined #perl6
14:10 Bucciarati joined #perl6
14:10 Nom- joined #perl6
14:10 jtpalmer_ joined #perl6
14:10 sitaktif1 joined #perl6
14:10 yeltzooo joined #perl6
14:11 daniel-s__ joined #perl6
14:11 hoelzro_ joined #perl6
14:11 jnthn joined #perl6
14:11 Ulti joined #perl6
14:11 Celelibi_ joined #perl6
14:11 shinobicl joined #perl6
14:12 geekosaur joined #perl6
14:12 daxim joined #perl6
14:12 Timbus joined #perl6
14:22 rindolf joined #perl6
14:26 dagurval_ joined #perl6
14:26 takesako_____ joined #perl6
14:27 d4l3k_ joined #perl6
14:28 itz joined #perl6
14:28 Hor|zon joined #perl6
14:29 nebuchad` joined #perl6
14:31 yx joined #perl6
14:31 pjcj_ joined #perl6
14:32 rindolf joined #perl6
14:32 PacoAir joined #perl6
14:34 toadface joined #perl6
14:34 bruges joined #perl6
14:34 toadface hey guys. im trying to get some perl help and i found this channel on http://www.google.com <a href="http://www.google.com">search engine</a>.
14:34 noxgirl joined #perl6
14:35 xilo joined #perl6
14:36 domidumont joined #perl6
14:36 diakopter toadface: well.. this irc network is having stability problems right now
14:36 bruges joined #perl6
14:36 japhb joined #perl6
14:36 tadzik toadface: uh, why are you speaking to us in html?
14:37 toadface tadzik: im typing what do you mean? i just put www.google.com so you know where it came from
14:38 tadzik does it appear like on http://irclog.perlgeek.de/​perl6/2013-05-13#i_7059556 to you too?
14:38 toadface let me check..
14:39 toadface ya. i guess i could have just did <a href="www.google.com">search engine</a> but whatever
14:39 Pleiades` I noticed that to
14:39 tadzik ok, whatever
14:39 mtk joined #perl6
14:39 tadzik anyway, if you need perl help, #perl may be a better place
14:39 tadzik unless you mean Perl 6
14:39 [Coke] This channel is for #perl6, and I'm guessing you're working with 5 or earlier.
14:40 toadface oh ok sorry. thanks
14:42 * FROGGS .oO( sadface )
14:44 rjbs FROGGS: you were just hoping for another amphibian to hang out in channel, weren't you?
14:46 tadzik I still don't get his typing in HTML
14:46 tadzik and the fact that it seemed completely normal to him/her
14:47 flussence and that it didn't occur to them that everybody was seeing it as plain text :/
14:47 FROGGS rjbs: yeah, feel so lonely :P
14:47 rindolf joined #perl6
14:48 Targen_ joined #perl6
14:48 cognominal TimToady does not count as an amphibian?
14:49 rjbs flussence: He may have dragged the word "Google" from some part of his screen or something
14:52 guru joined #perl6
14:52 PerlJam why would anyone drag the word google rather than just type it?  :)
14:52 tadzik at first I thought it's a spambot
14:52 tadzik but google doing spam advertising? Odd
14:52 flussence same here
14:54 [Coke] "why would anyone ever need to send HTML email? that's crazy!"
14:55 TimToady "Grandmother, what beautiful links you have!"  --Ms Hood
14:55 FROGGS O.o
14:56 TimToady cognominal: Toady is actually derived from "toadeating", so no...
14:56 diakopter tadzik: to be fair, it's likely that he copied the text from some text that was *rendered html*, and the clipboard emitted the html source when pasted in that context
14:57 cotto joined #perl6
14:57 tadzik I see
14:57 daxim 5-MeO-DMT and bufotenin
14:57 FROGGS r: module A { my $var is export = 7 }; import A <$var>; say $var
14:57 camelia rakudo 2a04f2: OUTPUT«[31m===[0mSORRY![31m===[0mâ�¤Variable '$var' is not declaredâ�¤at /tmp/BbvpIxkVLH:1â�¤------> [32m export = 7 }; import A <$var>; say $var[33mâ��[31m<EOL>[0mâ�¤    expecting any of:â�¤        postfixâ�¤Â»
14:57 FROGGS just NYI or is there a thinko?
14:58 diakopter r: my $var; module A { my $var is export = 7 }; import A <$var>; say $var
14:58 camelia rakudo 2a04f2: OUTPUT«(Any)␤»
14:59 TimToady is it trying to poke the export into UNIT?  that'd be wrong for an embedded module like that...
15:00 cognominal TimToady: ho, and you can even verb it.  :)
15:00 thou joined #perl6
15:01 TimToady at the time I adopted it, I was toadying to at least two different people named "Tim" :)
15:01 rindolf joined #perl6
15:04 kbenson joined #perl6
15:06 FROGGS TimToady: are you saying that it shouldn't work like that?
15:06 FROGGS r: module A { sub s is export { 7 } }; import A <&s>; say s; # why didnt it complain about positionals before?
15:07 camelia rakudo 2a04f2: OUTPUT«===SORRY!===␤Error while importing from 'A': no EXPORT sub, but you provided positional argument in the 'use' statement␤»
15:07 FROGGS and it isn't a use-statement either
15:07 FROGGS r: module A { sub s is export { 7 } }; import A; say s;
15:07 camelia rakudo 2a04f2: OUTPUT«7␤»
15:09 census joined #perl6
15:13 Targen joined #perl6
15:16 * [Coke] eagerly awaits jnthn++'s previously mentioned blog post!
15:16 FROGGS uhhh, cool
15:17 FROGGS jnthn++ # in advance
15:18 * jnthn eagerly awaits his $dayjob slides to be done-ish
15:18 jnthn Wait, that's my job...
15:18 jnthn :)
15:18 nwc10 will that be before CHristmas?
15:18 jnthn nwc10: I hope so, given I gotta teach 'em next week :)
15:18 kivutar_ joined #perl6
15:22 * TimToady wishes jnthn++ weren't so responsible...oh wait, nevermind...
15:24 btyler joined #perl6
15:26 rindolf joined #perl6
15:29 kivutar__ joined #perl6
15:35 mst joined #perl6
15:37 rindolf joined #perl6
15:58 sivoais joined #perl6
16:04 larks joined #perl6
16:05 rindolf joined #perl6
16:09 snarkyboojum joined #perl6
16:10 markov joined #perl6
16:12 integral_ joined #perl6
16:12 integral_ joined #perl6
16:16 masak oh hai, oh hai, oh lovely #perl6
16:19 jnthn o/ masak
16:20 colomon \o
16:21 rindolf masak: hi.
16:21 rindolf jnthn: hi.
16:21 rindolf What's new?
16:21 colomon it's a method for constructing objects.
16:21 rindolf joined #perl6
16:22 lizmat but that's not important right now
16:23 autumn joined #perl6
16:25 * lizmat saw some of http://en.wikipedia.org/wi​ki/Airplane_II:_The_Sequel yesterday
16:26 masak rindolf: I have 6 talks to prepare. but I'm teaching all the time, so I have to do it during evenings and weekends.
16:27 rindolf masak: ah, that sucks.
16:32 lizmat how does one create an object-keyed hash ?
16:32 kbenson1 joined #perl6
16:34 flussence r: my %h{Int} = 1 => 4; say %h.perl
16:34 camelia rakudo 2a04f2: OUTPUT«(1 => 4).hash␤»
16:34 jnthn my %h{SomeType}
16:34 flussence r: my %h = 1 => 4; say %h.perl
16:34 camelia rakudo 2a04f2: OUTPUT«("1" => 4).hash␤»
16:35 kbenson1 joined #perl6
16:35 pecastro_ joined #perl6
16:35 masak rindolf: not really. I'm not complaining, just saying what's new :)
16:35 rindolf joined #perl6
16:37 FROGGS joined #perl6
16:38 szbalint joined #perl6
16:39 prammer_ joined #perl6
16:39 spider-mario joined #perl6
16:40 masak lizmat: S09 has the full story.
16:42 cognominal joined #perl6
16:42 lizmat masak++
16:44 lizmat r: my %h{Stash}; %h{OUR::}=1; say %h   # cool!
16:44 camelia rakudo 2a04f2: OUTPUT«({} => 1).hash␤»
16:45 PerlJam r: my %h<a b c>;  # just checking  :)
16:45 camelia rakudo 2a04f2: OUTPUT«[31m===[0mSORRY![31m===[0mâ�¤Shaped variable declarations not yet implemented. Sorry. â�¤at /tmp/ZfSnNKsZQH:1â�¤------> [32mmy %h<a b c>[33mâ��[31m;  # just checking  :)[0mâ�¤Â»
16:46 lizmat rn: my %h{Mu}; %h{Mu}=1; say %h  # alas
16:46 camelia niecza v24-50-gba63d9a: OUTPUT«[31m===[0mSORRY![31m​===[0mâ�¤â�¤Postconstraints, and shapes on variable declarators NYI at /tmp/MedMtFESHs line 1:â�¤------> [32mmy %h{Mu}[33mâ��[31m; %h{Mu}=1; say %h  # alas[0mâ�¤â�¤Unhandled exception: Check failedâ�¤â�¤  at /home/p6eval/niecza/boot/lib/CORE.se…
16:46 camelia ..rakudo 2a04f2: OUTPUT«Cannot call 'postcircumfix:<{ }>'; none of these signatures match:␤:(: Mu *%_)␤:(: :p(:$p)!, Mu *%_)␤:(: :k(:$k)!, Mu *%_)␤:(: :kv(:$kv)!, Mu *%_)␤:(: :v(:$v)!, Mu *%_)␤:(: :BIND(:$BIND)!, Mu *%_)␤:(\SELF: $key, Mu *%_)␤:(\SELF: $key, Mu \$BIND, Mu *%_)␤:(\SELF: $k…
16:47 lizmat rn: my %h{Mu}; %h{Any}=1; say %h  # appears to work
16:47 camelia rakudo 2a04f2: OUTPUT«(Any => 1).hash␤»
16:47 camelia ..niecza v24-50-gba63d9a: OUTPUT«[31m===[0mSORRY![31m​===[0mâ�¤â�¤Postconstraints, and shapes on variable declarators NYI at /tmp/JAg1TmI84S line 1:â�¤------> [32mmy %h{Mu}[33mâ��[31m; %h{Any}=1; say %h  # appears to work[0mâ�¤â�¤Unhandled exception: Check failedâ�¤â�¤  at /home/p6eval/niecza/boot…
16:47 masak lizmat: a Hash of Stash? what are you working on, a Dr Seuss book? :P
16:47 BinGOs_ joined #perl6
16:47 Gothmog__ joined #perl6
16:48 jnthn lizmat: Yeah, that's probably 'cus the postcircumfix's key argument is of type Any.
16:48 jnthn lizmat: So you can do %h{'a' | 'b'}
16:48 lizmat masak: testing approaches to supporting extended use / module syntax (with :name, :from, :auth and :ver)
16:50 lizmat r: my %h{Mu}; %h{Any}=1; say Any ~~ %h.keys
16:50 camelia rakudo 2a04f2: OUTPUT«True␤»
16:51 lizmat r: my %h{Stash}; %h{OUR::}=1; say OUR:: ~~ %h.keys   # alas
16:51 camelia rakudo 2a04f2: OUTPUT«False␤»
16:52 * masak .oO( I would not like them here or there / I would not like them anywhere / I do not like a Hash of Stash / I do not like them, .keys, alas )
16:53 lizmat mdk would love this, masak++
16:55 masak ;)
16:55 gdey joined #perl6
16:56 BinGOs joined #perl6
16:58 lizmat rn: my %h{Junction}; %h{"a"|"b"}=1; say %h.keys   # like this, jnthn?
16:58 camelia rakudo 2a04f2: OUTPUT«Nominal type check failed for parameter 'key'; expected Junction but got Str instead␤  in method at_key at src/gen/CORE.setting:6968␤  in method postcircumfix:<{ }> at src/gen/CORE.setting:1637␤  in method postcircumfix:<{ }> at src/gen/CORE.setting:1627␤  in sub t…
16:58 camelia ..niecza v24-50-gba63d9a: OUTPUT«[31m===[0mSORRY![31m​===[0mâ�¤â�¤Postconstraints, and shapes on variable declarators NYI at /tmp/i4NaMVtaQ6 line 1:â�¤------> [32mmy %h{Junction}[33mâ��[31m; %h{"a"|"b"}=1; say %h.keys   # like th[0mâ�¤â�¤Unhandled exception: Check failedâ�¤â�¤  at /home/p6eval/nie…
16:59 jnthn lizmat: It's more that method postcircumfix takes a paremter type Any, so the junction is auto-threaded before getting anywhere near teh Hash itself.
17:00 * lizmat is trying to grok that
17:00 jnthn %h{"a" | "b"} is %h.postcircumfix:<{ }>("a" | "b")
17:01 jnthn And we have a method postcircumfix:<{ }>($key) { ... } or so
17:01 jnthn And the default parameter type is Any, not Mu
17:01 jnthn So it's just like
17:02 jnthn r: sub foo($a) { say "called with $a" }; foo("a" | "b")
17:02 camelia rakudo 2a04f2: OUTPUT«called with a␤called with b␤»
17:02 lizmat yeah, I got that
17:03 lizmat so are these rakudobugs then, or a matter of NYI:
17:03 jnthn Or correct.
17:04 lizmat r: my %h{Any}; %h{("a"|"b")}=1
17:04 camelia rakudo 2a04f2: OUTPUT«No such method 'STORE' for invocant of type 'Mu'␤  in sub AUTOTHREAD_METHOD at src/gen/CORE.setting:2308␤  in any  at src/gen/Metamodel.nqp:2497␤  in block  at /tmp/5Zl1BOUFVq:1␤␤»
17:04 lizmat r: my %h{Mu}; %h{("a"|"b")}=1
17:04 camelia rakudo 2a04f2: OUTPUT«No such method 'STORE' for invocant of type 'Mu'␤  in sub AUTOTHREAD_METHOD at src/gen/CORE.setting:2308␤  in any  at src/gen/Metamodel.nqp:2497␤  in block  at /tmp/LECAWwS8RL:1␤␤»
17:04 jnthn That one isn't correct though :)
17:04 jnthn Hm...that's weird.
17:04 jnthn I wonder if something is decontainerizing when it should not be.
17:05 jnthn r: my %h = a => 1, b => 2; say %h{("a"|"b")}
17:05 camelia rakudo 2a04f2: OUTPUT«any(1, 2)␤»
17:05 * lizmat 's mind is just trying to no decontainerize
17:05 lizmat *not
17:05 jnthn r: my %h = a => 1, b => 2; sub foo(\x) { say nqp::iscont(x) }; foo %h{("a"|"b")}
17:05 camelia rakudo 2a04f2: OUTPUT«1␤1␤»
17:06 lizmat that doesn't look good, should be 1 2 right?
17:06 jnthn ?
17:06 jnthn No, I did nqp::iscont(...) which is a magical low-level thing that tells me if we got a scalar container there or just a value
17:07 jnthn We did, so the bug is probably in AUTOTHREAD_METHOD itself.
17:07 lizmat ah, too many 1's with different meanings
17:07 rindolf joined #perl6
17:07 jnthn I guess the question is whether we want to allow hashes with Mu and Junction type keys to work.
17:08 jnthn If so, it'll need a little thought.
17:08 lizmat well, I understand that in Perl 6 everything is an object
17:08 lizmat which would imply that yes, you should be able to use them as keys
17:08 jnthn 'cus I don't see an immediately easy solution for making it do so.
17:08 lizmat or as shape
17:09 jnthn Well, whenever you declare a class then it is a descendent of Any, not Mu.
17:10 jnthn So typically my %h{Any} is plenty liberal enough.
17:10 lizmat true
17:10 d4l3k_ joined #perl6
17:10 jnthn Maybe the answer is that postcircumfix should accept Mu keys, and then at_pos auto-threads.
17:10 jnthn uh, at_key
17:10 lizmat it's just that linguistically, Any to me means "I don't care", whereas Mu means "I don't know"
17:10 jnthn *nod*
17:10 jnthn Fair point.
17:11 eternaleye joined #perl6
17:12 lizmat but to be fair, the only reason I would do my h%{Mu}, is because %h{Stash} would not allow:
17:12 lizmat r: my %h{Stash}; %h{Mu}=1
17:12 LoRe_ oijsidfjalskdjfaslfjlkjiij
17:12 camelia rakudo 2a04f2: OUTPUT«Cannot call 'postcircumfix:<{ }>'; none of these signatures match:␤:(: Mu *%_)␤:(: :p(:$p)!, Mu *%_)␤:(: :k(:$k)!, Mu *%_)␤:(: :kv(:$kv)!, Mu *%_)␤:(: :v(:$v)!, Mu *%_)␤:(: :BIND(:$BIND)!, Mu *%_)␤:(\SELF: $key, Mu *%_)␤:(\SELF: $key, Mu \$BIND, Mu *%_)␤:(\SELF: $k…
17:13 snuffles joined #perl6
17:13 snarkyboojum_ joined #perl6
17:13 jnthn lizmat: https://gist.github.com/jnthn/5569849 may help and be worth spectesting.
17:13 lizmat jnthn: will do
17:14 jnthn lizmat: It does what I suggested. It should fix my %h{Mu} stuff without fallout.
17:14 jnthn lizmat: Unlike my first ideas how to fix it, which woulda caused chaos. :)
17:15 lizmat my work here is done  :-)
17:15 spider-mario_ joined #perl6
17:15 jnthn If it goes in, a spectest for it would also be nice :)
17:16 lizmat will do!
17:17 ivan``_ joined #perl6
17:19 Pleiades` joined #perl6
17:21 silug____ joined #perl6
17:25 frdmn joined #perl6
17:26 lizmat jnthn: any suggestion as to where to add them (not too familar with the spectest suite just yet)
17:26 lizmat S09-hashes ?
17:27 lizmat S09-hashes/objecthash.rakudo seems to be the place
17:46 _ilbot joined #perl6
17:46 Topic for #perl6 is now »ö« Welcome to Perl 6! | http://perl6.org/ | evalbot usage: 'perl6: say 3;' or rakudo:,  niecza:, std:, or /msg camelia perl6: ... | irclog: http://irc.perl6.org/ | UTF-8 is our friend!
17:51 shinobicl left #perl6
17:51 shinobicl joined #perl6
17:52 lizmat moritz: looks like irclog.perlgeek.de stopped logging at 17:27 UTC
17:53 masak moritz: also, looks like the cute graphlets are all deadbeef: http://irclog.perlgeek.de/ :/
17:54 lizmat it's logging again, seems we lost all between 12:27 and 17:52
17:55 bruges_ joined #perl6
17:56 rindolf joined #perl6
17:57 larks joined #perl6
17:58 cibs joined #perl6
17:58 Khisanth joined #perl6
17:58 lue joined #perl6
17:58 salv0 joined #perl6
17:58 lestrrat joined #perl6
17:58 ilbot6 joined #perl6
17:58 yx joined #perl6
17:58 prammer_ joined #perl6
17:58 xilo_ joined #perl6
17:58 jferrero joined #perl6
17:58 Chillance joined #perl6
17:58 btyler joined #perl6
17:59 sorear good * #perl6
17:59 lizmat sorear!
18:02 masak sorear! \o/
18:05 larks when I saw "good * #perl6," the first thing that popped into my head was that #perl is an invalid var name
18:05 sorear lizmat!  masak!
18:07 lizmat question: jnthn pointed me to src/core/Any.pm
18:07 lizmat in there I see this syntax: "multi method postcircumfix:<{ }>(:$p!) { self.pairs }", specifically the :$p!
18:08 jnthn lizmat: I'm guessing it's the "say" that fails?
18:08 lizmat I was wondering what that means, and whether that has something to do :p(0) not working
18:08 lizmat jnthn: checking
18:09 lizmat jnthn: indeed
18:09 masak sorear: a monad of X is just a monoid in the category of endofunctors of X, with product × replaced by composition of endofunctors and unit set by the identity endofunctor. :)
18:09 masak sorear: (that's Mac Lane)
18:09 jnthn masak: What language is...oh, it's English :P
18:09 masak sorear: I won't say I fully understand it, but it's non-blurry enough to be scary. :P
18:10 jnthn lizmat: :$p! means "only come here if there is a named parameter $p
18:10 jnthn It doesn't check it's true
18:10 lizmat okidoki...
18:10 jnthn So yes, it's the underlying reason.
18:11 jnthn We need to be careful when fixing those, though, 'cus if they're tweaked wrong then we start missing the multi-dispatch cache and make every hash index slow...
18:11 lizmat understand
18:11 rindolf joined #perl6
18:12 sorear masak: The crucial point is that there are natural transformations between the powers
18:12 sorear masak: in Haskell, return :: a -> m a,  join :: m (m a) -> m a
18:12 jnthn $p ?? self.pairs !! callsame() may do it.
18:13 sorear Haskell treats (>>=) :: m a -> (f -> m b) -> m b as primitive and defines join foo = foo >>= \x -> x,   but CT thinks of it the other way around
18:13 sorear That might be what "monoid object" means
18:14 masak aye.
18:14 masak jnthn: I'm not sure you're interested, but there's a nice SO answer here to de-crazy the phrase into English: http://stackoverflow.com/a/3870310/2257139
18:15 SamuraiJack joined #perl6
18:15 masak (I don't mean that it makes the crazy go away, it just transforms the crazy into English)
18:16 lizmat jnthn: this is about :p ?  if so, I'm now checking: $p ?? SELF.at_key($key) !! RWPAIR($key, SELF.at_key($key))
18:17 jnthn lizmat: I think it shows up in a few places
18:17 lizmat ok, will check, so we can close that ticket   :-)
18:18 moritz masak: somehow the cronjob created pngs with size 0 for the irc log index page
18:18 lizmat hmmm…. that seems reversed
18:18 masak moritz: consistent with observation, yes.
18:18 jnthn lizmat: postcircumfix:<[ ]> probably has similar issues
18:18 lizmat duh
18:18 jnthn lzUh, yeah, you got it backwards :)
18:19 lizmat ok, will check, fix and add tests
18:19 jnthn um, tab fail :)
18:19 jnthn lizmat++
18:19 jnthn lizmat: I think the Mu key problem is one with .gist'ing the hash.
18:19 lizmat think so too
18:20 lizmat let me try and fix that by my self, it will be instructive  :)
18:20 jnthn Yeah. Hint: you may be able to golf it to .pairs or something.
18:21 lizmat actually, the :p(0) also applies to :delete and :exists
18:21 lizmat rn: my %a; %a<a>=1; say %a<a>:delete(0); say %a
18:21 camelia rakudo 2a04f2: OUTPUT«1␤().hash␤»
18:21 camelia ..niecza v24-50-gba63d9a: OUTPUT«1␤{}␤»
18:22 jnthn lizmat: Correct.
18:23 * masak adds that to the ticket
18:26 rindolf joined #perl6
18:28 * lizmat wonders what :exists(0) should return.  Or maybe fail / die ?
18:29 jnthn lizmat: Should work as if you never passed :exists, I think
18:30 TimToady :$exists! where .so
18:30 TimToady or some such
18:30 masak lizmat: I wrote :!exists the other day, expecting it to mean "it doesn't exist".
18:30 TimToady or we just document that it ignores the value
18:31 TimToady hmm
18:31 masak lizmat: as in `if %hash{$key} :!exists`
18:31 TimToady I can see that
18:31 masak I think that's the sane semantics.
18:31 masak including for :exists(0), for consistency.
18:32 jnthn oh...that could be useful
18:32 TimToady just have to make sure you .so both sides of the ===
18:32 jnthn I'm not sure what :!p means though...
18:32 TimToady return inverted pairs :)
18:32 jnthn Or, well, anything but :!exists actually :)
18:33 TimToady .oO(delete this if it doesn't exist...)
18:33 masak jnthn: it means "don't return pairs".
18:33 masak jnthn: and :!delete means "don't delete it".
18:33 jnthn Hmm
18:34 jnthn Well, it's just that :!exists is the only one that negates the result, is all :)
18:34 jnthn the others mean "don't do the operation"
18:34 masak :exists is the only one that returns a Bool.
18:34 TimToady I think they could be safely categorized as nonsensical
18:34 masak the others are "commands".
18:34 jnthn *nod*
18:34 jnthn I can live with it being that way, just pointing out the special case :)
18:35 TimToady either make false pairs illegal there, or just document they're erroneous, if there would be overhead
18:35 masak jnthn: the opposite of a command is "don't do the command". the opposide of a Bool b is !b
18:35 masak I don't think they're erroneous or illogical.
18:35 TimToady it doesn't do them unless you use ACME::Don't
18:35 jnthn Well, I'd considered them erroneous so far :)
18:35 jnthn Which is why the impl is the way it is :)
18:35 masak I think they're a nice extension of the current semantics.
18:36 jnthn :!exists is cute though :)
18:36 masak well, :$pairs and :$delete make sense to me too.
18:36 lizmat and :delete($bool) could be a handy shorthand as well
18:36 masak right.
18:36 jnthn Yeah, I can see :$delete quite well
18:36 masak that's what I meant.
18:36 masak and if you accept it that far, then :!delete is just a (maybe nonsensical) consistency.
18:37 masak feels unnecessary to forbid it, though.
18:37 TimToady presumably it returns the element anyway
18:37 masak aye.
18:37 TimToady so that :delete($maybe) is en passant
18:37 lizmat indeed
18:37 masak right.
18:38 TimToady but I don't really see any use case for :pairs($maybe)
18:39 lizmat to me, it was just an extension of :p being adverbial pair
18:39 TimToady we could steal the flat to say whether to throw out undefineds
18:39 TimToady *flag
18:39 lizmat ??
18:39 masak what lizmat said.
18:41 TimToady someplace we defined those to ignore non-existent keys rather than returning Nils
18:42 TimToady S02:2461
18:43 lizmat %hash<a b c> :!p;    # returns a => 'A', b => 'B', Nil
18:44 lizmat is that what you mean?
18:44 betterworld joined #perl6
18:44 TimToady yup
18:44 TimToady still think default should be to ignore the non-existent ones
18:44 masak rn: my @array = <A B>; say @array[0,1,2]; say @array[0,1,2] :p; say @array[0,1,2] :kv; say @array[0,1,2] :k; say @array[0,1,2] :v;
18:44 camelia rakudo 2a04f2: OUTPUT«A B (Any)␤0 => "A" 1 => "B"␤0 A 1 B␤0 1␤A B␤»
18:44 camelia ..niecza v24-50-gba63d9a: OUTPUT«A B (Any)␤0 => "A" 1 => "B" 2 => Any␤0 A 1 B 2 (Any)␤0 1 2␤Unhandled exception: Excess arguments to KERNEL Array.postcircumfix:<[ ]>, unused named v␤  at <unknown> line 0 (KERNEL Array.postcircumfix:<[ ]> @ 1) ␤  at /home/p6eval/niecza/lib/CORE.setting lin…
18:45 TimToady well, or Any if that's the default for the array
18:45 masak colomon: want me to open a tikkit?
18:46 dalek perl6-roast-data: 016dbcf | coke++ | / (4 files):
18:46 dalek perl6-roast-data: today (automated commit)
18:46 dalek perl6-roast-data: review: https://github.com/coke/perl6​-roast-data/commit/016dbcf706
18:46 TimToady note that keyhashes are supposed to default to 0 though, to support autodeletion
18:46 masak n: my @array = <A B>; say my @array = <A B>
18:46 camelia niecza v24-50-gba63d9a: OUTPUT«Potential difficulties:â�¤  Useless redeclaration of variable @array (see line 1) at /tmp/hiKT8bUu_q line 1:â�¤------> [32mmy @array = <A B>; say my @array [33mâ��[31m= <A B>[0mâ�¤  @array is declared but not used at /tmp/hiKT8bUu_q line 1:â�¤------> [32mmy [3…
18:46 masak er.
18:46 masak n: my @array = <A B>; say @array[0,1,2] :v
18:46 camelia niecza v24-50-gba63d9a: OUTPUT«Unhandled exception: Excess arguments to KERNEL Array.postcircumfix:<[ ]>, unused named v␤  at <unknown> line 0 (KERNEL Array.postcircumfix:<[ ]> @ 1) ␤  at /home/p6eval/niecza/lib/CORE.setting line 179 (postcircumfix:<[ ]> @ 5) ␤  at /tmp/Y02y6MDYyG line …
18:47 TimToady NYI, it would seem
18:47 masak colomon: also, :p doesn't weed.
18:48 Ulti joined #perl6
18:48 lizmat :p currently weeds
18:49 dalek roast: 8666a16 | coke++ | S04-statements/sink.t:
18:49 dalek roast: pugs fudge
18:49 dalek roast: review: https://github.com/perl6/roast/commit/8666a16fca
18:49 masak lizmat: not in Niecza.
18:49 lizmat r: my %a= (a => 1, b => 2); say %a<a b c>:p   # :p currently weeds
18:49 camelia rakudo 2a04f2: OUTPUT«"a" => 1 "b" => 2 ␤»
18:49 lizmat ah, ok
18:49 [Coke] niecza has been dirty for 300 days. pugs has been dirty for 2 days. rakudo has been dirty for 9 days.  (I just fixed pugs)
18:49 masak (which is why I was addressing colomon++) :)
18:49 masak [Coke]++ # reports, fixing pugs
18:50 masak [Coke]++ # that's two things, come to think of it
18:50 [Coke] sadly, feather seems to be the only place rakudo is failing.
18:50 dalek nqp/rak-jvm-support: fe7b151 | jnthn++ | src/vm/jvm/QAST/Compiler.nqp:
18:50 dalek nqp/rak-jvm-support: Fix xor code gen.
18:50 dalek nqp/rak-jvm-support: review: https://github.com/perl6/nqp/commit/fe7b15170b
18:50 dalek nqp/rak-jvm-support: d8aa874 | jnthn++ | src/vm/jvm/runtime/org/perl6/nqp​/jast2bc/JASTToJVMBytecode.java:
18:50 dalek nqp/rak-jvm-support: Avoid needless constant pool usage.
18:50 dalek nqp/rak-jvm-support:
18:50 dalek nqp/rak-jvm-support: For small values, we can be a bit smarter. This happens to cut the
18:50 dalek nqp/rak-jvm-support: constant pool size for CORE.setting bytecode by 15,000 entries. There
18:50 dalek nqp/rak-jvm-support: are more improvements like this.
18:50 dalek nqp/rak-jvm-support: review: https://github.com/perl6/nqp/commit/d8aa87425b
18:50 [Coke] colomon++ # niecza down to 16 failures from nearly 200
18:51 masak colomon++
18:51 lizmat r: my %a= (a => 1, b => 2); say %a<c>:p  # shouldn't this be Nil ?
18:51 camelia rakudo 2a04f2: OUTPUT«"c" => Any␤»
18:51 masak lizmat: yeah, think so.
18:52 * masak submits rakudobug
18:52 masak r: my %a= (a => 1, b => 2); say %a<a b c>:p
18:52 camelia rakudo 2a04f2: OUTPUT«"a" => 1 "b" => 2 ␤»
18:52 domidumont joined #perl6
18:52 masak weird.
18:52 lizmat different candidates ?
18:53 jnthn yeah
18:53 lizmat single key handled by multi method postcircumfix:<{ }>(\SELF: Mu $key, :$p!)
18:53 lizmat multi key handled by multi method postcircumfix:<{ }>(\SELF: Positional \key, :$p!)
18:54 lizmat is that right, jnthn?
18:54 jnthn Looks right to me.
18:54 * [Coke] tries to parse jnthn's commit there. did you remove constants from the constants table and make them literals?
18:54 jnthn There may also be a * (whatever) case
18:54 jnthn [Coke]: Yeah.
18:54 [Coke] (or maybe, "inline constants" is a better way to say that.)
18:54 * lizmat is still a little unsure how to read MMD candidates
18:54 jnthn [Coke]: You can have literals in the byte stream for 1 or 2 byte things
18:55 jnthn [Coke]: Given a constant table index is a byte or two already, you come out considerably ahead by being smart about this :)
19:00 rindolf joined #perl6
19:02 masak lizmat: define "<:" as "is narrower than" and :=: as "is as narrow as". signature (A1, A2, ... An) <: signature (B1, B2, ... Bn) iff, Ai <: Bi or Ai :=: Bi for each i, and at least one Ai <: Bi.
19:02 masak lizmat: the nice thing is that this makes signature narrowness into a poset.
19:03 jnthn .oO( I'd poset that may have increased confusion :P )
19:03 masak critics. they're everywhere.
19:03 jnthn Actually I just couldn't resist the pun :P
19:03 masak pundits. they're everywhere.
19:04 lizmat masak++
19:04 masak lizmat: actually I'm math-paraphrasing a really nice jnthn++ talk about signatures. you should read it.
19:04 masak lizmat: I'll find it for you.
19:05 masak lizmat: http://jnthn.net/papers/20​10-yapc-eu-signatures.pdf
19:05 masak (there are newer versions of that talk, it seems. but this is the one I caught.)
19:06 * lizmat looks
19:07 masak lizmat: actually, no, do read that talk, but it didn't have the explanations I was after. this talk does: http://jnthn.net/papers/20​09-npw-tmtowtdi-slides.pdf
19:08 * lizmat likes the introduction though  :-)
19:08 masak lizmat: specifically, the slides saying "Type hierarchies in Multi Dispatch".
19:12 [Coke] Dagur Valberg Johannsson ?
19:12 lizmat r: my %a= (a => 1, b => 2); say %a<c>:k  #also seems a bug to me
19:12 camelia rakudo 2a04f2: OUTPUT«c␤»
19:12 lizmat n: my %a= (a => 1, b => 2); say %a<c>:k
19:13 camelia niecza v24-50-gba63d9a: OUTPUT«c␤»
19:13 lizmat at least consistent
19:14 d4l3k_ joined #perl6
19:14 [Coke] does dalek note comments on commits? https://github.com/perl6/roast/commit/0bb5a4d6f97f​d47cd775b3b7f24465b20adca7b9#commitcomment-3201536
19:15 masak [Coke]: I doubt it.
19:15 lizmat r: my %a= (a => 1, b => 2); my @c=<c>; say %a{@c}:k   # this seems right
19:15 camelia rakudo 2a04f2: OUTPUT«␤»
19:15 dalek specs: fd94c28 | larry++ | S02-bits.pod:
19:15 dalek specs: Allow false booleans into slice adverbs
19:15 dalek specs: review: https://github.com/perl6/specs/commit/fd94c28225
19:16 sjn_ joined #perl6
19:16 [Coke] Anyone know who Dagur is?
19:16 colomon masak, [Coke]: I'm actively working on fixing those niecza bugs, which is why I haven't just fudged them.
19:16 [Coke] ah, it's dagurval
19:16 lizmat TimToady++ for the ruling on :exists($bool) and :delete($bool), will implement them now
19:17 [Coke] colomon: I appreciate that. Sorry if it sounds like I'm giving you a hard time!
19:18 masak colomon++ lizmat++ # doing stuff
19:18 colomon [Coke]: nah, it's okay to give me prods as appropriate!
19:18 sorear [Coke]: no, does not note comments.
19:18 [Coke] colomon: if dagurval doesn't fix that commit, you may be interested in the comment.
19:19 colomon what commit?
19:19 lizmat r: my %a= (a => 1, b => 2); my @c=<b c>; say (%a{@c}:k).perl   # would have expected ("b") here
19:19 camelia rakudo 2a04f2: OUTPUT«("b", ())␤»
19:19 colomon [Coke]: oh, the roast thing?
19:21 [Coke] Aye.
19:21 colomon n: my @a <== 0..Inf
19:22 camelia niecza v24-50-gba63d9a: OUTPUT«Potential difficulties:â�¤  @a is declared but not used at /tmp/Z73ssigWYU line 1:â�¤------> [32mmy [33mâ��[31m@a <== 0..Inf[0mâ�¤â�¤Unhandled exception: Feed ops NYIâ�¤  at /home/p6eval/niecza/lib/CORE.setting line 1502 (die @ 5) â�¤  at /home/p6eval/niecza/lib/COR…
19:22 colomon well, implementing feeds certainly isn't on my todo list any time soon....
19:26 lizmat r: my %a= (a => 1, b => 2); my @c=<b c>; say (%a{@c}:v).perl   # would have expected ("b") here also
19:26 camelia rakudo 2a04f2: OUTPUT«(2, ())␤»
19:26 lizmat s/b/2/
19:32 lizmat r: say True ?^ True  # shouldn't this be False ?
19:32 camelia rakudo 2a04f2: OUTPUT«Nil␤»
19:35 colomon n: say True ?^ True
19:35 camelia niecza v24-50-gba63d9a: OUTPUT«False␤»
19:36 * colomon doesn't know what is right.
19:36 lizmat any other combination of Bool ?^ Bool returns Bool
19:36 lizmat True ?^ True is the odd one out
19:37 jnthn hm, this sounds familiar somehow...
19:38 masak yeah, it does.
19:38 masak maybe blame on the implementation and check the logs from that time?
19:38 rindolf joined #perl6
19:38 jnthn Yeah, grep for "if $past.op eq 'xor' {" in Actions.nqp; it seems very deliberate.
19:39 lizmat grepping
19:39 jnthn I seem to remember pmichaud++ taking care of something in this area, and stuff Pm puts in tends to be well reasoned/researched/questioned.
19:39 lizmat :name<Nil>
19:39 lizmat to be complete: $past.push(QAST::Var.new(:named<false>, :scope<lexical>, :name<Nil>)
19:41 lizmat it was done in feda23a2
19:42 lizmat no, it was there before
19:43 lizmat feda23a2 was just the migration from PAST to QAST
19:44 lizmat jnthn: what does nqp::iscont(key) mean ?   Seems it is being used in the Positional candidates to handle the single key case
19:44 lizmat is that necessary?
19:45 diakopter short for is container; dunno past that
19:45 dalek v5: 0f33a0b | (Tobias Leich)++ | lib/Perl5/Actions.nqp:
19:45 dalek v5: stringify $! to get rid of typed exceptions
19:45 dalek v5: review: https://github.com/rakudo-p5/v5/commit/0f33a0b82b
19:45 dalek v5: 2855598 | (Tobias Leich)++ | lib/Perl5/ (2 files):
19:45 dalek v5: added helper for $/
19:45 dalek v5: review: https://github.com/rakudo-p5/v5/commit/2855598972
19:45 dalek v5: 00e390d | (Tobias Leich)++ | lib/Perl5/Terms.pm:
19:45 dalek v5: added scalar()
19:45 dalek v5: review: https://github.com/rakudo-p5/v5/commit/00e390db6a
19:45 dalek v5: f4d01b6 | (Tobias Leich)++ | lib/Perl5/Grammar.nqp:
19:45 dalek v5: parse 1..4 as range, not as 1. . 4
19:45 dalek v5: review: https://github.com/rakudo-p5/v5/commit/f4d01b627a
19:47 japhb joined #perl6
19:48 lizmat rn: my %a= (a => 1, b => 2); %a{Whatever} :exists; say %a   # this is definitely a bug, copy-n-paste error in src/core/Any.pm
19:48 camelia rakudo 2a04f2: OUTPUT«().hash␤»
19:48 camelia ..niecza v24-50-gba63d9a: OUTPUT«Use of uninitialized value in string context␤  at /home/p6eval/niecza/lib/CORE.setting line 1355 (warn @ 5) ␤  at /home/p6eval/niecza/lib/CORE.setting line 266 (Mu.Str @ 15) ␤  at <unknown> line 0 (ExitRunloop @ 0) ␤  at /tmp/vatBMEMvWS line 1 (mainline @ …
19:49 jnthn lizmat: It's differentiating @foo[@bar.item] from @foo[@bar]; it needs to be there
19:49 lizmat ok, I'll also fix the Whatever case
19:50 rindolf joined #perl6
19:50 lizmat multi method postcircumfix:<{ }>(\SELF: Whatever, :$exists!) is rw { SELF{SELF.keys}:delete }   # can't be right
19:50 jnthn lizmat: No, that's copy-pasto :)
19:50 jnthn Glad somebody reviews stuff :)
19:51 jnthn Probably means need more tests too :)
19:51 lizmat indeed…  will add them to the commit for my pull request
19:51 lizmat fwiw, I've sent in my CLA to TPF last week by snailmail
19:52 jnthn \o/
19:53 tadzik \o/
19:54 masak lizmat++ # la awesome
19:57 [Coke] snailmail? how quaint! ;)
19:58 arnsholt IIRC you can also fax it =)
19:58 * lizmat was under the impression a real paper was needed
19:58 lizmat anyway, I printed double sided, you can't do that with a fax   :-)
19:59 arnsholt Very true
20:00 * lizmat feels like she's working on the railroad, just like these kids http://www.youtube.com/watch?v=hlczxXqez-Y
20:04 colomon \o/
20:10 dalek v5: d9dd700 | (Tobias Leich)++ | lib/Perl5/Actions.nqp:
20:10 dalek v5: Stringy is a method
20:10 dalek v5: review: https://github.com/rakudo-p5/v5/commit/d9dd70067b
20:10 rindolf joined #perl6
20:11 cibs joined #perl6
20:13 ilogger2 joined #perl6
20:14 lizmat rn: my %a= (a => 1, b => 2); say %a{*} :delete:p   # shouldn't this return pairs ?
20:14 camelia niecza v24-50-gba63d9a: OUTPUT«(Any)␤»
20:14 camelia ..rakudo 2a04f2: OUTPUT«1 2␤»
20:15 jnthn I'm...not sure you can stack 'em...
20:15 colomon rn: my %a= (a => 1, b => 2); say %a{*} :delete
20:15 camelia niecza v24-50-gba63d9a: OUTPUT«(Any)␤»
20:15 camelia ..rakudo 2a04f2: OUTPUT«1 2␤»
20:15 lizmat niecza seems wrong here
20:15 colomon rn: my %a= (a => 1, b => 2); say %a{'a'} :delete
20:15 camelia rakudo 2a04f2, niecza v24-50-gba63d9a: OUTPUT«1␤»
20:16 colomon rn: my %a= (a => 1, b => 2); say %a{'a'}
20:16 camelia rakudo 2a04f2, niecza v24-50-gba63d9a: OUTPUT«1␤»
20:16 colomon rn: my %a= (a => 1, b => 2); say %a{*}
20:16 camelia rakudo 2a04f2, niecza v24-50-gba63d9a: OUTPUT«1 2␤»
20:16 lizmat well, some stacking may be nonsensical
20:16 colomon indeed
20:17 colomon lizmat++
20:18 lizmat my %a= (a => 1, b => 2, c => 3); my %b= %a<a b> :delete:p; say %a; say %b   # use case for :delete:p
20:18 lizmat rn: my %a= (a => 1, b => 2, c => 3); my %b= %a<a b> :delete:p; say %a; say %b   # use case for :delete:p
20:18 camelia niecza v24-50-gba63d9a: OUTPUT«{"c" => 3}␤{"1" => 2}␤»
20:18 camelia ..rakudo 2a04f2: OUTPUT«("c" => 3).hash␤("1" => 2).hash␤»
20:18 lizmat would have expected {c => 3} {a=>1, b=>2}
20:22 pmichaud_ Can't stay long -- I just added a note to RT #117935
20:22 pmichaud_ (haven't read backscroll either... just read the ticket)
20:22 lizmat pmichaud++ even if it is only for a small time
20:23 pmichaud 19:32 <lizmat> r: say True ?^ True  # shouldn't this be False ?
20:23 pmichaud Yes, that should probably be False.
20:23 pmichaud But
20:24 pmichaud r: say (True ^ True);
20:24 camelia rakudo 2a04f2: OUTPUT«one(True, True)␤»
20:24 pmichaud er
20:24 pmichaud r: say (True ^^ True);
20:24 camelia rakudo 2a04f2: OUTPUT«Nil␤»
20:24 pmichaud That one is correct.
20:24 pmichaud r: say (True xor True)
20:24 camelia rakudo 2a04f2: OUTPUT«Nil␤»
20:24 pmichaud That one is correct too.
20:24 colomon n: say (True ^^ True);
20:24 camelia niecza v24-50-gba63d9a: OUTPUT«Unhandled exception: System.NullReferenceException: Object reference not set to an instance of an object␤  at Niecza.StashCursor.Core (System.String key, Boolean final, Niecza.StashCursor& sc, Niecza.Variable& v, Niecza.Variable bind_to) [0x00000] in <file…
20:25 colomon ugh
20:25 pmichaud oops
20:25 pmichaud Nil is no longer correct, it should now be ()
20:25 pmichaud wait
20:26 pmichaud huh?
20:26 * pmichaud re-reads the now updated spec.
20:28 SamuraiJack joined #perl6
20:28 snuffles joined #perl6
20:28 japhb joined #perl6
20:28 btyler_ joined #perl6
20:28 Chillance joined #perl6
20:28 jferrero joined #perl6
20:28 xilo_ joined #perl6
20:28 prammer_ joined #perl6
20:28 yx joined #perl6
20:28 ilbot6 joined #perl6
20:28 lestrrat joined #perl6
20:28 salv0 joined #perl6
20:28 lue joined #perl6
20:28 Khisanth joined #perl6
20:28 rindolf joined #perl6
20:28 pmichaud okay, spec says that  True ^^ True should return False.
20:28 pmichaud and True xor True should return False
20:29 pmichaud and 1 ^^ 1 should return False
20:29 pmichaud except in mythical list context, these are to magically return () somehow.
20:29 pmichaud so I call fossil.
20:29 masak o.O
20:29 masak what was the original rationale for returning Nil? I forget.
20:30 pmichaud apparently the spec never said Nil, or at least it hasn't said that since 2011
20:30 pmichaud but the rationale would be that Nil acts like False in item context and it acts like () in list context.
20:30 pmichaud which is what the spec says.
20:30 pmichaud (acts like () in list context before the recent changes to the meaning of Nil)
20:31 pmichaud anyway, I call fossil and think we need a spec issue to get it cleared up.  :)
20:32 dalek nqp/rak-jvm-support: 740258f | jnthn++ | src/vm/jvm/ (2 files):
20:32 dalek nqp/rak-jvm-support: Assorted code-gen improvements.
20:32 dalek nqp/rak-jvm-support:
20:32 dalek nqp/rak-jvm-support: With these, we now get a CORE.setting.class generated.
20:32 dalek nqp/rak-jvm-support: review: https://github.com/perl6/nqp/commit/740258fbea
20:32 pmichaud grrrr... RT just sent another 36-hour-old bug report.
20:32 pmichaud jnthn++
20:33 jnthn At first I was a bit shocked it's 9MB. Then I checked how big the PBC is, which weighs in at 16 MB...
20:33 pmichaud oh, and I just got a 48 hour old bug report also.
20:35 nwc10 yay
20:35 masak \o/
20:35 araujo joined #perl6
20:35 araujo joined #perl6
20:38 vaelxon joined #perl6
20:40 jnthn bbi10
20:42 [Coke] r: my $c; my $name; BEGIN { say "1"; $c = { say "OH HAI $name" } }; $name = "masak; $c();
20:42 camelia rakudo 2a04f2: OUTPUT«1â�¤[31m===[0mSORRY![31m===[0mâ�¤Unable to parse expression in double quotes; couldn't find final '"'â�¤at /tmp/vuTcTJgfpt:1â�¤------> [32mOH HAI $name" } }; $name = "masak; $c();[33mâ��[31m<EOL>[0mâ�¤    expecting any of:â�¤        postfixâ�¤        argument listâ�¤Â»â€¦
20:42 dalek v5: 01c9bc7 | (Tobias Leich)++ | lib/Perl5/Actions.nqp:
20:42 dalek v5: make $@ always a string
20:42 dalek v5: review: https://github.com/rakudo-p5/v5/commit/01c9bc710c
20:42 dalek v5: d495a3c | (Tobias Leich)++ | lib/Perl5/Grammar.nqp:
20:42 dalek v5: distingiush between eval BLOCK and eval EXPR
20:42 dalek v5: review: https://github.com/rakudo-p5/v5/commit/d495a3c08b
20:42 dalek v5: 16b80bd | (Tobias Leich)++ | lib/Perl5/Terms.pm:
20:42 dalek v5: proper value for $/
20:42 dalek v5: review: https://github.com/rakudo-p5/v5/commit/16b80bd700
20:43 [Coke] r: my $c; my $name; BEGIN { say "1"; $c = { say "OH HAI $name" } }; $name = "masak"; $c();
20:43 camelia rakudo 2a04f2: OUTPUT«1␤use of uninitialized value of type Any in string context  in block  at /tmp/Gl_wB_rfCf:1␤␤OH HAI ␤»
20:43 [Coke] r: my $c; my $name; BEGIN { say "1"; $c = sub { say "OH HAI $name" } }; $name = "masak"; $c();
20:43 camelia rakudo 2a04f2: OUTPUT«1␤use of uninitialized value of type Any in string context  in sub  at /tmp/nZvStnLTwR:1␤␤OH HAI ␤»
20:44 [Coke] r: my $c = { say "alive"};
20:44 camelia rakudo 2a04f2:  ( no output )
20:44 [Coke] r: my $c = { say "alive"}; $c();
20:44 camelia rakudo 2a04f2: OUTPUT«alive␤»
20:51 xinming joined #perl6
20:52 rindolf joined #perl6
20:54 dalek perl6-examples: 08f6933 | (David Warring)++ | parsers/CSSGrammar.pm:
20:54 dalek perl6-examples: added css grammar comments; tweaked newline handling
20:54 dalek perl6-examples: review: https://github.com/perl6/perl​6-examples/commit/08f6933417
20:54 dalek perl6-examples: 82fa422 | (David Warring)++ | rosalind/ (4 files):
20:54 dalek perl6-examples: Merge branch 'master' of github.com:perl6/perl6-examples
20:54 dalek perl6-examples: review: https://github.com/perl6/perl​6-examples/commit/82fa422d74
20:58 japhb_ joined #perl6
21:00 alester joined #perl6
21:07 rindolf joined #perl6
21:09 leprevost joined #perl6
21:11 lizmat seems like creating a candidate for true values of a named parameter silently doesn't work, is that correct?
21:11 lizmat something like "multi method postcircumfix:<{ }>(\SELF: $key, :$exists! where True )"
21:13 flussence r: say 1 ~~ True
21:13 camelia rakudo 2a04f2: OUTPUT«Potential difficulties:â�¤    Smartmatch against True always matches; if you mean to test the topic for truthiness, use :so or *.so or ?* insteadâ�¤    at /tmp/djMcaWxYio:1â�¤    ------> [32msay 1 ~~[33mâ��[31m True[0mâ�¤1Trueâ�¤Â»
21:13 flussence that might be your problem
21:14 lizmat r: say 0 ~~ True
21:14 camelia rakudo 2a04f2: OUTPUT«Potential difficulties:â�¤    Smartmatch against True always matches; if you mean to test the topic for truthiness, use :so or *.so or ?* insteadâ�¤    at /tmp/y6p9nFOENV:1â�¤    ------> [32msay 0 ~~[33mâ��[31m True[0mâ�¤0Trueâ�¤Â»
21:14 lizmat r: say True ~~ 1
21:14 camelia rakudo 2a04f2: OUTPUT«True␤»
21:14 lizmat r: say True ~~ 0
21:14 camelia rakudo 2a04f2: OUTPUT«False␤»
21:14 lizmat aha… ok
21:17 flussence (I didn't know there was a :so, that looks like it'll come in useful...)
21:23 sorear smartmatching against Pair does a dynamic method call
21:23 sorear foo ~~ :bar tests like foo.bar
21:23 sorear foo ~~ :bar(quux) tests like foo.bar ~~ quux
21:24 flussence sorear++ # *That* is useful to know
21:31 [Coke] r: say 3 ~~ :Rat(23) ; say 3.Rat ~~ 23
21:31 camelia rakudo 2a04f2: OUTPUT«True␤False␤»
21:31 leprevost joined #perl6
21:33 rindolf joined #perl6
21:36 dalek v5: 063bd31 | (Tobias Leich)++ | t/test.pl:
21:36 dalek v5: added stubs for native_to_latin1 and latin1_to_native
21:36 dalek v5: review: https://github.com/rakudo-p5/v5/commit/063bd3121c
21:36 dalek v5: 554f8f3 | (Tobias Leich)++ | lib/Perl5/ (2 files):
21:36 dalek v5: treat "local" like "my"
21:36 dalek v5: review: https://github.com/rakudo-p5/v5/commit/554f8f3962
21:38 lizmat FROGGS: in Perl 5, local is dynamic like temp
21:41 FROGGS err, what do you mean?
21:42 lizmat perl5: our $a="foo"; do { say $a; local $a= "bar"; say $a }; say $a
21:42 lizmat p5eval: our $a="foo"; do { say $a; local $a= "bar"; say $a }; say $a
21:42 p5eval lizmat: foobarfoo1
21:43 FROGGS r: our $a="foo"; do { say $a; my $a= "bar"; say $a }; say $a
21:43 camelia rakudo 2a04f2: OUTPUT«[31m===[0mSORRY![31m===[0m�Lexical symbol '$a' is already bound to an outer symbol;�the implicit outer binding must be rewritten as OUTER::<$a>�before you can unambiguously declare a new '$a' in this scope�at /tmp/e6zyFr8ck_:1�------> [32mour $a="foo"; do { sa…
21:43 FROGGS r: our $a="foo"; do { say $a; temp $a= "bar"; say $a }; say $a
21:43 camelia rakudo 2a04f2: OUTPUT«foo␤bar␤foo␤»
21:43 FROGGS I see
21:43 masak p5eval: our $x = "foo"; sub quux { say $x }; do { say $x; local $x = "bar"; quux }; $x
21:43 p5eval masak: foobarfoo
21:43 lizmat masak++
21:44 masak that shows the dynamic part.
21:44 lizmat indeed
21:44 tadzik wikipedia says: "he has more than 8000 likes on facebook"
21:44 tadzik what the fuck, really. Who cares. What does that even mean.
21:44 lizmat also: local $a without assignment sets $a to undef
21:45 tadzik https://en.wikipedia.org/wiki/Stubbs_(cat)
21:45 FROGGS yeah... # lizmat++, masak++
21:46 lizmat spectesting :exists & :delete fixes
21:47 lizmat will look at it tomorrow and commit tomorrow
21:47 lizmat goodnight #perl6!
21:47 colomon o/
21:48 FROGGS gnight all
21:51 donaldh joined #perl6
21:53 btyler joined #perl6
22:05 kbenson1 joined #perl6
22:05 Ulti_ joined #perl6
22:07 masak 'night, #perl6
22:07 dmol joined #perl6
22:11 sorear joined #perl6
22:11 [bjoern] joined #perl6
22:11 kurahaupo joined #perl6
22:12 itz joined #perl6
22:20 pecastro joined #perl6
22:22 btyler joined #perl6
22:29 skids joined #perl6
22:31 sorear joined #perl6
22:35 sorear joined #perl6
22:39 sorear joined #perl6
22:45 xilo joined #perl6
22:49 Targen joined #perl6
22:51 jaldhar_ joined #perl6
22:58 Vlavv joined #perl6
22:59 gtodd joined #perl6
23:00 woosley joined #perl6
23:01 hugme joined #perl6
23:14 jnthn 'night, #perl6
23:15 lue joined #perl6

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

Perl 6 | Reference Documentation | Rakudo