»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:, or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_logs/perl6 | UTF-8 is our friend!
Set by moritz on 22 December 2015.
00:00 Kyo91 left 00:02 ryn1x left 00:08 Kyo91 joined, mr-foobar left 00:10 mr-foobar joined 00:12 Kyo91 left 00:15 margeas left 00:16 cdg joined 00:19 ryn1x joined 00:20 cdg left 00:26 pochi left 00:28 pochi joined 00:30 Cabanossi left 00:31 Cabanossi joined 00:33 raschipi left 00:38 mr-foobar left, Actualey` left 00:40 troys_ is now known as troys 00:41 mr-foobar joined 00:45 mempko left 00:48 ryn1x left 00:52 llfourn joined 00:56 dj_goku joined, dj_goku left, dj_goku joined 00:57 pochi_ joined 00:58 pochi left, llfourn left, dj_goku_ left
Geth doc: 2222abea69 | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Type/IO/Socket/Async.pod6
Remove useless `use v6.c`

6.d is around the corner and no point in having 6.c there as I can see
01:00
synopsebot Link: doc.perl6.org/type/IO/Socket/Async
01:01 nadim_ left 01:05 bitrauser_ left 01:08 BenGoldberg joined 01:10 aborazmeh joined, aborazmeh left, aborazmeh joined 01:13 pilne joined 01:21 ryn1x joined, kent\n left 01:22 kent\n joined 01:25 ryn1x left 01:27 troys is now known as troys_ 01:28 bwisti left, ryn1x joined 01:30 darkmorph left 01:32 ryn1x left 01:37 raiph left 01:38 mr-foobar left 01:40 mr-foobar joined, llfourn joined 01:43 Cabanossi left 01:46 Actualeyes joined, Cabanossi joined 01:47 ilbot3 left, Actualeyes1 joined 01:55 cdg joined 01:56 cdg left, cdg joined, ilbot3 joined, ChanServ sets mode: +v ilbot3
pilne i wonder if a game that duplicated the graphics level of the original quake could be run in something like perl6 these days given the advancements in hardware.... 01:58
i am trying to consolidate my obsessions >.< lol (: 01:59
02:01 Herby__ joined 02:08 ryn1x joined 02:10 mr-foobar left, napo1eon joined 02:11 mr-foobar joined 02:17 bitrauser_ joined 02:20 espadrine left 02:21 noganex joined, cdg left 02:24 noganex_ left 02:28 Actualeyes left 02:29 Actualeyes joined 02:33 Actualeyes left, Actualeyes joined 02:34 dj_goku left 02:38 Actualeyes left, mr-foobar left 02:39 Actualeyes joined 02:40 ryn1x left 02:42 Actualeyes left 02:43 mr-foobar joined, Actualeyes joined 02:44 Cabanossi left 02:45 Actualeyes left 02:46 Cabanossi joined 02:47 Actualeyes joined, ryn1x joined 02:53 Herby__ left 02:55 ryn1x left 03:05 wander joined, ZofBot left 03:06 ZofBot joined, ChanServ sets mode: +v ZofBot 03:07 ZofBot left, ZofBot joined, ChanServ sets mode: +v ZofBot
wander how about delegation? I found little doc of `delegate` itself, only `handles trait` in dir typesystem, is that all of it? 03:08
docs.perl6.org/language/typesystem...it_handles
03:09 APic left
wander and should we doc delegation in dir object orient? 03:10
03:11 mr-foobar left 03:12 mr-foobar joined 03:15 APic joined, ryn1x joined 03:20 ryn1x left 03:23 wamba joined 03:28 Cabanossi left 03:31 Cabanossi joined 03:32 Cabanossi left 03:33 Cabanossi joined 03:38 sena_kun joined 03:43 Cabanossi left 03:44 Cabanossi joined 03:46 Actualeyes1 left, Actualeyes left 03:47 eliasr left 03:48 bwisti joined 03:49 aborazmeh left
Herby_ I'm learning OO 03:50
How do I implement a Class counter? If I have a class Robot, and I create a bunch of Robot objects, how do I keep track of how many robots I have created? 03:51
03:53 ryn1x joined
ugexe m: class Robot { my @robots; submethod TWEAK(|) { push @robots, self; }; method hive-mind { @robots } }; Robot.new; Robot.new; say Robot.new.hive-mind.perl 03:54
camelia [Robot.new, Robot.new, Robot.new]
Herby_ hmmm 03:55
ugexe note it is a `my`, not a `has` like you might be expecting in a class 03:56
Herby_ i havent seen that submethod TWEAK(|) before 03:58
i'll have to look at that
thanks
ugexe it could be inside a BUILD or new, anything called with the constructor
04:05 sena_kun left, Kyo91 joined 04:09 mr-foobar left 04:10 wander left 04:11 mr-foobar joined 04:12 khw left 04:13 Kyo91 left 04:19 BenGoldberg left 04:22 cdg joined 04:27 cdg left 04:29 wamba left 04:33 ryn1x left 04:34 perllearner89 joined 04:39 perllearner89 left, mr-foobar left 04:43 mr-foobar joined 04:57 ryn1x joined, Cabanossi left 05:00 Cabanossi joined 05:02 Actualeyes joined, ryn1x left 05:03 Actualey` joined 05:04 AlexDaniel` left 05:08 wamba joined 05:10 mr-foobar left 05:12 mr-foobar joined 05:19 telex left, telex joined, troys_ is now known as troys 05:28 Cabanossi left 05:30 Cabanossi joined 05:31 ryn1x joined 05:40 mr-foobar left 05:44 mr-foobar joined, troys left 05:45 AlexDaniel` joined 05:49 AlexDaniel` left, AlexDaniel` joined 05:50 cgfbee left 05:55 SHODAN left 05:59 SHODAN joined 06:02 ryn1x left 06:08 ryn1x joined 06:10 mr-foobar left 06:12 ryn1x left 06:13 mr-foobar joined 06:21 pilne left
moritz .tell raiph thanks, answered 06:25
yoleaux 24 Oct 2017 23:44Z <raiph> moritz: comment for you at stackoverflow.com/questions/468978...1_46920109 thanks
moritz: I'll pass your message to raiph.
06:27 sena_kun joined
sena_kun o/ 06:27
m: .parse-base(16).say for ('A'..'Z'); 06:28
camelia 10
Cannot convert string to number: malformed base-16 number in '3⏏5G' (indicated by ⏏)
in block <unit> at <tmp> line 1

