»ö« 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.
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
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
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.
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
comborico1611 Man, you get around. 01:34
MasterDuke every once in a while, i do like to travel when i get the opportunity 01:35
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
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
comborico1611 Getting sleepy. 01:49
lookatme good night
comborico1611 Goodnight, guys!
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
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
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
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
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
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
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
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
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
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
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
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
piojo I just posted it: stackoverflow.com/questions/473013...-in-perl-6 07:09
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
moritz for such a fast inner loop, you need a really large batch size to make it any faster 07:55
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
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
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
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
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…
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
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…
piojo Okay, hyper does work fine in the current master branch :) 09:05
lookatme: thanks for the hint
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
AlexDaniel` lookatme: what's the code that doesn't perform faster with race? 09:30
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
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.
moritz yes, reply to the autoresponder should work 10:05
piojo moritz: thanks, I'm gonna run one more test on my home computer, then hopefully report it's been fixed:) 10:27
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? :-)
AlexDaniel %zu? 10:40
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
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
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?
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
lizmat www.youtube.com/watch?v=q8stPrG1rDo # Superglue for the 21st Century 11:38
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
parv later ... 12:13
DrForr I assume this is the new Gangnam Style? 12:24
ZzZombo #perl6, clean way to rename a file to same name, but append `.bak`, i. e. 'filename.ext' -> 'filename.ext.bak'? 12:38
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
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
lizmat news.ycombinator.com/item?id=15702045 # Cro on HN, alas no comments yet 12:47
tyil sad :( 12:50
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";
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.
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 :-)
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`
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
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
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
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?
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.
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
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
comborico1611 Hi 14:50
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
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
Geth marketing: 5265bf8aa7 | (Zoffix Znet)++ (committed using GitHub Web editor) | pub/README.md
Add links to print PDFs as well
15:18
tbrowder Zoffix: how about mentioning p6 advent in marketing brochure? 15:22
lizmat hmmm... not much use ~ 10 months of the year ? 15:23
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
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
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
pmurias hi 15:50
comborico1611 Hi 15:51
moritz ho 15:56
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?
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? :)
comborico1611 Heh. No, he says he is actually is ahead of schedule. 16:09
moritz El_Che: :-) 16:10
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
moritz and then... it goes to the press! 16:11
comborico1611 There is an interesting interview where the author discusses publishing and typesetting actually from a computer scientist Tannenbaum on YouTube. 16:13
[Coke] moritz++ 16:13
comborico1611 Apparently he introduced a new technology to ease publishing.
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 )
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
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
timotimo good thing it's a plugin, then 16:47
tyil I dont use atom either way :p 17:02
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
TEttinger and that was after the season where Jack landed a commercial plane on a freeway with apparently no flight training 18:43
tyil maybe he used auto pilo 18:59
t
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
ingy isn't qqx just `` in perl5? 19:30
perl -E 'say `echo hello $world`' 19:31
Ulti given the good perl6 Atom support this is really cool blog.atom.io/2017/11/15/code-toget...-atom.html 19:40
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
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
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
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
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. :)
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.
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
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
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?
comborico1611 I believe so. 22:38
El_Che as in reactive programming?
comborico1611 As 22:39
Yes.
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
comborico1611 Almost supper time. 23:24