»ö« 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 TimToady left 00:01 mcmillhj left, nadim left 00:02 TimToady joined, cpage_ left 00:09 wander joined 00:11 cdg_ left 00:12 Juerd left, cdg joined 00:13 Juerd joined, ryn1x joined 00:22 ryn1x left 00:25 troys_ is now known as troys 00:28 dugword joined 00:29 ryn1x joined 00:33 dugword left 00:37 lookatme joined 00:46 ryn1x left 00:47 mcmillhj joined 00:48 raiph left 00:54 wander left 00:56 sena_kun left 00:58 raiph joined 00:59 ryn1x joined 01:02 kitsunenokenja joined 01:07 cpage_ joined 01:08 aborazmeh joined, aborazmeh left, aborazmeh joined, ryn1x left 01:10 MasterDuke_ is now known as MasterDuke, ryn1x joined
comborico1611 I'm back. Good supper. Homemade hamburgers. 01:15
ivans sounds nice
what did you put in them?
comborico1611 They are so easy and fast to make, as well.
Salt and pepper, onions, ketchup. 01:16
My brother actually puts ingredients IN the meat. Wortstershire, i forgot the rest. 01:17
ivans it's weird how homemeade food tastes so good
even if it's the simplest thing in the world
lookatme China hamburgers :) 01:18
comborico1611 For some foods homemade is amazing. For others, not as good as professional. I'm thinking steak here.
ivans for sure, there's a place for professionals
one of the best meals I ever had was a nice big steak in canada 01:19
I've noticed some active people on projecteuler.net using Perl 6, is anyone of them on this channel? :) 01:20
the solutions I've seen on the forums is a big reason I'm interested in Perl 6 again
looks like a proper useful language now
comborico1611 Not me. I'm not that into math. 01:21
What about China hamburgers?
ivans I have no clue what that would be 01:22
TIL
MasterDuke heh. i was working on a projecteuler.net problem in Perl 6 and it wasn't running fast enough. i started looking into the rakudo compiler and ended up contributing to Rakudo, NQP, and MoarVM
01:22 troys is now known as troys_
MasterDuke but still haven't solved that problem 01:22
timotimo i imagine china hamburgers are really hard to chew and also cut up your mouth from the inside when you try to eat them
comborico1611 Heh
ivans MasterDuke: :D
I really like chinese food in general 01:23
comborico1611 I need to go back a self-study mathematics.
ivans had some just the day before
comborico1611 American Chinese food is the best. 01:24
ivans comborico1611: I'm studying (re-learning) math on my own right now
lookatme If you interesting in china food, I recommend you watch video of "The food ranger" on the Youtube
comborico1611 What branch are you in now?
ivans "mathematics and its history" is a very nice book to get an overview of different areas
comborico1611 Lookatme, ty I'll check it now. 01:25
ivans I skimmed through it once, now I'm reading it again carefully
comborico1611 Hmm. I love history, so that sounds great.
ivans it's a really nice splend of history and actual math
I think it'll take me a year to finish this careful second reading 01:26
comborico1611 I bought a math book that sounds similar. It is a classic. Can't remember the name. Not sure why i didn't finish it.
ivans I've started 50 math books for every one I've finished 01:27
01:27 ryn1x_ left
ivans so nowadays when I pick up a new one, I'll plan to read it twice 01:27
comborico1611 I believe it. For me, Math is a subject that has to have a talented teacher, or i don't understand. 01:28
ivans first time I'll skip everything that's too complicated and just skim
comborico1611 That is a wise strategy.
ivans and if I liked the 1% I understood, I'll go over it again
incidentally, I re-read "How to read a book" this year
comborico1611 Hmm.
01:29 margeas left
comborico1611 I never thought to study such a subject. Makes really good sense to, now that i think about it. 01:29
lookatme Also I heard there is a snack bar under the Empire State Building in NewYork sold China hamburgers from ShanXi (China city).
comborico1611 Heh. 01:30
ivans if I ever visit the US, I'll check it out :
:D
the images I got from google look tasty
just like most asian food
lookatme Yeah, if you want try Chinese food, welcome to China :) 01:31
comborico1611 Asian food is the best in the world. Then, Mexican.
timotimo the best pizza i had in recent memory was from a chinese restaurant (for delivery) 01:32
comborico1611 😆
MasterDuke heh. the best neapolitan pizza i ever had was in tallin, estonia. better than the place in naples, italy where the pizza was invented 01:33
01:34 ryn1x left
comborico1611 Man, you get around. 01:34
01:34 ryn1x joined
MasterDuke every once in a while, i do like to travel when i get the opportunity 01:35
01:35 dugword joined
comborico1611 I like cracker-thin pizza OR new York style. 01:35
MasterDuke chicago-style is actually my favorite. i was just in nyc, but i don't really like their pizza 01:36
ivans I've been travelling for quite a few years now
nothing's better than local asian food
MasterDuke i've never been to that part of asia, but would love to get there sometime 01:38
01:38 kalkin-- joined
comborico1611 I must be in the mood for Chicago (deep dish) pizza. 01:38
ivans I've managed to find surprisingly good pizza everywhere in south-east asia I've been 01:39
even my Italian friend had no complaints, and that's saying a lot
comborico1611 lol 01:40
ivans there are so many expats that decide to buy a restaurant and show how it's really done
comborico1611 Interesting. 01:41
01:42 kalkin--- left 01:45 cdg_ joined 01:47 ryn1x left
comborico1611 Getting sleepy. 01:49
lookatme good night
comborico1611 Goodnight, guys!
01:49 cdg left, comborico1611 left 01:53 ryn1x joined 01:56 cdg joined 01:57 ryn1x left 01:59 cdg_ left 02:00 cdg left 02:07 ufobat_ left 02:08 eliasr left 02:11 pilne left 02:14 mempko left 02:16 ryn1x joined 02:19 char_var[buffer] left 02:21 ryn1x left 02:27 ryn1x joined 02:31 mcmillhj left 02:32 ryn1x left 02:34 cdg joined 02:36 char_var[buffer] joined 02:39 cdg left 02:40 char_var[buffer] left, char_var[buffer] joined 02:44 astj_ joined 02:45 ilbot3 left 02:56 ilbot3 joined, ChanServ sets mode: +v ilbot3 02:59 Morfent joined 03:01 piojo joined 03:10 Khisanth left 03:11 Aceeri left, Aceeri_ is now known as Aceeri 03:12 Khisanth joined 03:13 ivans_ joined, noganex_ joined 03:14 ivans left 03:16 noganex left 03:21 ufobat joined 03:28 mcmillhj joined 03:32 mcmillhj left 03:34 ryn1x joined 03:37 Cabanossi left 03:39 Cabanossi joined 03:41 kitsunenokenja left 03:43 mson left 03:44 mr-foobar joined, ryn1x left 04:01 Mrofnet joined 04:03 llfourn left 04:04 Morfent left, llfourn joined 04:05 ryn1x joined 04:06 astj_ left, astj joined 04:08 Cabanossi left 04:09 Cabanossi joined, ryn1x left 04:11 astj left 04:12 HoboWithAShotgun left 04:21 dj_goku_ left 04:24 wamba joined 04:31 wander joined
wander m: say "42" ~~ m:g/\d/ 04:31
camelia (「4」 「2」)
wander m: say "42" ~~ rx:g/\d/
camelia 5===SORRY!5=== Error while compiling <tmp>
Adverb g not allowed on rx
at <tmp>:1
------> 3say "42" ~~ rx:g/\d/7⏏5<EOL>
wander m: say "42" ~~ rx:i/\d/
camelia 「4」
wander m: say "42" ~~ /:g \d/
camelia 5===SORRY!5=== Error while compiling <tmp>
Unrecognized regex modifier :g
at <tmp>:1
------> 3say "42" ~~ /:7⏏5g \d/
expecting any of:
term
wander m: say "42" ~~ /:i \d/
camelia 「4」
wander raiph moritz: ^^ 04:32
is it normal?
relevant perl6/doc#1675 04:33
synopsebot DOC#1675 [open]: github.com/perl6/doc/issues/1675 Difference between //, m//, and rx// in regex
04:35 ryn1x joined 04:42 wander left 04:46 ryn1x left 04:47 wander joined 04:50 Cabanossi left 04:53 Cabanossi joined 04:55 mniip joined
raiph wander: yes. some adverbs apply *inside* the *declarations* of regexes, others apply to *matches* see docs.perl6.org/language/regexes#Ma...ng_adverbs 04:55
wander how about the difference between 'rx:g' and 'm:g' 04:58
05:02 astj joined 05:03 dj_goku joined
raiph m is a match operation that can take match adverbs; it just happens to include a regex declaration in its syntax 05:03
rx is a regex declaration that can't take match adverbs; it just happens to sometimes be immediately run if in sink context or rhs of ~~ 05:04
wander: ^^ 05:05
wander i got it
05:07 llfourn left, troys_ is now known as troys 05:08 ryn1x joined 05:16 Actualeyes joined 05:19 ryn1x left
piojo Is there any way to do a parallel "for" loop? This doesn't work: for @objects.race { } 05:20
I've been using .race.map (conceptually this is a mismatch), or for @objects { start { ... } } (this is slower)
geekosaur you may be looking for hyperoperators? 05:21
05:21 Cabanossi left
piojo geekosaur: don't those only work with functions/operators? 05:21
I couldn't get hyper operators to work with a block, but perhaps my syntax was just wrong 05:22
05:22 Cabanossi joined
geekosaur I'm not sure if you need to define your own operator to make the syntax work. think there's some evil abuse of [] ? 05:26
05:28 cdg joined
piojo geekosaur: abusing `map` (using it in sink context) is less evil than abusing operators. Unless there's something I just missed in the docs, like @a».{ ... } 05:29
05:33 cdg left
piojo is there a method which invokes a block, like a method version of `given`? 05:33
this definitely doesn't work: <a b c>».given( -> $obj { logic here }) 05:34
geekosaur actually, I think you just want the example for race. map and for are not so different 05:37
05:38 ryn1x joined, mempko joined
geekosaur in fact, in the perl 5 community there's a thing about people using map instead of for, which is wasteful because it builds a result list only to throw it away 05:39
05:39 wamba left
geekosaur but iirc in perl 6 for builds the result list anyway, so not even that difference 05:39
piojo geekosaur: but in perl6 it's faster to use .race.map than to call 'await do for { start { } }'
oh, I didn't realize calling map wasn't wasteful
05:42 ryn1x left 05:46 napo1eon joined
piojo still, this is such awkward syntax, there should be a better way. I think I'll ask on SO 05:57
IMO, calling map in a sink context should give a warning, since it's likely that `@foo.map` should be `@bar = @foo.map` 05:58
but it's still the fastest way to do concurrent iteration with a block 05:59
geekosaur yeh. it's actually worse than that, we tend to rely on stuff in sink context doing something (at least wrning) but a list or hash that is sunk silently vanishes
which includes, say, Failure-s embedded in the list/hash 06:00
so they never throw
06:02 raiph left 06:05 khw left 06:07 Cabanossi left 06:08 Cabanossi joined 06:10 ryn1x joined 06:15 ryn1x left 06:20 aborazmeh left 06:21 lowbro joined, lowbro left, lowbro joined 06:30 troys left, wamba joined
piojo geekosaur: oh, that is quite bad 06:32
geekosaur the flip side is you don't want to wait for everything in a 1000000 element list to be sunk 06:33
which makes me wonder if things like for need to be aware of their context and propagate it to the block 06:34
but that probably has its own problems
piojo Also, I notice "await do for @foo { start { ... } }" also does not print failures
so that makes the "map" case less problematic, if the competition exhibits the same symptom 06:35
06:36 dugword left 06:40 ch3ck3r joined, ch3ck3r left 06:43 napo1eon left, ilbot3 left, cgfbee left 06:45 domidumont joined 06:47 ilbot3 joined, ChanServ sets mode: +v ilbot3 06:48 cgfbee joined 06:51 ch3ck3r joined, domidumont left, domidumont joined 06:54 wamba left 06:55 wander left 06:59 ch3ck3r left 07:02 wamba joined
piojo I just posted it: stackoverflow.com/questions/473013...-in-perl-6 07:09
07:19 ryn1x joined 07:20 darutoko joined 07:23 mempko left, wander joined, ryn1x left 07:36 sena_kun joined 07:41 domidumont left 07:42 nadim joined 07:43 rindolf joined
lookatme On my PC(opensuse 23), race is slow than normal iteration 07:44
The for loop took about 3.20s, and the race is 9.80s 07:47
And hyper took 9.70s
07:50 ryn1x joined 07:54 espadrine left, ryn1x left 07:55 wamba left
moritz for such a fast inner loop, you need a really large batch size to make it any faster 07:55
07:57 lizmat left 07:59 lizmat joined, cpage_ left 08:01 konsolebox left 08:02 konsolebox joined 08:03 parv joined, jonas1 joined
lookatme IDK, I set batch to 100000, it still took 6.0s :( 08:11
wander do we have Class like bitset? 08:12
or say bitmap
moritz this was with rakudo 2017.10-132-g1c38715
08:12 Mrofnet left
lookatme Here is This is Rakudo version 2017.10 built on MoarVM version 2017.10 08:13
piojo lookatme: the actual example is searching a file: $path.IO.slurp.contains($str) 08:14
It's a little slower, and it shows the difference between .race.map and await do for { start { } }, though they're both much faster than normal loop 08:15
lookatme I haven't seen bitmap in docs
TEttinger wander: what's the purpose you have in mind? I wonder if binding Roaring would make sense if you want compressed bitsets 08:16
Roaring is interesting among all the bitset libs out there because it has a not-super-tiny amount of overhead per bitset, but can compress large bitsets much better 08:17
lookatme Unfortunately, the for + start is the slowest in my pc, it took 45s 08:18
TEttinger EWAH, which is used in some form by Git, has much less overhead per bitset but less compression. I have some crazy code that uses a simpler version of EWAH's RLE-type encoding, but uses it for 2D data and can generally compress spatially nearby areas into one 16-bit "all on" section, and keep most of the rest in one or a few "all off" sections 08:19
08:24 domidumont joined
piojo @moritz, I don't think hyper even works right on my computer. it's much too fast, and I don't think the block even gets executed 08:25
wander I need a bitset to hold a state vector
piojo I assumed it was just an experimental API, but perhaps it's a windows problem
08:29 lowbro left 08:34 cpage_ joined, sena_kun left
wander it acts like my Bool @a[n] 08:35
but more efficient
or out fix-size Bool Array can be efficient
some actions I want to support like `and` -> @a Z(||) @b 08:37
hey, why not use a Int and by calling (+|) 08:38
08:38 Morfent joined
wander m: my Int $a = 0; $a +| (1 +< 25); say $a +^ (1 +< 1) 08:39
camelia WARNINGS for <tmp>:
2
Useless use of "+|" in expression "$a +| (1 +< 25)" in sink context (line 1)
wander my Int $a = 0; $a +|= (1 +< 25); say $a +^ (1 +< 1) 08:40
m: my Int $a = 0; $a +|= (1 +< 25); say $a +^ (1 +< 1)
camelia 33554434
wander I can try it
m: my Int $a = 0; $a +|= +^(1 +< 1000); say $a +^ (1 +< 1) 08:41
camelia -1071508607186267320948425049060001810561404811705533607443750388370351051124936122493198378815695858127594672917553146825187145285692314043598457757469857480393456777482423098542107460506237114187795418215304647498358194126739876755916554394607706291…
08:43 Aaronepower joined
wander bad on +^, when +^(1000)_2, I want (0111)_2, seems not 08:45
lookatme piojo, which rakudo version are you running ?
wander m: my Int $a = 8; say +^$a;
camelia -9
piojo lookatme: 2017.09-355-g27131ed8d
08:45 eliasr joined
piojo I should upgrade, I didn't realize I wasn't on the October release 08:45
lookatme yeah, 08:46
piojo m: <a b c>.race.map: { .say if $_ eq 'a' }
camelia a
lookatme I faced same problem when using .09 version
piojo ^^ That doesn't work on my version. I'll try upgrading
lookatme It works on my pc 08:47
wander ok I can build a mask full of 1 at first 08:48
piojo Oh, it only fails in the REPL
But I've had strange results from "hyper" ever since I discovered what it was. Still, I need to upgrade.
lookatme m: my Int $a = 0; $a +|= (1 +< 1000); say $a.base(2) 08:51
camelia 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000…
08:57 zakharyas joined 09:01 ryn1x joined
piojo Okay, hyper does work fine in the current master branch :) 09:05
lookatme: thanks for the hint
09:06 Cabanossi left, ryn1x left 09:08 Cabanossi joined 09:09 AlexDaniel left, wander left, cpage joined 09:11 zakharyas left 09:12 zakharyas joined 09:13 dakkar joined
piojo The issue I complained about with IO.path.slurp not being threadsafe is even fixed! 09:17
You guys fixed all the things!
(gals and guys, I should probably say, considering who has been making the fixes :) 09:18
09:18 pat_js joined 09:19 rindolf left 09:26 [particle] left, scimon joined 09:30 [particle] joined
AlexDaniel` lookatme: what's the code that doesn't perform faster with race? 09:30
09:34 [particle] left, [particle]1 joined
piojo AlexDaniel`: I believe it was (^500000).race.map: -> $i { my $result = ($i ** 2).Str; } 09:38
Hey, if I filed a rakudobug by e-mail and want to close it, can I register on rt.perl.org with the same e-mail account and close my bug? 09:39
09:39 Actualeyes left 09:40 ryn1x joined 09:44 cdg joined 09:45 ryn1x left 09:49 cdg left
moritz not automatically 09:58
somebody has to give you permissions to close RT tickets
though if it's just a one-time thing, I can do that too
what's the ticket in question?
and why do you want to close it? 09:59
piojo moritz: I would be grateful if you could close this for me: rt.perl.org/Public/Bug/Display.html?id=132447 10:00
moritz correction: I can't right now, because RT doesn't let me log in :(
piojo because the bug I made such a careful testcase for is no longer happening with the newest build.
moritz then we should still have a test before we close the issue 10:01
just send a mail that the problem is fixed on newest rakudo
piojo oh, I need to reply to the auto-send, don't I?
moritz: I think this one would be hard to test for. My test case needs to be run repeatedly in a bash loop until it fails 10:02
In fact, I can't guarantee it was fixed. All I can say is that I can't reproduce on the a fresh build of the master branch.
10:03 eroux joined 10:05 wamba joined
moritz yes, reply to the autoresponder should work 10:05
10:05 Aaronepower left 10:11 wamba left 10:12 astj left 10:14 AlexDaniel joined 10:16 astj joined 10:17 wamba joined 10:19 astj left 10:20 astj joined 10:21 astj left, astj joined 10:25 robertle joined
piojo moritz: thanks, I'm gonna run one more test on my home computer, then hopefully report it's been fixed:) 10:27
10:35 astj left 10:36 astj joined
AlexDaniel c: HEAD (^500000).race(:125000batch, :4degree).map: -> $i { my $result = ($i ** 2).Str; } 10:38
committable6 AlexDaniel, ¦HEAD(fff43fd): «»
AlexDaniel c: HEAD (^500000).race(:125000batch, :4degree).map: -> $i { my $result = ($i ** 2).Str; }; say now - BEGIN now
committable6 AlexDaniel, ¦HEAD(fff43fd): «1.4407807»
AlexDaniel c: HEAD (^500000).map: -> $i { my $result = ($i ** 2).Str; }; say now - BEGIN now
committable6 AlexDaniel, ¦HEAD(fff43fd): «2.9554306» 10:39
ZzZombo "MoarVM panic: Memory allocation failed; could not allocate zu bytes"
zu?
AlexDaniel lookatme: ↑
moritz base 36? :-)
10:39 mcmillhj joined
AlexDaniel %zu? 10:40
10:40 astj left
AlexDaniel ZzZombo: what system is it? What was the compiler? 10:40
lookatme: so the good news is that it is actually faster, but you'll have to specify the batch yourself 10:41
c: HEAD (^500000).race(:125000batch).map: -> $i { my $result = ($i ** 2).Str; }; say now - BEGIN now
committable6 AlexDaniel, ¦HEAD(fff43fd): «1.4837286»
ZzZombo Windows 10 x64.
"This is Rakudo version 2017.07 built on MoarVM version 2017.07
implementing Perl 6.c." 10:42
piojo ZzZombo: I saw that bug with that version, too. If you upgrade, it should go away.
AlexDaniel I think it was fixed in github.com/MoarVM/MoarVM/commit/68...a437250cad 10:43
10:43 ryn1x joined 10:44 mcmillhj left
AlexDaniel c: HEAD (^500000).race(:62500batch, :8degree).map: -> $i { my $result = ($i ** 2).Str; }; say now - BEGIN now 10:45
committable6 AlexDaniel, ¦HEAD(fff43fd): «1.3494808»
AlexDaniel c: HEAD (^500000).race(:62500batch).map: -> $i { my $result = ($i ** 2).Str; }; say now - BEGIN now
committable6 AlexDaniel, ¦HEAD(fff43fd): «1.687596»
AlexDaniel lookatme: … maybe even the degree also 10:46
10:46 astj joined 10:47 ryn1x left
ZzZombo "Just run perl6-debug instead of perl6." 10:52
"'perl6-debug' is not recognized as an internal or external command,
operable program or batch file."
what do?
11:05 parv left 11:11 araraloren joined
DrForr It's usually 'perl6-debug-$compiler-extension' - maybe 'perl6-debug-m'? 11:12
(although "batch file" indicates you might be on Windows and a bit out of my current operating zone.) 11:13
piojo DrForr: yeah, on windows I can run perl6-debug-m.bat, but I've never used the debugger so I can't say any more than that. 11:23
11:23 astj left 11:25 wamba left 11:27 pat_js left 11:33 HoboWithAShotgun joined 11:35 wamba joined 11:38 astj joined
lizmat www.youtube.com/watch?v=q8stPrG1rDo # Superglue for the 21st Century 11:38
11:40 Aaronepower joined 11:41 astj left 11:42 astj joined 11:45 notbenh joined, sena_kun joined 11:46 astj left, huf joined, ryn1x joined 11:47 AlexDaniel left 11:51 ryn1x left 11:54 parv joined
parv lizmat, i thought you were pointing to chemical compound w/ your "Superglue" youtube video. dang it! 11:58
lizmat hehe... :-) fake news! :-) 11:59
parv good bait! 12:00
friction based construction: youtu.be/Ct6BUPvE2sM?t=14s 12:03
12:05 geospeck joined 12:09 astj joined 12:11 ryn1x joined, margeas joined 12:12 astj left, astj joined
parv later ... 12:13
12:13 parv left 12:15 astj left 12:21 ryn1x left 12:22 nadim left 12:24 zakharyas left
DrForr I assume this is the new Gangnam Style? 12:24
12:28 astj joined 12:33 astj left 12:34 domidumont left, lowbro joined, lowbro left, lowbro joined
ZzZombo #perl6, clean way to rename a file to same name, but append `.bak`, i. e. 'filename.ext' -> 'filename.ext.bak'? 12:38
12:40 mcmillhj joined
ilmari $path.rename($path ~ '.bak') 12:42
assuming $path is an IO::Path for the file
if you just have it as a string: $filename.IO.rename($filename ~ '.bak')
ZzZombo you can concat `IO::Path` and `Str`? 12:43
12:45 mcmillhj left
moritz who said $filename was a IO::Path? 12:45
ilmari yes, IO::Path stringifies to the path
moritz: I said $path was
moritz ah
missed that
12:46 astj joined 12:47 piojo_ joined
lizmat news.ycombinator.com/item?id=15702045 # Cro on HN, alas no comments yet 12:47
tyil sad :( 12:50
12:50 astj left
tyil I havent used Cro yet, so I cant really comment on whether its good or not :( 12:50
piojo_ I can't comment very much because I haven't used any other web services framework 12:51
ZzZombo Can this be simplified? Need to return either a item type specific localized string, or from fallback object, or a decorated token as last resort.
return .value with ($localization{$item} && $localization{$item}{$type} && $localization{$item}{$type}{$note} || Nil,$localization{$type} && $localization{$type}{$note} || Nil).first({.defined && .isa(Grammar::VDF::Key-Value)});
"#$note";
12:51 wander joined, Actualeyes joined
piojo_ But I do like that it's synchronous, and it seems like most of the other modern web frameworks want to be async 12:51
wander . 12:52
ZzZombo I just noticed I can replace the argument to `first` with just `*.isa(Grammar::VDF::Key-Value)`, but anything else? 12:53
tyil cant you shorten the entire first part with the && to just the last one, and replace the || with // 12:56
so `$localization{$item} && $localization{$item}{$type} && $localization{$item}{$type}{$note} ||` becomes `$localization{$item}{$type}{$note} //` 12:57
ZzZombo no, if an intermediate element doesn't exist, accessing its contents is illegal.
12:57 sjn joined
tyil ah 12:58
ilmari m: my %h; say $h<bar><baz><zot> // 'wibble'
camelia 5===SORRY!5=== Error while compiling <tmp>
Variable '$h' is not declared. Did you mean '%h'?
at <tmp>:1
------> 3my %h; say 7⏏5$h<bar><baz><zot> // 'wibble'
ilmari m: my %h; say %h<bar><baz><zot> // 'wibble'
camelia wibble
ZzZombo it's not a Hash.
It's an instance of a custom class.
It just happens to do the magic necessary to make subscript access work with it. 12:59
tyil I wouldn't call it magic :p 13:00
moritz it's magic until you understand how it works :-)
13:01 ryn1x joined
ilmari what does it return for non-existing elements? why not just return something like Any, which itself returns Any on any subscripting 13:02
or you could make it return Nil 13:03
ZzZombo It returns Nil.
Maybe yea 13:04
ilmari well, Nil allows subscrpting and just returns Nil, so even the // is unnecessary 13:05
moritz the magic really happens when you start writing ot it
*to it
ZzZombo I forgot about that, I don't need the `|| Nil`
13:05 ryn1x left
ZzZombo But it is. I could not find a way to introduce my own adverbs, for example, without copying much of the Hash code dealing with slices and subscripts. 13:05
13:05 Cabanossi left 13:08 Cabanossi joined 13:22 titsuki joined 13:24 mcmillhj joined
piojo_ assignment to Any that's bound to a nonexistent field of an array/hash/list is black, black magic. 13:28
Not list, just Array/Hash 13:29
13:29 mcmillhj left, mcmillhj joined 13:31 zakharyas joined 13:32 geospeck left 13:34 mcmillhj left
ZzZombo Is `.Str` hidden from backtraces in Rakudo? 13:40
piojo_ ‎ZzZombo‎: I don't know, but if it's hidden but you want to see it, use $exception.backtrace.full 13:41
13:42 aborazmeh joined, aborazmeh left, aborazmeh joined 13:45 cdg joined
jnthn m: multi postcircumfix:<[ ]>(@arr, Int $indice, :$log!) { say "index: $indice"; @arr.AT-POS($indice) }; my @a = 1..10; say @a[4]:log 13:47
camelia index: 4
5
jnthn ZzZombo: ^^ your own adverb
ZzZombo it didn't play well when my module was imported IIRC.
As in, no class slice functions were visible or something. 13:48
Geth marketing: 6f04d47bfb | (Zoffix Znet)++ | 8 files
Update "Introducing Perl 6" brochure

  - Add back info about loading multiple module versions
  - Change stock to be have less of a corporate feel
13:49
ZzZombo But I could use them well inside the module.
jnthn Did you put `is export` on it?
13:49 mcmillhj joined 13:50 cdg left
lizmat ZzZombo: works fine for me when you put the "is export" on it 13:50
ZzZombo I see in an old version 13:51
our proto sub postcircumfix:<{ }> (|) {*}
multi sub postcircumfix:<{ }>(::?CLASS:D \SELF,*%_) is export
so I guess it didn't work.
13:52 wamba left 13:53 eroux left 13:54 wamba joined
Geth marketing: dea64171ba | (Zoffix Znet)++ | 4 files
Fix typography/add bleedless PDF for Intro P6 brochure

  - Add text more spacing on features overview page
  - Generate bleedless PDF for print, since the one with bleeds has
stuff from adjacent pages bleeding onto the sheet.
13:57
13:58 ryn1x joined 14:00 aborazmeh left 14:01 cdg joined 14:02 philomath_ joined, lizmat left 14:03 ryn1x left, rindolf joined 14:06 mson joined, astj joined 14:07 lizmat joined 14:08 cdg left 14:09 Actualeyes left 14:12 Aaronepower left 14:13 piojo_ left 14:14 astj left 14:16 robertle left 14:17 piojo_ joined
Geth doc: 4dc22f5571 | (Curt Tilmes)++ (committed using GitHub Web editor) | doc/Language/io-guide.pod6
ever -> never

typo, changing meaning to the exact opposite
14:29
synopsebot Link: doc.perl6.org/language/io-guide
14:31 astj joined 14:34 zakharyas left 14:35 astj left, Cabanossi left 14:38 Cabanossi joined 14:40 AHoboWithAShotgu joined 14:41 mcmillhj left 14:42 HoboWithAShotgun left, zakharyas joined 14:45 astj joined 14:46 raiph joined 14:47 comborico1611 joined 14:48 araraloren left 14:49 mcmillhj joined, astj left
comborico1611 Hi 14:50
14:52 dj_goku_ joined 14:55 dj_goku left 14:57 rindolf left 14:59 wamba left 15:04 Mrofnet joined, wamba joined
Geth marketing: b66ba06a61 | (Zoffix Znet)++ | 3 files
Add pub symlinks to all versions of IntroP6
15:04
lizmat github.com/MunGell/awesome-for-beginners # any takers for Perl 6 ? 15:06
15:06 rindolf joined, Morfent left
comborico1611 What is it lizmat? 15:07
Geth marketing: 5b156f47dd | (Zoffix Znet)++ | 3 files
Remove symlinks

Not working as I expected them to :(
15:08
comborico1611 Are they projects that actually need to be accomplished? Or practice exercises?
I see.
I may jump on it. I have this C book i need to get through, but i may work on it 30 minutes a day. 15:09
Thanks!
tyil lizmat: /b 54 15:10
woops
forget that
Geth marketing: d3755956c1 | (Zoffix Znet)++ | 3 files
Cheat and just copy PDFs themselves into pub/
15:13
15:15 ryn1x joined 15:16 cdg joined
Geth marketing: 5265bf8aa7 | (Zoffix Znet)++ (committed using GitHub Web editor) | pub/README.md
Add links to print PDFs as well
15:18
15:18 nadim joined 15:20 ryn1x left 15:22 mcmillhj left, Cabanossi left
tbrowder Zoffix: how about mentioning p6 advent in marketing brochure? 15:22
15:23 Cabanossi joined
lizmat hmmm... not much use ~ 10 months of the year ? 15:23
15:23 Zoffix joined 15:24 robertle joined
Zoffix tbrowder: not quite a fan because most(?) of currently available advent covers pre-Christmas Rakudo, which may differ from current implementation and thus frustrate users. 15:24
tbrowder well, i was thinking of the entire collection, but you’re right, not a good idea... 15:25
[Coke] It would be a nice project to go back and update those old entries to insure they have working code, or at least list which versions the code ran on, or if it's now out of date.
(but that's a lot of work)
maybe we can do that for this year's crop, add a small banner showing the language spec and rakudo version any code was run with) 15:26
15:28 Actualeyes joined 15:29 mcmillhj joined 15:32 lowbro left, cdg left 15:34 mcmillhj left
ZzZombo can I look up a variable in he outer scope, like with C++ `::<variable>`? 15:36
Zoffix OUTER::
m: my $x = 42; { my $x = 10; say [$x, $OUTER::x ]
camelia 5===SORRY!5=== Error while compiling <tmp>
Missing block
at <tmp>:1
------> 3= 42; { my $x = 10; say [$x, $OUTER::x ]7⏏5<EOL>
expecting any of:
postfix
statement end
statement modifier
stat…
Zoffix m: my $x = 42; { my $x = 10; say [$x, $OUTER::x ] }
camelia [10 42]
Zoffix m: my $x = "meows"; { my $x = 42; { my $x = 10; say [$x, $OUTER::x, $OUTER::OUTER::x ] } } 15:37
camelia [10 42 meows]
Geth marketing: 229e14ee66 | (Zoffix Znet)++ | 8 files
Expand learning resources in IntroP6

  - Add "Practice online" with exercism and glot.io
  - Add link to see more resources at perl6.org/resources/
15:41
15:41 Zoffix left
ZzZombo Gracious me. 15:42
"write_fhb requires a native array of uint8 or int8"
what did I break this time?
timotimo can you get a stacktrace with --ll-exception? 15:44
ZzZombo I'm trying. 15:46
15:46 astj joined, ryn1x joined 15:47 astj left 15:48 astj joined, mcmillhj joined 15:50 pmurias joined
pmurias hi 15:50
15:51 ryn1x left
comborico1611 Hi 15:51
15:51 cdg joined 15:56 mempko joined
moritz ho 15:56
15:56 cdg left
ZzZombo timotimo: I got it, wanna see it? 15:56
timotimo sure
ZzZombo pastebin.com/Xkxm0WZA 15:57
timotimo ZzZombo: can you apply a moarvm patch and re-run? 15:59
ZzZombo Uh, apply what?
16:00 khw joined
timotimo gist.github.com/timo/d60cefdbd100d...63b5a97b26 16:00
alternatively, can you run this with perl6-gdb-m?
comborico1611 Ho, moritz. Still making good ground on your book?
timotimo then you would "break io.c:144 16:01
oh, but then you'll need debug info or it'll be annoying AF to find a reference to the actual object
also, --debug=0 in moarvm's compiler flags
anyway, the patch is easier; gotta run!
ZzZombo I could, but it's pretty late here, I hoped to wrap things up for today when this issue cropped up. 16:02
I'm not sure how to apply the patch, I need to build from source, right? And that's gonna be for sure a pin on Windows?
pain*
I can only add that I'm trying to save a file in UTF-16LE encoding, via `IO.spurt`. 16:04
The same code path works for UTF-8 fine.
moritz comborico1611: yes, progress is fine 16:08
El_Che moritz: what do I have an image in my head now of a dog in a house in flames saying that? :)
16:09 jonas1 left
comborico1611 Heh. No, he says he is actually is ahead of schedule. 16:09
moritz El_Che: :-) 16:10
16:10 Morfent joined
moritz so, I had a few days to proof-read the book, and found so many errors that I requested a second round 16:10
(errors that were introduced during typesetting, presumably) 16:11
and that second round will be early next week
16:11 cdg joined
moritz and then... it goes to the press! 16:11
16:11 Merfont joined
comborico1611 There is an interesting interview where the author discusses publishing and typesetting actually from a computer scientist Tannenbaum on YouTube. 16:13
16:13 troys joined
[Coke] moritz++ 16:13
comborico1611 Apparently he introduced a new technology to ease publishing.
16:14 Mrofnet left
wander m: my token opts { \s+ }; my token tok { a<.opts>b }; "a b" ~~ &tok; 16:14
camelia No such method 'opts' for invocant of type 'Match'. Did you mean any of these?
ords
pos
roots

in regex tok at <tmp> line 1
in block <unit> at <tmp> line 1
wander m: my token opts { \s+ }; my token tok { a<opts>b }; "a b" ~~ &tok;
camelia ( no output )
16:14 Morfent left
wander why? if i don't want to capture <opts>, what can i do? 16:14
jnthn <.opts> 16:15
wander IIRC the doc say i can use <.opts>, however error msg occurs
jnthn: so how about code snip above?
moritz wander: it's <&opts> for lexical tokens 16:16
jnthn ohh...it's lexical
jnthn almost never uses those :)
moritz wander: and <.opts> for tokens that are looked up in method scope
jnthn What moritz said :)
moritz jnthn: I had to read up on the syntax for the book :-)
wander thank you! 16:17
16:20 ryn1x joined 16:25 ryn1x left 16:30 ShalokShalom joined 16:36 dogbert11 left 16:37 mcmillhj left, wamba left
timotimo atom teletype looks neat 16:40
wander m: my $sz = 10; my @ins = ['$STACK-SIZE']; say @ins[0]; @ins[0].subst(/'$STACK-SIZE'/, ~$sz); say @ins[0]; 16:42
camelia $STACK-SIZE
$STACK-SIZE
wander oops
.= needed
tyil timotimo: as in atom the editor? 16:44
timotimo yes 16:45
tyil pics
timotimo teletype.atom.io/
tyil ah
I can put that on the list of "things I really dont want in my editor" 16:46
but for training people it could be neat i guess
16:47 mcmillhj joined
timotimo good thing it's a plugin, then 16:47
16:48 robertle left 17:01 abraxxa left
tyil I dont use atom either way :p 17:02
17:05 mcmillhj left 17:07 Cabanossi left 17:08 Cabanossi joined 17:18 lizmat left 17:22 ryn1x joined 17:27 setty1 joined 17:29 dakkar left 17:30 scimon left 17:32 mcmillhj joined, releasable6 left, releasable6 joined 17:34 ryn1x left 17:37 mcmillhj left, philomath_ left 17:41 domidumont joined 17:45 cdg left 17:46 mcmillhj joined 17:47 wamba joined 17:51 ChoHag left, mcmillhj left 17:53 yqt joined 18:04 zakharyas left 18:09 mcmillhj joined 18:12 piojo_ left 18:14 mcmillhj left 18:15 cdg joined 18:16 zakharyas joined, pecastro left 18:18 pecastro joined 18:19 troys is now known as troys_ 18:21 konsolebox left 18:22 zakharyas left 18:25 zakharyas joined 18:27 konsolebox joined 18:29 zakharyas left 18:32 zakharyas joined 18:33 ryn1x joined 18:34 darutoko left 18:38 ryn1x left
AHoboWithAShotgu some of you guys are frequent flyers. Check this out: www.aviationtoday.com/2017/11/08/bo...-dhs-says/ 18:39
scary, isn't it? 18:40
TEttinger WATCHLISTED 18:41
they did that in the cheesy American TV show "24" already. it was in the last season with Jack Bauer, after the season where LA was nuked so they just moved the focus to other cities. 18:42
18:42 mr-fooba_ joined
TEttinger and that was after the season where Jack landed a commercial plane on a freeway with apparently no flight training 18:43
18:44 mr-foobar left 18:48 mcmillhj joined 18:50 comborico1611 left 18:54 mempko left 18:56 dogbert17 joined 18:57 ryn1x joined 18:59 AlexDaniel joined
tyil maybe he used auto pilo 18:59
t
19:00 |oLa| joined, cdg left, |oLa| left 19:02 ryn1x left 19:15 mson left 19:20 raiph left
masak today's p6 interference in p5: "oh righ, p5 doesn't have qqx[]" 19:22
AlexDaniel isn't it great? 19:25
most of the time when you “need” qqx you're actually about to shoot your head off
dogbert17 await (^5).map({start { say qqx{echo -n foo $_} } }) 19:27
19:28 ChoHag joined
ingy isn't qqx just `` in perl5? 19:30
perl -E 'say `echo hello $world`' 19:31
19:36 sftp joined 19:37 mcmillhj left
Ulti given the good perl6 Atom support this is really cool blog.atom.io/2017/11/15/code-toget...-atom.html 19:40
19:42 mcmillhj joined 19:43 comborico1611 joined 19:45 perlpilot_ joined
Ulti hah also Visual Studio Code code.visualstudio.com/blogs/2017/1...live-share what a coincidence... the same day 19:47
ingy remembers shared editing with audreyt et al from 15 years ago 19:53
mspo there have been a few 19:54
even before subethaedit
wasn't the (really) old sharing text editor also called atom?
ingy waiting for the vim plugin
19:54 Aceeri left 19:55 ryn1x joined
ingy github.com/FredKSchott/CoVim 19:55
everything has been done. you can all go home now. 19:56
mspo oh no I'm thinking of ACE
19:56 wamba[m] left 19:57 mack[m] left 20:00 konsolebox_ joined 20:01 konsolebox left 20:02 ryn1x left 20:06 wamba[m] joined, mack[m] joined 20:08 zakharyas left 20:19 domidumont left 20:27 ChoHag left
tyil ingy: is there anything vim cant do :'D 20:42
Geth doc: 5845aa70d6 | (Jan-Olof Hendig)++ | 9 files
Make invisible words visible on the types page

As per issue #209 links in =SUBTITLE elements does not work. Where they have been used the word inside L<> isn't rendered. While waiting for this to be fixed we'll remove the L<> tags. When the issue is resolved this commit can be reverted.
20:48
20:48 ShalokShalom left
20:50 perlpilot_ left 21:01 mcmillhj left 21:04 ryn1x joined 21:09 yqt left 21:10 awwaiid left 21:13 mr-fooba_ left, ryn1x left 21:16 troys_ is now known as troys 21:17 mr-foobar joined
Geth doc: b345a07b68 | (Jan-Olof Hendig)++ | doc/Type/Supplier/Preserving.pod6
Fix another broken SUBTITLE
21:19
synopsebot Link: doc.perl6.org/type/Supplier/Preserving
comborico1611 What does geth stand for? 21:25
tyil Geth exists to help
[Coke] Geth is a fictional AI race from Mass effect. 21:26
21:26 Aaronepower joined
geekosaur masseffect.wikia.com/wiki/Geth (and be aware that it replaced a bot named "dalek") 21:26
[Coke] masseffect.wikia.com/wiki/Geth 21:27
hee. :)
21:28 mcmillhj joined
Geth doc: 4625b5ef8b | (Jan-Olof Hendig)++ | 2 files
Formatting fixes
21:30
comborico1611 Haha. I see. 21:32
Thanks! I just gotta know these things.
21:32 mcmillhj left 21:39 mcmillhj joined 21:40 cdg joined, wamba left 21:43 ryn1x joined 21:44 cdg left 21:46 troys is now known as troys_ 21:47 ryn1x left 21:50 kitsunenokenja joined, Cabanossi left 21:53 Cabanossi joined 21:58 setty1 left 22:02 ChoHag joined 22:03 mcmillhj left, mcmillhj joined 22:04 cdg joined 22:06 pilne joined 22:08 mcmillhj left 22:13 troys_ is now known as troys 22:14 cdg_ joined 22:18 cdg left 22:22 rindolf left
comborico1611 Just finished another chapter, boys. 22:31
Ulti chapter of what? 22:33
El_Che 11?
comborico1611 Ch. 4. I think I'm on ch. 11 for perl6 book. 22:34
C How To Program
22:34 itaylor57 joined
El_Che comborico1611: which one? moritz's? Laurent rosenfeld's? 22:35
the 2 if I recall correctly
comborico1611 Laurent's.
El_Che he seemed nice at yapce 22:36
22:36 Cabanossi left 22:37 ryn1x joined
comborico1611 Maybe this week, i will submit a review on Laurent's book. Only topics that remain are oo, reaction, and functional programming models. 22:37
He was very polite in his email correspondence with me. 22:38
El_Che reaction?
22:38 Cabanossi joined
comborico1611 I believe so. 22:38
El_Che as in reactive programming?
comborico1611 As 22:39
Yes.
22:39 espadrine joined
El_Che ic 22:39
comborico1611 I'm sorry, declarative programming.
His book is organized into Parts. The first part is the fundamentals a programming. The second part consists of object-oriented, declarative, functional programming models. 22:40
Into two parts*
El_Che I need to have a look again (I have access through safari) 22:41
22:41 ryn1x left 22:43 mr-foobar left 22:44 ryn1x joined 22:45 mr-foobar joined 22:49 ryn1x left, cdg joined 22:53 cdg_ left, cdg left 22:54 cdg_ joined, cdg_ left, cdg_ joined 22:55 pmurias left 23:03 cdg joined 23:06 cdg_ left 23:07 cdg left 23:11 Aaronepower left 23:22 comborico1611 left 23:23 comborico1611 joined 23:24 troys is now known as troys_
comborico1611 Almost supper time. 23:24
23:30 ryn1x joined 23:34 sena_kun left 23:35 mson joined, ryn1x left, Cabanossi left 23:37 lizmat joined, mcmillhj joined 23:38 Cabanossi joined 23:42 mcmillhj_ joined, mcmillhj left 23:53 cdg joined 23:57 cdg left