11
12
13
14
15
06:28 Cabanossi left
sena_kun ah. 06:29
I've got it.
06:30 Cabanossi joined 06:32 sena_kun left 06:40 mr-foobar left 06:42 mr-foobar joined 06:54 wamba1 joined, wamba left 06:55 wander joined 06:57 domidumont joined 06:58 wamba1 left 07:01 jc_ joined 07:02 domidumont left 07:03 jonas1 joined
wander surprisingly, just now I read "rakudo" in Japlish way and found it mean 楽土 07:05
07:06 domidumont joined 07:10 wamba joined, Actualey` left 07:11 Actualey` joined 07:15 lowbro joined, lowbro left, lowbro joined 07:16 darutoko joined 07:22 cdg joined 07:23 ryn1x joined 07:25 AlexDaniel` left 07:27 cdg left 07:28 Cabanossi left 07:30 Cabanossi joined 07:33 abraxxa joined 07:35 rindolf joined 07:39 AlexDaniel` joined 07:41 mr-foobar left 07:43 mr-foobar joined 07:44 epony left 07:57 ryn1x left 07:59 wander left 08:00 dakkar joined 08:03 epony joined, JimmyZ joined 08:06 zakharyas joined 08:07 ryn1x joined 08:11 ufobat joined 08:13 zakharyas left 08:14 zakharyas joined 08:27 wikikiwi joined 08:29 wikikiwi is now known as no-n 08:31 eliasr joined 08:36 abraxxa left 08:37 abraxxa joined 08:39 ryn1x left 08:40 mr-foobar left 08:41 mr-foobar joined 08:42 Cabanossi left 08:43 Hotkeys left 08:45 Cabanossi joined, wamba left 08:48 wander joined 08:52 nadim_ joined, ccntrq left
wander m: grammar G { rule TOP { <.ws> <external-define>* }; rule external-define { 'int main' }; }; say G.parse(" int main int main"); 08:53
camelia 「 int main int main」
external-define => 「int main 」
external-define => 「int main」
wander m: grammar G { rule TOP { <external-define>* }; rule external-define { 'int main' }; }; say G.parse(" int main int main");
camelia Nil
08:54 wamba joined
wander why not add <.ws> at the beginning of rules automatically? 08:54
it's what people want it to do, i think 08:55
moritz no
<.ws> terminates LTM
which is why it tends to be a bad idea to parse it at the start
so the common wisdom is to parse whitespace at the end of each rule 08:56
and add a single <.ws> call inside TOP
08:57 ccntrq joined
wander how it terminates LTM? 08:58
moritz the default ws uses ||, which is sequential 08:59
design.perl6.org/S05.html#Longest-...n_matching
timotimo also default ws has a <ww> in it, doesn't it?
no, not ww
a look-around assertion
moritz <!ww> \s* 09:00
and ww uses ||, iirc
wander bbl
09:02 sena_kun joined 09:05 wander left 09:07 zakharyas1 joined, SourceBaby left 09:08 zakharyas left 09:09 SourceBaby joined, ChanServ sets mode: +v SourceBaby 09:11 mr-foobar left 09:12 mr-foobar joined 09:13 virtualsue left 09:14 araujo left
moritz www.reddit.com/r/perl/comments/78l...amed_perl/ has the first naming suggestion for Perl 6 that I kinda like 09:25
"viper", where "vi" is roman for 6, and "per" is 75% of "perl" :-)
09:30 ryn1x joined
lizmat fwiw, I also like it snakiness :-) 09:30
*its
but I also think the ship has sailed, now with so many Perl 6 books out there 09:31
09:34 ryn1x left 09:35 zakharyas1 left 09:36 zakharyas joined
moritz aye, at most something like a nickname for the language 09:40
jast so many nicknames to choose from... 09:41
viperl6lang++
oh, actually I guess that's a mark against the '++', it will create bogus IRC karma :)
09:41 mr-foobar left
moritz hates perl++ as a name 09:42
09:43 mr-foobar joined, Cabanossi left 09:45 ryn1x joined, Cabanossi joined 09:49 wander joined 09:55 wamba left 09:56 pmurias joined 10:05 wamba joined
ilmari can't help but mentally pronounce 6lang as glang 10:14
бlang 10:15
10:17 ryn1x left
jast δlang... close enough 10:19
Ulti moritz: how about Perl# 10:21
>:3
jast that's nice... and search-friendly
I can do one better, though: Perl##
Ulti the framework instead of .net can be another top level domain like .fun 10:24
Perl#.fun
10:25 telex left
AlexDaniel` /o\ 10:25
10:25 telex joined 10:28 Cabanossi left
Ulti what, people wanted something they can sell to their managers that sounds really corporate 10:28
10:28 buggable left
pmurias perl# sounds like a .net backend 10:28
10:29 parvXa joined 10:30 Cabanossi joined 10:31 parvXa left
wander moritz, <.ws> goes puzzling in this case 10:32
gist.github.com/W4anD0eR96/c064633...8b618630f3
if I remove <.ws> here, the sentence will not be matched
it's too strange to me
10:33 Actualey` left, Actualeyes left 10:34 bdmatatu left 10:37 wander left 10:40 mr-foobar left 10:42 wander joined 10:43 mr-foobar joined
wander ok 10:47
my example is not the little exam 10:48
*example
it is wrong, i have another rule | <.ws><identifier> '=' <assignment-expression> before it
10:48 AlexDaniel` left
wander the because the backtrack strategy, it fails 10:49
10:51 ryn1x joined
wander emmmm..I am reorganizing it, problem still be there 10:51
10:51 wander left 10:55 ryn1x left, margeas joined 10:56 sproctor joined 10:58 wander joined 11:02 wander left 11:03 mr-foobar left, aborazmeh joined, aborazmeh left, aborazmeh joined 11:06 zakharyas left 11:15 raschipi joined 11:23 zakharyas joined 11:24 ryn1x joined 11:27 Cabanossi left 11:29 Cabanossi joined 11:35 aborazmeh left 11:39 aborazmeh joined, aborazmeh left, aborazmeh joined 11:42 virtualsue joined 11:56 ryn1x left, AlexDaniel` joined 11:57 zakharyas left 11:59 Cabanossi left, Cabanossi joined 12:02 AlexDaniel` left 12:18 bdmatatu joined 12:28 Cabanossi left 12:30 Cabanossi joined 12:39 HoboWithAShotgun joined 12:41 aborazmeh left 12:44 perlpilot joined
HoboWithAShotgun does Perl 6 support tail-call optimization? 12:44
lizmat not in the traditional sense, afaik 12:45
12:46 wamba left, mson joined 12:47 wamba joined 12:49 piojo_ joined
HoboWithAShotgun m: sub fact($n) { return $n == 1 ?? 1 !! $n * fact( $n - 1 ); }; say fact(1000); 12:49
camelia 40238726007709377354370243392300398571937486421071463254379991042993851239862902059204420848696940480047998861019719605863166687299480855890132382966994459099742450408707375991882362772718873251977950595099527612087497546249704360141827809464649629105…
moritz just don't do that with fib() 12:50
HoboWithAShotgun well, that didn't blow the stack
why not?
m: multi sub fact(1) { 1; }; multi sub fact($n) { return $n * fact( $n - 1 ); }; say fact(10); 12:52
camelia 3628800
HoboWithAShotgun i love this language :)
12:53 ChoHag left
jast probably because fib can't be tail call optimized :) 12:55
12:55 zakharyas joined
jast at least not easily. a Sufficiently Smart Compiler (tm) can, of course, add memoization 12:55
but then you don't really need TCO anymore 12:56
HoboWithAShotgun adds the WP page for Memoization to the "to read, some day" list 12:58
12:58 Cabanossi left 12:59 anosh left
raschipi there's "is memoized" and there's also "is pure". 12:59
13:00 cdg joined, Cabanossi joined
raschipi is pure memoizes but at compile time 13:00
13:02 ryn1x joined 13:04 anosh joined, cdg left
moritz no 13:06
raschipi what does it do, then?
moritz it gives the optimizer a hint that it's allowed to compile-time-evaluate it if the arguments are known at compile time too
raschipi right
13:06 cdg joined
raschipi thanks 13:07
moritz but there is no hard promise that an "is pure" will always inline, or that indeed that is the only semantics attached to it
HoboWithAShotgun i just benchmarked the fact function above with compile time known arguments with and without pure 13:09
no difference
13:12 zakharyas left, zakharyas joined 13:14 bdmatatu left
[Coke] there isn't a memoized in p6, I don't think. (just cached) 13:22
HoboWithAShotgun ok so apparently is cached and recursion don't like each other. hastebin.com/gemeviqiba.pl 13:23
also, in that code, when i replace cached by pure, the pure version is reproducably 30% slower
perlpilot that makes some sense at least. You've lied to the compiler and in believing you, it does extra work :) 13:25
HoboWithAShotgun why lie? the sub has no side effects so it is "pure" 13:26
13:27 Cabanossi left
HoboWithAShotgun oh, "always produce the same output" not "always produce the same output (per given input" 13:27
raschipi no, it's for the same input, but the input has to be known at compile time 13:28
13:30 Cabanossi joined
HoboWithAShotgun mmh, so an iterative solution should be faster here, because then the compiler could see the 20 and optimize, rather than recurse down to 2 13:31
13:33 grumble left 13:34 aborazmeh joined, aborazmeh left, aborazmeh joined 13:35 grumble joined
perlpilot HoboWithAShotgun: "is cached" is almost specifically for recursion. I think it's that "is cached" and multi subs don't get along. 13:36
13:36 ryn1x left 13:38 bdmatatu joined 13:40 bdmatatu left
HoboWithAShotgun yes, iterative fibonacci with pure works, 10000 iterations without 2 seconds and with 0.0002 seconds. but that's not quite zero :) 13:42
13:46 darkmorph joined
HoboWithAShotgun perlpilot: indeed, i replaced the multi with a regular one and now :cached works as expected 13:47
13:48 ryn1x joined
perlpilot Maybe we should throw a NYI error like we do for methods, but I don't know off the top of my head how to determine if a routine is a multi or not. 13:50
(Or maybe, if someone is looking for something to do, they could actually implement these things so that they are no longer NYI :-) 13:51
gfldex .candidates > 1
perlpilot gfldex: oh, of course
13:52 ryn1x left
perlpilot for some reason that word just wasn't coming to my brain. 13:52
gfldex maybe you suffered a traumatic election :-> 13:53
perlpilot heh
nah, I need to focus on work and get some stuff done rather than divide my brain amongst all of the random ways we have to distract ourselves. 13:54
HoboWithAShotgun what do you think is currently missed most in the ecosytem? name your top 3 please :)
perlpilot See? HoboWithAShotgun just teases my brain a little more :) 13:55
HoboWithAShotgun: there's a most-wanted list somewhere. Are you intending to update it?
HoboWithAShotgun more like taking one point off
it 13:56
13:56 piojo_ left 13:58 wamba left
raschipi My top three are three additional unicode operators. 13:59
13:59 Cabanossi left 14:00 Cabanossi joined, virtualsue left
HoboWithAShotgun perlpilot: when a server reboots and nobody is around, does the speaker beep? 14:01
yeah well, what operators?
raschipi take your pick: en.wikipedia.org/wiki/APL_syntax_and_symbols 14:03
DrForr Oh good god, please don't mention that again :)
14:05 AlexDaniel` joined
jdv79 wow, the async bug eludes all that have tried. crazy. 14:05
14:05 mempko joined 14:06 khw joined
raschipi Is it really crazy? I think it's the typical experience with async... 14:07
jdv79 i guess considering the subject its less crazy 14:08
it is really cool when it works though 14:09
14:10 ChoHag joined
AlexDaniel` vanilla-js.com/ 14:10
HoboWithAShotgun i think if you really want to be able to write X←4 5⍴⍳20, the solution would better be a mini language than shoehoring that many operators into Perl itself
raschipi HoboWithAShotgun: Sure, I said that in jest. 14:11
jdv79 im not a fan of that name - its pretty confusing
HoboWithAShotgun jest? 14:14
14:14 aborazmeh left
eater samcv: you needed me? 14:15
jast HoboWithAShotgun: =~= not serious 14:18
raschipi jest, not jast 14:19
HoboWithAShotgun no, i mean , what's "jest"? 14:22
14:23 ryn1x joined
huf joke 14:24
mspo what a jester does
huf it was jest a just, bro
jast I guess my explanation was too golfed 14:25
14:27 ryn1x left
HoboWithAShotgun I think I'll go for implementing Lisp::Format from the most wanted list 14:28
DrForr *cough*
HoboWithAShotgun Looks like a good opportunity to get my hands wet with grammars 14:29
DrForr github.com/drforr/perl6-Format-Lisp
Not trying to dissuade you though.
HoboWithAShotgun lol. no biggie. then someone *cough* should take that off the list 14:30
DrForr Heh.
pmurias AlexDaniel`: that page really seems old looking at the frameworks they are comparing vanilla js too 14:31
HoboWithAShotgun i see you used a grammar as well 14:32
DrForr Yep. I haven't looked at error recovery. 14:36
14:42 Cabanossi left 14:45 Cabanossi joined 14:51 ShalokShalom joined 14:54 callyalater joined 14:56 ryn1x joined, mson left 14:58 Actualeyes joined
jdv79 there's no bytes method on Str? 15:01
[Coke] which bytes would you expect? 15:02
sena_kun .encode('utf-8') you want 15:03
jdv79 the bytes it currently has
i want the real size
ok 15:04
raschipi doesn't make sense to talk about bytes without specifying the encoding. 15:05
[Coke] .NFC, .NFD might also be of interest.
jdv79 yeah, just utf8
ilmari jdv79: it can be represented internally in several different forms, which you don't care about
[Coke] m: say "ü".NFC ; say "ü".NFD
camelia NFC:0x<00fc>
NFD:0x<0075 0308>
15:06 abraxxa left
jdv79 thanks 15:09
15:11 troys joined 15:20 lowbro left, aindilis left
raschipi m: say "ü".NFC.encode('utf-8').bytes ; say "ü".NFD.encode('utf-8').bytes 15:22
camelia No such method 'encode' for invocant of type 'NFC'
in block <unit> at <tmp> line 1
raschipi Is this NIY or is there a problem with encoding one specific normalization? 15:23
Geth doc: 7ojo++ created pull request #1628:
Fixed server and client examples for IO::Socket::Async
15:25
[Coke] if you just want the # of bytes, you can use "elems" on the Uni (NFC, NFD), I think. 15:28
m: say "ü".NFD.elems
camelia 2
[Coke] you could also make a Buf out of that list of bytes.
ilmari m: say "ü".encode('utf-8').bytes 15:29
camelia 2
15:29 piojo_ joined, ryn1x left, llfourn left
ilmari NFD is a list of codepoints, not bytes in any encoding 15:29
m: say my $ø = "ø\c[COMBINING DIAERESIS]"; say $ø.encode('utf-8').bytes; say $ø.NFD.elems 15:30
camelia ø̈
4
2
[Coke] ah, right, sorry. 15:31
ilmari but yes, they should have .encode methods too 15:32
15:35 jc_ left 15:36 domidumont left 15:44 HoboWithAShotgun left 15:50 Actualeyes left 15:51 ShalokShalom left, Actualeyes joined
raschipi thanks 16:03
16:04 lowin joined, HaraldJoerg joined 16:08 Kyo91 joined, HoboWithAShotgun joined 16:11 ryn1x joined 16:27 ilogger2 joined, ChanServ sets mode: +v ilogger2 16:30 ivans joined, Cabanossi joined 16:36 buggable joined, ChanServ sets mode: +v buggable 16:39 khw joined
Geth doc: 99407a4c94 | (Will "Coke" Coleda)++ | htmlify.p6
Remove commented out code, stale comments
16:53
doc: bedf84ac6b | (Will "Coke" Coleda)++ | htmlify.p6
Remove old TODO comment that has ticket.
doc: c46c96b77b | (Will "Coke" Coleda)++ | htmlify.p6
Remove no-proc-async option
16:57 xinming_ joined 17:07 domidumont joined
Geth doc: 2c3f82f65b | (Will "Coke" Coleda)++ | type-graph.txt
Correct X::Temporal type graph
17:15
17:22 CacoS joined 17:26 Kyo91_ joined, llfourn joined 17:30 setty1 joined 17:31 llfourn left 17:34 bwisti joined
Geth doc/W4anD0eR96-patch-1: 0eaa8a8e2f | (Alex Chen)++ (committed using GitHub Web editor) | doc/Type/BagHash.pod6
Improve BagHash.new examples(Close #1629)

  #1629
17:39
doc: W4anD0eR96++ created pull request #1630:
Improve BagHash.new examples(Close #1629)
17:40
17:47 itaipu joined 17:59 CacoS left 18:03 HoboWithAShotgun joined 18:05 travis-ci joined
travis-ci Doc build passed. Alex Chen 'Improve BagHash.new examples(Close #1629) 18:05
travis-ci.org/perl6/doc/builds/292738013 github.com/perl6/doc/commit/0eaa8a8e2f99
18:05 travis-ci left
Geth doc: 5ed8953017 | (Alex Chen)++ (committed by Zoffix Znet) | doc/Type/BagHash.pod6
Improve BagHash.new examples(Close #1629) (#1630)

  #1629
18:06
synopsebot Link: doc.perl6.org/type/BagHash
18:22 domidumont left 18:25 ChoHag joined 18:27 aindilis joined 18:29 Rawriful joined 18:33 HoboWithAShotgun left 18:41 cdg joined 18:44 xinming_ left 18:46 cdg left 18:49 xinming joined 18:59 HoboWithAShotgun joined
Geth doc: 7679a0cef1 | (Jarkko Haapalainen)++ (committed by Zoffix Znet) | doc/Type/IO/Socket/Async.pod6
Fixed server and client examples for IO::Socket::Async (#1628)

  * IO::Socket::Async server example using heredoc
and maybe more clearer for newcomers
  * IO::Socket::Async client example tweaks
Couple of tweaks:
  - There are issues with libuv when it defaults ipv6 when using localhost name. We can workaround that just using 127.0.0.1 instead of localhost name.
  - Added newline for print
19:04
synopsebot Link: doc.perl6.org/type/IO/Socket/Async
19:05 Kyo91_ left 19:25 evalable6 joined 19:26 llfourn joined 19:29 xinming left 19:31 llfourn left 19:32 mr-foobar joined 19:34 xinming joined 19:36 Kyo91_ joined 19:37 Piotr_ joined 19:40 itaipu left 19:44 cdg joined 19:45 cdg left, cdg joined
Geth ecosystem: erickjordan++ created pull request #377:
Update META.list
19:54
HoboWithAShotgun mmh. there's no xml sax parser? 19:55
Geth ecosystem: 6a412635af | erickjordan++ (committed using GitHub Web editor) | META.list
Update META.list
19:56
ecosystem: 5d322c3de5 | (Patrick Spek)++ (committed using GitHub Web editor) | META.list
Merge pull request #377 from erickjordan/patch-1

Update META.list
20:06 okl joined 20:08 okl left 20:28 evalable6 left 20:29 evalable6 joined, ChanServ sets mode: +v evalable6, raschipi joined 20:50 raschipi left 20:54 xxpor joined
AlexDaniel` m: say <a b c>[1 xx 2] with 1 20:57
camelia (b b)
AlexDaniel` m: say <a b c>[$_ xx 2] with 1
camelia Use of Nil in string context
in block at <tmp> line 1
Unable to call postcircumfix [ (Any) ] with a type object
Indexing requires a defined object
in block <unit> at <tmp> line 1
AlexDaniel` how come $_ is Nil?
geekosaur what would be setting it there? 20:58
20:59 Piotr_ left, cdg left
geekosaur * would be non-Nil, $_ should be whatever it was originally 20:59
m: dd $_
camelia Any $_ = Any
geekosaur oh, hm
so there is a question there. leak?
20:59 cdg joined
gfldex m: say <a b c>[Any] 21:00
camelia Use of Nil in string context
in block <unit> at <tmp> line 1
Unable to call postcircumfix [ (Any) ] with a type object
Indexing requires a defined object
in block <unit> at <tmp> line 1
geekosaur ok, that's not even talking abotu $_ then, and $_ is indeed Any
so it's an internals leak of some kind
gfldex not really
any non initialised container in a Positional defaults to Nil 21:01
AlexDaniel` oh, it's talking about string context. This makes no sense then, yeah 21:02
I was thinking about this 21:03
m: <a b c>[“$_” xx 2] with 1
camelia Use of uninitialized value $_ of type Any in string context.
Methods .^name, .perl, .gist, or .say can be used to stringify it to something meaningful.
in code at <tmp> line 1
Use of uninitialized value $_ of type Any in string context.
Met…
perlpilot m: my $x is default(42); say <a b c>[$x]; # gfldex I didn't init that container! ;-)
camelia Nil
AlexDaniel` so $_ is indeed unitialized, but without stringification it blows differently 21:04
is it a null object then or something?
m: my ($x, [$y]) = 24, [40, 50, 60]; say <a b c>[$y] 21:06
camelia Cannot resolve caller postcircumfix:<[ ]>(List, Mu); none of these signatures match:
(\SELF, Any:U $type, |c is raw)
(\SELF, int $pos)
(\SELF, int $pos, Mu \assignee)
(\SELF, int $pos, Mu :$BIND! is raw)
(\SELF, int $pos,…
AlexDaniel` shrugs
21:10 ChoHag left
AlexDaniel` www.google.com/search?q="unititialized" 21:15
my favorite is from “The Art of Software Security Assessment: Identifying and Preventing Software Vulnerabilities” 21:17
so identifying and preventing software vulnerabilities but forgetting to turn the spell checker on?
21:18 setty1 left 21:20 niceperl joined
AlexDaniel` but yeah, I guess making that mistake in a ticket title is not as bad as having it in a book :) www.google.com/search?q=%22unititi...mp;tbm=bks 21:23
anyway, ticket for the issue mentioned above: GH#1212 21:24
synopsebot GH#1212 [open]: github.com/rakudo/rakudo/issues/1212 Unitialized $_ and weird blowage (<a b c>[$_ xx 2] with 1)
AlexDaniel` wait but… it's wrong
geekosaur wrong misspelling :p
AlexDaniel` GH#1212
synopsebot: aw come on! I fixed it! Show the right version! 21:25
geekosaur synopsebot wont repeat quickly any more
it knows it just showed it
AlexDaniel` I know. Anyway, the last one seems to be much more popular in books!
21:28 llfourn joined 21:31 itaipu joined 21:33 llfourn left 21:42 ChoHag joined 21:44 itaipu left 21:55 HoboWithAShotgun left 21:58 Cabanossi left 22:00 Cabanossi joined 22:04 HoboWithAShotgun joined 22:27 niceperl left 22:40 cdg_ joined 22:43 Cabanossi left, cdg left 22:45 cdg_ left, Cabanossi joined 23:05 evalable6 left, evalable6 joined 23:12 giraffe joined 23:13 giraffe is now known as Guest20101
Herby_ \o 23:22
23:29 Cabanossi left 23:30 Cabanossi joined, llfourn joined 23:34 Rawriful left 23:35 llfourn left
moritz o/ 23:37
23:42 epony joined 23:56 ryn1x joined 23:57 epony left 23:58 epony joined, Kyo91_ left