»ö« 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:07 ryn1x joined 00:11 robertle left 00:12 lizmat joined, ryn1x left, BenGoldberg joined 00:27 nadim left 00:28 TEttinger left 00:29 margeas left 00:31 TEttinger joined
lookatme o/ 00:34
00:39 ryn1x joined 00:44 ryn1x left 01:03 astj joined 01:08 awwaiid joined 01:13 kitsunenokenja joined 01:14 sena_kun left 01:15 mcmillhj joined 01:20 mcmillhj left, troys is now known as troys_ 01:27 aborazmeh joined, aborazmeh left, aborazmeh joined
comborico1611 Yup. 01:33
01:34 kalkin-- joined 01:38 kalkin--- left
comborico1611 Thanks for the food ranger recommendation, if you're still out there. My wife is going to love it! 01:40
01:49 ryn1x joined 01:53 ryn1x left
comborico1611 Is any graphics programming done on p6? 02:03
lookatme comborico1611, you welcome :)
comborico1611 Weird timing.
Haha. 02:04
lookatme What graphics programming?
comborico1611 Anything. GUI, 2D, animation 02:05
I did a brief search, and didn't find anything.
lookatme GTK binding ?
comborico1611 I don't know what that is.
lookatme GTK is a GUI framework
greppable6: gtk 02:06
comborico1611 I see.
greppable6 lookatme, gist.github.com/7819ea3f1ee132d02c...d17857d4f7
comborico1611 Are these Graphics modules? 02:07
MasterDuke there are some SDL modules, i thought there was some chat yesterday or today about someone using them
comborico1611 I probably didn't know what they were talking about. 02:08
lookatme :) haha
modules.perl6.org/search/?q=graphics 02:09
There are some module about graphics 02:10
comborico1611 Simple DirectMedia Layer?
lookatme No 02:11
comborico1611 I see. I gotta finish the chapter on P6 OOP first. Heh.
lookatme okay
comborico1611 Gimp toolkit?
02:11 konsolebox left 02:12 konsolebox joined
lookatme What's that ? 02:12
comborico1611 GTK
02:12 mcmillhj joined
lookatme NO 02:12
It just a framework like MFC or QT 02:13
comborico1611 Looks like i have some things to learn. :)
geekosaur so?
what else do you use for gui programming?
you two seem to be talking at cross purposes 02:14
lookatme Hmm, he just don't know GTK 02:15
comborico1611 My initial question was answered. P6 has GUI stuff, GTK and SDL.
lookatme There just binding module, you can make your own binding
comborico1611 Now what they stand for, is another question. Ha.
lookatme Such as if you want use DirectX in Perl6, you can make a binding for it. Through it is not easy to do it. 02:17
s/through/though/
comborico1611 I better get to bed. Thanks for the info and chat, lookatme. Goodnight! 02:20
02:20 comborico1611 left 02:26 konsolebox left 02:27 konsolebox joined 02:35 mson left
ZzZombo docs lie 02:35
m: say "\c[woman gesturing OK]";
camelia 5===SORRY!5=== Error while compiling <tmp>
Unrecognized character name [woman gesturing OK]
at <tmp>:1
------> 3say "\c[woman gesturing OK7⏏5]";
MasterDuke m: say "woman gesturing OK".parse-name 02:36
camelia No such method 'parse-name' for invocant of type 'Str'. Did you mean any of these?
parse-base
parse-names

in block <unit> at <tmp> line 1
MasterDuke m: say "woman gesturing OK".parse-names
camelia 🙆‍♀️
geekosaur er. that broke at some point then 02:37
ZzZombo timotimo: sure it does. Gotta figure the actual encoding algorithm now.
02:37 mcmillhj left
sacomo hi all 02:37
geekosaur bisectable: old=2017.01 say "\c[woman gesturing OK]"; 02:38
bisectable6 geekosaur, Bisecting by output (old=2017.01 new=6ec6f1e) because on both starting points the exit code is 1
geekosaur, bisect log: gist.github.com/72d2104c52732714d6...8df7d5bb28 02:39
geekosaur, (2017-03-07) github.com/rakudo/rakudo/commit/de...5b63f0665c
02:42 konsolebox left 02:44 cdg left 02:45 konsolebox joined 02:46 AlexDaniel left, ilbot3 left 02:52 konsolebox left 02:53 konsolebox joined 02:55 ilbot3 joined, ChanServ sets mode: +v ilbot3 02:58 john_parr joined 03:00 ryn1x joined 03:05 cdg joined 03:10 konsolebox left, cdg left, noganex_ joined 03:11 konsolebox joined 03:13 noganex left 03:14 ryn1x_ joined 03:16 ryn1x left 03:18 ryn1x_ is now known as ryn1x, konsolebox left, ufobat___ joined 03:20 espadrine left 03:22 ufobat_ left 03:24 konsolebox joined
ryn1x Will rakudo-star 2017.10 be coming to homebrew? 03:31
03:33 Cabanossi left 03:34 Cabanossi joined 03:36 konsolebox left 03:39 eliasr left 03:43 konsolebox joined 03:49 konsolebox left 03:50 konsolebox joined 03:55 konsolebox left 03:57 konsolebox joined 04:03 mcmillhj joined, Cabanossi left 04:04 Cabanossi joined, pilne left 04:08 mcmillhj left, kitsunenokenja left 04:12 ryn1x left 04:13 epony left 04:20 mcmillhj joined 04:22 kaare_ joined 04:23 kaare__ left 04:24 mcmillhj left 04:26 epony joined
Geth doc/ZzZombo-patch-1: 1fb883e01e | ZzZombo++ (committed using GitHub Web editor) | doc/Type/utf8.pod6
Update utf8.pod6
04:26
ZzZombo what 04:27
I only wanted to test creating pull requests...
why the hell it committed it straight to the repo???? 04:28
04:28 ccakes joined 04:29 Cabanossi left
piojo ZzZombo: apparently you pushed to the wrong remote 04:29
ZzZombo me? it's the damn stupid web editor that did it. 04:30
04:30 Cabanossi joined
piojo ZzZombo: oh, I don't know nothin' about the web editor. 04:32
ZzZombo also since when did Github stop supporting syntax highlighting for Pods? I recall it being there a year ago. 04:33
Geth ecosystem: 12c1959ed5 | (Alex Chen)++ (committed using GitHub Web editor) | META.list
Add Algorithm::BitMap

Thank you for submitting a module to the Perl 6 Ecosystem!
If adding a new module please review the following check boxes and check the appropriate boxes by going to the preview tab and checking them interactively or alternatively replacing the space in the checkboxes with an X. Your work is appreciated and every module helps make the Perl 6 Ecosystem a bigger and better place ♥
  - [X] I **agree** to the usage of the META file as listed [here](github.com/perl6/ecosystem#legal).
... (5 more lines)
04:34
ecosystem: 62c9abcb12 | (Alex Chen)++ (committed using GitHub Web editor) | META.list
Merge pull request #379 from perl6/W4anD0eR96-patch-1

Add Algorithm::BitMap
piojo It's easy for me to not make that mistake, since I don't have commit rights. :) 04:39
just "git push", then check my remote names and push more carefully if there's an error. 04:40
04:40 kaare_ left 04:41 konsolebox left 04:42 konsolebox joined, troys_ is now known as troys 04:45 travis-ci joined
travis-ci Doc build passed. ZzZombo 'Update utf8.pod6' 04:45
travis-ci.org/perl6/doc/builds/303363220 github.com/perl6/doc/commit/1fb883e01e68
04:45 travis-ci left
ZzZombo shhh, keep it quiet! 04:46
bad bots always want to keep a playa down!
04:47 kaare_ joined 04:50 wander left 04:52 mcmillhj joined 04:55 BenGoldberg left 04:57 mcmillhj left 04:58 konsolebox left, konsolebox joined 05:06 konsolebox left, xtreak joined 05:07 konsolebox joined 05:11 mcmillhj joined 05:16 mcmillhj left 05:18 konsolebox left 05:19 ivans left 05:20 konsolebox joined 05:26 aborazmeh left 05:27 ivans joined 05:42 konsolebox left 05:43 khw left 05:44 konsolebox joined, Cabanossi left 05:46 Cabanossi joined 05:51 mr-foobar left 05:58 konsolebox left 06:00 konsolebox joined 06:05 konsolebox left 06:06 konsolebox joined 06:07 troys is now known as troys_ 06:11 troys_ is now known as troys 06:13 Cabanossi left 06:16 Cabanossi joined 06:20 konsolebox left 06:22 konsolebox joined 06:23 rindolf joined 06:27 AHoboWithAShotgu left 06:29 TEttinger left 06:31 ryn1x joined 06:36 TEttinger joined 06:38 konsolebox left, ryn1x_ joined 06:39 konsolebox joined 06:40 ryn1x_ left 06:47 ryn1x left 06:57 konsolebox left 06:59 konsolebox joined 07:04 konsolebox left, parv joined 07:06 konsolebox joined 07:12 mcmillhj joined 07:13 domidumont joined, xtreak left, xtreak joined 07:16 ccakes_ joined, xtreak_ joined, mcmillhj left 07:17 xtreak left 07:19 domidumont left 07:20 konsolebox left, domidumont joined 07:22 konsolebox joined 07:24 ccakes_ left 07:27 konsolebox left 07:28 troys left 07:29 Cabanossi left, konsolebox joined 07:30 Cabanossi joined 07:32 nadim joined 07:40 ccakes_ joined 07:44 mcmillhj joined 07:45 cdg joined 07:49 mcmillhj left, konsolebox left, cdg left 07:51 konsolebox joined 07:55 darutoko joined, domidumont left 08:00 mcmillhj joined, konsolebox left 08:04 mcmillhj left 08:06 ccakes_ left, ccakes left 08:07 konsolebox joined 08:10 ccakes joined 08:12 konsolebox left 08:14 konsolebox joined 08:17 mcmillhj joined 08:21 konsolebox left 08:22 mcmillhj left 08:23 konsolebox joined 08:26 xtreak_ left 08:27 xtreak joined 08:28 Cabanossi left
tyil does a constraint check throw a certain exception I can check in tests? 08:29
I have a signature sub foo ($n where $n > 0), and I want to add a test that verifies this works correctly
08:30 Cabanossi joined 08:31 xtreak left
moritz m: sub foo ($n where $n > 0) { }; try foo(-1); say $!.^name 08:37
camelia X::TypeCheck::Binding::Parameter
tyil sweet
thanks moritz
moritz tyil: there's even a throws-like function in Test.pm6 that you can use
tyil yes, I knew about that 08:38
but I didn't know the type or if it even was an exception
lookatme m: say qx/top/.ssss 08:49
camelia qx, qqx is disallowed in restricted setting
in sub restricted at src/RESTRICTED.setting line 1
in sub QX at src/RESTRICTED.setting line 11
in block <unit> at <tmp> line 1
lookatme ^^^, no syntax error ? 08:50
08:55 domidumont joined
moritz why should it be? 08:59
qx/top/ is a just an expression, and .ssss is a method call on it
09:00 scimon joined, xtreak joined
lookatme silly me :) 09:00
09:00 scimon left 09:02 scimon joined
sacomo hi all 09:02
09:02 abraxxa joined
sacomo question about closures, if a sub is available in the scope that the closure was created in, is that sub also available in the closure's scope? or anyway to accomplish something similar? 09:03
tyil m: sub foo (Int $n) { }; try foo(.5); say $!.^name 09:04
camelia 5===SORRY!5=== Error while compiling <tmp>
Calling foo(Rat) will never work with declared signature (Int $n)
at <tmp>:1
------> 3sub foo (Int $n) { }; try 7⏏5foo(.5); say $!.^name
scimon How do you mean "available"?
tyil moritz: is there some clean way to test this one too? dies-ok seems to give the same compiler error 09:05
sacomo subs exported from modules included in the scope
tyil lb 23
scimon Hmmm I'd expect it to be then. When the closure is accessed I'd expect it to have the scope it was created with. 09:06
sacomo hmm 09:07
masak TimToady: not sure I've brought this up before -- would you agree that names introduced lexically in a quasi should not be visible in the quasi's unquotes? 09:10
in other words: `quasi { my $x; {{{ #`[ $x not visible here ] }}} }`
09:10 itaylor57 left
masak (my argumentation is that quasi code is not "real"/"incorporated" enough for it to have real declarational side effects. this is in line with recent design decisions around quasis and BEGIN blocks.) 09:12
09:12 itaylor57 joined
sacomo is there a way to make the closure's scope available to modules it includes? "return -> { my $var = 123; use Foo; Foo::bar() }" where $var would be accessible inside bar() without passing it in? Not sure if that is even a good idea, just wondering if it is possible. 09:14
09:15 zakharyas joined
geekosaur uh, it wouldn;t be visible there anyway. 09:16
but it sounds like you might want dynamic variables
my $*var = 123; ... sub that uses $*var internally ... 09:17
sacomo geekosaur, thanks, I will take a look
geekosaur that 'my' creates a variable in its lexical scope (specifically within the braces), not module scope. the name does not exist elsewhere. 09:18
sacomo ok 09:19
geekosaur 'our' creates a package variable, but that still wouldn't be visible inside of Foo module unless it also used 'our' to bring it in scope
docs.perl6.org/language/variables#The_*_Twigil docs.perl6.org/language/variables#..._and_Scope 09:20
09:25 wamba joined 09:28 Cabanossi left 09:31 Cabanossi joined
scimon I would veer towards the "Not a good idea" in most cases :) 09:39
moritz dynamic variables are great in grammars 09:40
because the scope of a dynamic variable inside a grammar corresponds to a lexical scope in the text you parse 09:41
09:42 robertle joined
ZzZombo m: say 'a'.ords[0].WHAT 09:42
camelia (Int)
ZzZombo What is the size of Int? 09:43
moritz Int is bigint 09:44
m: say 2**100
camelia 1267650600228229401496703205376
moritz m: say 2**1000
camelia 10715086071862673209484250490600018105614048117055336074437503883703510511249361224931983788156958581275946729175531468251871452856923140435984577574698574803934567774824230985421074605062371141877954182153046474983581941267398767559165543946077062914…
09:47 sena_kun joined 09:49 koto joined, koto left, sena_kun left, sena_kun joined 09:51 sena_kun left 09:59 sena_kun joined 10:00 domidumont1 joined 10:02 domidumont left, konsolebox left 10:08 sena_kun left, sena_kun joined, sena_kun left 10:09 sena_kun joined, konsolebox joined
ZzZombo holy... 10:10
that's one too many...
10:14 Cabanossi left 10:16 Cabanossi joined 10:18 mcmillhj joined 10:19 zakharyas1 joined 10:22 mcmillhj left 10:26 zakharyas1 left 10:27 bisectable6 left, bisectable6 joined 10:28 zakharyas1 joined 10:32 mcmillhj joined 10:37 mcmillhj left 10:41 AlexDaniel joined 10:46 kerframil joined, mcmillhj joined, gregf_ joined 10:49 zakharyas1 left 10:51 mcmillhj left 10:58 abraxxa left 10:59 mcmillhj joined, abraxxa joined 11:01 piojo left 11:03 mcmillhj left 11:05 parv left
tyil how to override the standard "Usage:" response in a perl 6 program if the arguments dont match the MAIN's signature? 11:09
11:09 kerframil left 11:10 kerframil joined
tadzik write your own HELP() iirc 11:11
or USAGE? hmm
scimon USAGE I believe.
docs.perl6.org/language/functions#...ntry-USAGE
(The $*USAGE variable is nice as it give you the default message and then you can add to it) 11:12
tyil cool, thanks 11:13
11:15 mcmillhj joined 11:17 eliasr joined 11:20 ivans_ joined
scovit Hello, how to disable strict from the command line "the fast way"? I am thinking about something like -M/strict or like this 11:20
11:21 mcmillhj left
scovit googling this I just get an inconclusive discussion on the mailing list 11:21
where people propose good arguments and get totally ignored
11:23 ivans left
timotimo "no strict" isn't a feature that got much love in the past 11:25
it still has a rather severe performance impact
hm, actually 11:26
m: my $a; for ^10_000_000 { $a++ }; say $a; say now - INIT now 11:27
camelia 10000000
1.1738138
timotimo m: no strict; for ^10_000_000 { $a++ }; say $a; say now - INIT now
camelia 10000000
5.12958426
scimon Weeee
I see what you mean.
11:27 itaipu joined
ilmari m: no strict; my $a; for ^10_000_000 { $a++ }; say $a; say now - INIT now 11:27
camelia 10000000
1.20387895
11:28
lookatme :) 11:29
ZzZombo timotimo: uh, I forgot what do I have to do in order to create my custom encoder/decoder/whatever? Can I show me again?
timotimo m: our $a; for ^10_000_000 { $a++ }; say $a; say now - INIT now
camelia 10000000
1.184042
lookatme ZzZombo, you can check the irc log
ZzZombo where?
lookatme irc.perl6.org 11:30
11:30 kaare__ joined
timotimo github.com/rakudo/rakudo/blob/mast...ncoding.pm - implement this role with a class 11:30
scovit timotimo it is a pity but most of the time I would pay that for having nostrict
perl6 -ne 'no strict; @F = .split(/\s/); $norm = @F[1] unless defined $norm; say @F[0], "\t", @F[1]/$norm;'
perl -nae '$norm = $F[1] unless defined $norm; print $F[0], "\t", $F[1]/$norm, "\n";'
timotimo github.com/rakudo/rakudo/blob/mast...try.pm#L34 - call this method on Encoding::Registry if you want your encoding to be available everywhere by just passing its name rather than the class 11:31
11:31 kaare_ left
scovit more people using perl6 for this kind of simple things might help improving performances 11:31
timotimo github.com/rakudo/rakudo/blob/mast...Encoder.pm - implement this role in the thing you return from your Encoding's "encoder" method
scimon I don't see why adding my twice is harder than writing no strict.
scovit scimon it is 11:32
since no strict might be just -E instead of -e
11:32 nadim left
scimon Thing is when I'm writing cmd line perl5 I use my because I just use my by default. 11:33
timotimo i'm not sure why you write $norm //= @F[1] in long hand there :)
scovit timotimo sure I'm not used to // too much but you are right
timotimo m: my $norm = 123; given .split(/\s/) { my $norm //= .[1]; say .[0], "\t", .[1] / $norm } 11:34
camelia Cannot resolve caller split(Any, Regex); Routine does not have any candidates. Is only the proto defined?
in block <unit> at <tmp> line 1
timotimo m: $_ = "1234 9876"; my $norm = 123; given .split(/\s/) { my $norm //= .[1]; say .[0], "\t", .[1] / $norm } 11:35
camelia 1234 1
timotimo oh, one my too many, heh.
m: $_ = "1234 9876"; my $norm = 123; given .split(/\s/) { $norm //= .[1]; say .[0], "\t", .[1] / $norm }
camelia 1234 80.292683
timotimo yeah, not really short.
m: $_ = "1234 9876"; my $norm = 123; $_ .= split(/\s/); $norm //= .[1]; say .[0], "\t", .[1] / $norm
camelia 1234 80.292683
Juerd .words :) 11:37
timotimo not the same thing!
m: say "1234 999".split(/\s/).perl; 11:38
camelia ("1234", "", "", "", "", "", "", "999").Seq
timotimo m: say "1234 999".words.perl;
camelia ("1234", "999").Seq
Juerd True, but was the split correct in the first place? :)
mniip ooh. Now that I have a higher DPI display I can actually make out the N and L in ␤! 11:39
timotimo :D
mniip it used to look like some kind of wiggly line
timotimo when will we make .=words; short hand for $_ .= words 11:40
m: $_ = "hi there"; .=words; .say
camelia (hi there)
timotimo it already is!
mniip timotimo, be consistent and make '=x' shorthand for '$_=x'
11:41 greppable6 joined, ChanServ sets mode: +v greppable6
timotimo m: sub prefix:<=>($value) { $CALLER::_ = $value }; .say; =99; .say 11:41
camelia ===SORRY!===
Cannot find method 'ast' on object of type NQPMu
Juerd mniip: Unary = would easily be confused with pod
timotimo m: sub prefix:<=>($value) { CALLER::('$_') = $value }; .say; =99; .say
camelia ===SORRY!===
Cannot find method 'ast' on object of type NQPMu
timotimo is this about pod parsing?
m: =99
camelia 5===SORRY!5=== Error while compiling <tmp>
Preceding context expects a term, but found infix = instead
at <tmp>:1
------> 3=7⏏0599
timotimo hm. wow?
Juerd m: =lc 11:42
camelia 5===SORRY!5=== Error while compiling <tmp>
Preceding context expects a term, but found infix = instead
at <tmp>:1
------> 3=lc7⏏5<EOL>
Juerd m: =head1
camelia 5===SORRY!5=== Error while compiling <tmp>
Preceding context expects a term, but found infix = instead
at <tmp>:1
------> 3=head17⏏5<EOL>
timotimo ^- that's also what you get when you have some invalid pod after the thing
yeah
Juerd Note the location of the ⏏ though. It's before 99, but after lc and head1
timotimo ah, interesting indeed 11:43
that internal error is still bad
m: sub prefix:<≠>($value) { CALLER::('$_') = $value }; .say; ≠99; .say
camelia (Any)
99
timotimo .u ₌
yoleaux U+208C SUBSCRIPT EQUALS SIGN [Sm] (₌)
timotimo absolutely perfect.
m: sub prefix:<₌>($value) { CALLER::('$_') = $value }; .say; ₌99; .say 11:44
camelia (Any)
99
lookatme m: sub prefix:<=>($value) { $CALLER::("_") = $value }; .say; prefix:<=>(99); .say
camelia (Any)
99
lookatme m: sub prefix:<*>($value) { $CALLER::("_") = $value }; .say; *99; .say 11:45
camelia (Any)
99
11:45 margeas joined
lookatme m: sub prefix:<_>($value) { $CALLER::("_") = $value }; .say; _99; .say 11:45
camelia 5===SORRY!5=== Error while compiling <tmp>
Undeclared name:
_99 used at line 1
11:45 cdg joined
timotimo m: sub prefix:<_>($value) { $CALLER::("_") = $value }; .say; _\99; .say 11:48
camelia 5===SORRY!5=== Error while compiling <tmp>
Confused
at <tmp>:1
------> 3e) { $CALLER::("_") = $value }; .say; _\7⏏0599; .say
timotimo m: sub prefix:<=>($value) { $CALLER::("_") = $value }; .say; =\99; .say
camelia ===SORRY!===
Cannot find method 'ast' on object of type NQPMu
timotimo m: sub postfix:<=>($value) { $CALLER::("_") = $value }; .say; 99=; .say
camelia ===SORRY!===
Cannot find method 'ast' on object of type NQPMu
11:50 cdg left
ilmari hm, no Set.power-set method? 11:53
lookatme what is power set ? 11:55
ilmari the set of all subsets of a set 11:56
moritz m: say (1, 2, 3).combinations
camelia (() (1) (2) (3) (1 2) (1 3) (2 3) (1 2 3))
moritz the logic is already in List.combinations
m: set(1, 2, 3).combinations
camelia ( no output )
moritz m: say set(1, 2, 3).combinations
camelia (() (1 => True) (3 => True) (2 => True) (1 => True 3 => True) (1 => True 2 => True) (3 => True 2 => True) (1 => True 3 => True 2 => True))
11:58 HoboWithAShotgun joined
lookatme m: for ^10_0000 { my $x = 1 (elem) set(1, 2, 3, 4); }; say now - INIT now; 12:02
camelia 1.2249444
lookatme m: for ^10_0000 { my $x = 1 (elem) (1, 2, 3, 4); }; say now - INIT now;
camelia 0.015957
lookatme m: my @f = 1, 2, 3, 4; for ^10_0000 { my $x = 1 (elem) @f; }; say now - INIT now; 12:03
camelia 0.3875291
lookatme m: my %f := set(1, 2, 3, 4); for ^10_0000 { my $x = 1 (elem) %f; }; say now - INIT now;
camelia 0.1006326
12:06 cdg joined 12:08 kaare__ left 12:09 lookatme left 12:11 cdg left 12:14 kaare_ joined, markmont left 12:15 konsolebox left 12:16 rgrau joined, konsolebox joined 12:20 ryn1x joined 12:21 xtreak left 12:22 ryn1x left 12:23 zakharyas left 12:26 Ven joined, Ven is now known as Guest25798 12:31 konsolebox left 12:33 konsolebox joined 12:37 kaare_ left, kaare_ joined 12:44 araraloren joined
Geth doc: feef77ea41 | (Tom Browder)++ (committed using GitHub Web editor) | doc/Language/glossary.pod6
add description of a “twine”
12:54
synopsebot Link: doc.perl6.org/language/glossary
12:55 markmont joined
Geth doc: ae1da58aac | (Tom Browder)++ (committed using GitHub Web editor) | doc/Language/glossary.pod6
fix typo, add commas
12:58
12:59 kalkin-- left 13:00 konsolebox left, Guest25798 left, MasterDuke left, abraxxa left 13:01 kalkin- joined, abraxxa joined, konsolebox joined 13:06 wamba left 13:07 koto joined 13:08 konsolebox left 13:09 konsolebox joined 13:10 koto left, sena_kun left 13:12 mcmillhj joined 13:15 konsolebox left
Geth doc: 4fd59ee4c4 | (Tom Browder)++ (committed using GitHub Web editor) | doc/Language/glossary.pod6
correct the example
13:15
synopsebot Link: doc.perl6.org/language/glossary
13:15 konsolebox joined 13:17 mcmillhj left 13:19 piojo joined 13:26 philomath_ joined 13:27 konsolebox left 13:28 konsolebox joined 13:35 AlexDaniel left 13:40 mcmillhj joined 13:55 abraxxa left 13:56 philomath_ is now known as pip, pip is now known as this, this is now known as new, new is now known as oops 13:57 zakharyas joined, dj_goku_ left 14:04 Morfent joined 14:07 Merfont left 14:08 cdg joined, cdg left, cdg joined 14:15 Cabanossi left 14:16 Cabanossi joined 14:17 cdg_ joined 14:20 perlpilot joined, cdg left 14:22 mniip left, mniip joined 14:23 oops left, mson joined 14:35 philomath_ joined 14:40 domidumont1 left 14:41 domidumont joined 14:43 Cabanossi left 14:45 Ven joined, Ven is now known as Guest40983 14:46 mattr joined, Cabanossi joined
ZzZombo Can I filter out/replace all surrogate pairs out of my UTF-16 string? 14:48
timotimo what format do you have the utf16 in? an 8-bit buffer or a 16-bit buffer? 14:49
or, like, did you already decode code units?
ZzZombo it's utf16
I have the original string, BTW.
Can't I work it out there first? 14:50
timotimo you mean the perl6 utf16 type, yes?
ZzZombo Yes.
timotimo oh, if you have the Str, you just have to filter anything with a codepoint above a certain number
ZzZombo .ords is it?
timotimo yeah 14:51
though i'm not sure if there's any combiners in that region
in that case you'd have to .NFC or .NFD to get actual code points
14:52 troys joined
ZzZombo m: say (.ords,.NFC) with 'asd{-+ }Я✉🔔' 14:52
camelia ((97 115 100 123 45 43 32 125 1071 9993 128276) NFC:0x<0061 0073 0064 007b 002d 002b 0020 007d 042f 2709 1f514>)
ZzZombo m: say (.ords,.NFC.contents) with 'asd{-+ }Я✉🔔' 14:53
camelia No such method 'contents' for invocant of type 'NFC'
in block <unit> at <tmp> line 1
timotimo you want .list
ZzZombo m: say (.ords,.NFC.list) with 'asd{-+ }Я✉🔔'
camelia ((97 115 100 123 45 43 32 125 1071 9993 128276) (97 115 100 123 45 43 32 125 1071 9993 128276))
ZzZombo Yea... why does Buf implement one, the Uni the other? 14:54
timotimo the difference between ords and .NFC.list comes down to combining characters
.u combining
yoleaux U+0300 COMBINING GRAVE ACCENT [Mn] (◌̀)
U+0301 COMBINING ACUTE ACCENT [Mn] (◌́)
U+0302 COMBINING CIRCUMFLEX ACCENT [Mn] (◌̂)
ZzZombo m: say (.ords,.NFC.list) with 'a◌̀sd{-+ }Я✉🔔' 14:55
camelia ((97 9676 768 115 100 123 45 43 32 125 1071 9993 128276) (97 9676 768 115 100 123 45 43 32 125 1071 9993 128276))
timotimo m: say (.ords, .NFC.list) given "a\c[combining grave accent]\c[combining acute accent]"
camelia ((224 769) (224 769))
14:55 comborico1611 joined
timotimo oh, huh? 14:55
ZzZombo I don't see any difference
timotimo i must be remembering something old
anyway, gotta go afk again, but from that you'd just replace any number above 0x10000 with, for example, the replacement character 14:56
u: replacement
unicodable6 timotimo, U+FFFC OBJECT REPLACEMENT CHARACTER [So] ()
timotimo, U+FFFD REPLACEMENT CHARACTER [So] (�)
14:56 abraxxa joined 15:02 zakharyas left
ZzZombo Great, works as far as I can see. 15:03
timotimo += Inf ;) 15:04
15:07 abraxxa left
Geth atom-language-perl6: vmg++ created pull request #73:
grammar: Ensure all captures have a 'name' key
15:08
15:09 wamba joined 15:12 mattr left 15:15 bwisti joined 15:19 mcmillhj left 15:21 mcmillhj joined 15:26 domidumont left, mcmillhj left 15:30 Cabanossi left 15:31 Cabanossi joined 15:32 Sgeo_ joined 15:37 mcmillhj joined 15:41 cdg_ left, Guest40983 left, cdg joined 15:43 kerframil left 15:44 kerframil joined 15:45 cdg_ joined 15:46 cdg left, cdg__ joined 15:47 troys is now known as troys_ 15:49 HoboWithAShotgun left 15:50 cdg_ left, robertle left 15:57 markmont left 15:58 markmont joined, cdg__ left 15:59 cdg joined 16:03 zakharyas joined 16:04 domidumont joined 16:05 troys_ is now known as troys 16:06 domidumont left 16:07 domidumont joined
tony-o .tell Tux bench now has cpu/sys/usr times in it 16:07
yoleaux tony-o: I'll pass your message to Tux.
16:15 Mrofnet joined 16:18 Morfent left 16:24 piojo left 16:26 piojo joined 16:28 Cabanossi left 16:29 scimon left 16:30 Cabanossi joined 16:31 robertle joined 16:35 Mrofnet is now known as Morfent 16:39 ufobat___ left, cdg left 16:40 cdg joined 16:41 cdg_ joined 16:42 Ven joined, Ven is now known as Guest48681 16:43 Morfent left 16:45 cdg left 16:55 domidumont left 16:56 domidumont joined 17:00 wamba left, piojo1 joined 17:01 piojo left
Geth atom-language-perl6: 81b97522ea | (Vicent Marti)++ | grammars/perl6fe.cson
grammar: Ensure all captures have a 'name' key
17:09
atom-language-perl6: 382720261a | (Patrick Spek)++ (committed using GitHub Web editor) | grammars/perl6fe.cson
Merge pull request #73 from vmg/vmg/fixes

grammar: Ensure all captures have a 'name' key
17:11 bolts joined 17:14 troys is now known as troys_ 17:21 Guest48681 is now known as Ven`` 17:32 itaipu left 17:33 Morfent joined 17:34 itaipu joined 17:36 Mrofnet joined 17:39 Morfent left 17:43 Cabanossi left 17:46 Cabanossi joined
moritz .u MESSAGE 17:48
yoleaux U+0095 MESSAGE WAITING [Cc] (<control>)
U+009E PRIVACY MESSAGE [Cc] (<control>)
moritz never heard of those
17:51 Ven`` left 17:52 philomath_ left 17:53 itaipu left 17:55 ivans_ left 18:01 ivans joined 18:03 zakharyas left, Mrofnet left 18:05 HoboWithAShotgun joined 18:12 troys_ is now known as troys 18:21 zakharyas joined 18:22 john_parr_ joined 18:24 john_parr left, john_parr_ is now known as john_parr 18:35 cdg_ left 18:36 comborico1611 left 18:37 kaare_ left 18:38 darutoko left 18:39 cdg joined 18:40 cdg left 18:41 mcmillhj left, kaare_ joined 18:42 cdg joined 18:44 Cabanossi left 18:46 Cabanossi joined 18:47 ChoHag left 18:50 comborico1611 joined 18:51 mcmillhj joined 18:54 committable6 left, committable6 joined 18:55 committable6 left, committable6 joined, ChanServ sets mode: +v committable6, committable6 left 18:56 committable6 joined 18:58 committable6 left, committable6 joined, ChanServ sets mode: +v committable6 19:05 ChoHag joined 19:13 AlexDaniel joined 19:15 bdmatatu joined
Geth ecosystem: f85867ce1a | (Brian Duggan)++ | META.list
Remove OAuth2::Client::Google (now on CPAN)
19:18
19:24 perigrin joined
buggable New CPAN upload: OAuth2-Client-Google-0.1.1.tar.gz by BDUGGAN cpan.metacpan.org/authors/id/B/BD/...1.1.tar.gz 19:33
19:38 rgrau left 19:40 ChoHag left 19:42 kaare_ left 19:43 Cabanossi left 19:45 silug joined, zakharyas left 19:46 Cabanossi joined 19:47 ChoHag joined 19:50 ShalokShalom joined 19:53 mr-foobar joined 19:54 releasable6 left, releasable6 joined, ChanServ sets mode: +v releasable6, AlexDaniel left 19:56 mcmillhj left 19:57 eliasr left 20:04 troys is now known as troys_ 20:09 Morfent joined 20:10 mcmillhj joined 20:11 domidumont left 20:15 char_var[buffer] left, Cabanossi left, espadrine joined, mcmillhj left 20:16 Cabanossi joined 20:22 cdg left 20:23 cdg joined 20:24 Aaronepower joined 20:25 mcmillhj joined 20:26 epony left 20:27 bdmatatu left 20:29 troys_ is now known as troys
comborico1611 Quiet day, huh? 20:39
moritz looks like :) 20:40
comborico1611 Are you into martial arts?
moritz no 20:41
but my wife is, at least into one branch
20:41 cdg_ joined
comborico1611 How come the Germans don't have their own? 20:41
moritz that's a surprisingly good question 20:42
I guess one part of it is that Germany doesn't have a long unified culture 20:43
comborico1611 It just occurred to me, you being German.
moritz many parts have (Bavaria, Saxonia, etc.), but "Germany" isn't very old
comborico1611 I didn't realize that.
20:43 Cabanossi left
comborico1611 Prussia started when? 20:43
And why does it sound like Russia? I never had a teacher explain that. 20:44
moritz but, I'm not aware of either of those having a string martial arts culture either
comborico1611 Haha.
moritz comborico1611: in German, they don't sound similar. "Preussen" vs. "Russland"
comborico1611 Ah! Mystery finally solved! 20:45
20:45 kaare_ joined, cdg left
comborico1611 I always forget the... Um... Whatever it's called. F r ance isn't France but Francais. 20:45
20:46 cdg_ left, Cabanossi joined
comborico1611 It is unfortunate somebody choose perRussia. I believe Americans don't know what Prussia is because of this. 20:46
pRussia* 20:47
Americans are ignorant enough as it is. lol.
moritz www.quora.com/Why-do-martial-arts-...-from-Asia
comborico1611 No need to confuse us further.
moritz there's only so many phonemes you can combine :-) 20:48
geekosaur that answer ignores things like capoeira that are western but share similarities with asian-style martial arts 20:51
comborico1611 Preussen... How would i say this in my OWN English. I'm not 100% on pronunciation, but I'd call it Parusin. 20:52
Honestly, i think the German spelling is English-enough.
moritz the eu is pronounce like the "oi" in "moisture" 20:53
comborico1611 But no, somebody had to call it pRussia.
moritz let's hope their p-value is low enough :-)
comborico1611 I see. In English, we would just replace oi with ew. Prussen. 20:54
Heh, i don't get your joke.
moritz in statistics, the p-value is related to the strength of evidence 20:56
comborico1611 When I hear the word capoeira, I always think of that 90's movie where a substitute teacher teaches the students it. He then becomes involved in some dangerous undercover drug thing at the school or something.
moritz like, you are trying to test if some new drug is better than not doing anything. But, it could be random fluctuation 20:57
comborico1611 I see.
moritz so, the lower your p-value, the more confident you are when distinnguishing the cases
hence, you need a very low p-value to distinguish russia and prussia :-)
comborico1611 *smiles blankly 20:58
moritz ok, I admit, that was very nerdy :)
comborico1611 Do you use much mathy examples in your Fundamentals? Mathy is difficult to define. It's always refreshing when the example uses very basic numbers. 21:00
moritz comborico1611: there are two of the ~12 examples that use basic math 21:01
comborico1611 Where? You sent me something?
geekosaur comborico1611, you might note that the Prussia confusion is self-inflicted; it's not like the Prussians told us how to Anglicize their name 21:02
moritz one is about visualizing disk usage by different files, the other is about plotting number of git commits per contributor
so, not really rocket science
geekosaur (well, strictly, it's probably the British who did it)
comborico1611 Yeah i know! That is the regretful part. I think it didn't even need to be changed/anglicized. 21:03
I think the two biggest topics of programming are, language wars, and do I need to be good at math to program. 21:04
Language Wars includes what's the best programming language to learn first. 21:05
moritz that's the first stage 21:08
ivans too bad the big vs. little endian war is practically over
who doesn't like drama
moritz then the second stage is "I know how to program, but how do I structure it so that I can maintain it?"
comborico1611 Heh, yes stage one, but the biggest stage. Many people desire to be programmers but never seal the deal. 21:09
moritz and maybe the third stage is "what's a good cache key? and how will operating and business interact with my program?"
dunno yet what the fourth stage will be; I'm eager to find out 21:10
comborico1611 Stage two is surprising. Stage three is beyond me knowledge.
My*
I think my talent is in stage two. I love to organize things. 21:11
But I've never seen a ten page code, so I'm not sure what stage two is about. 21:12
21:13 mson left
moritz large code bases don't make good newcomer training material :-) 21:17
21:18 troys is now known as troys_
comborico1611 Probably so. But i excel when i see whole program examples. I have textbooks with just snippets of code. 21:18
ivans I think looking at "real" code bases can be useful, even if you skip 99% of the details 21:19
comborico1611 Stroustrup has been the worst. I think it is the most common method. I'm only aware of one author that gives whole program examples.
Have should be hate* 21:20
ivans I learned C first and it was hard to imagine the difference between typical text book examples and even the simplest real program
but looking at how some utilities like `cat` and `less` are implemented gave me lots of ideas
comborico1611 I've never seen a real program yet. 21:21
ivans then looking at the difference between a GNU and an openbsd implementation was fun :p
comborico1611 Those are C library modules?
ivans they are typical programs you find in a Linux or Unix system
usually written in C
comborico1611 Maybe I'll look at one sometime. I'm trying to jump into networking. I have more books to read first. 21:22
ivans `cat` is very simple: it takes file names as command line arguments and prints the contents of each file
but even though it sounds trivial it's one of the most common programs you'll use in linux 21:23
21:23 Herby_ joined
Herby_ o/ 21:23
comborico1611 Interesting.
ivans there are many programs you find in a linux/unix system that can be basically implemented in less than 100 lines of code 21:24
but looking at how the "real" implementations are written is nice
Herby_ rookie question: I'm using perl6 2017.07 on linux. Whats the easiest way to upgrade to 2017.10?
ivans Herby_: did you install it from you distribution's package manager or manually? 21:25
(and which distro?)
comborico1611 I'm a rookie, as well. :-( 21:26
Herby_ i'm a linux novice user as well but I believe I built it from source?
and galliousOS on a chromebook
and i used checkinstall
not sure if any of that helps
comborico1611: part of the club :) 21:27
ivans me too actually :D
21:27 epony joined 21:28 troys_ is now known as troys, Cabanossi left
ivans Herby_: if you built from sourc I'd assume you just have to build the new version like you did the old one 21:28
comborico1611 (There actually are knowledgeable people on here. ivans is confused. He's no rookie.) 21:29
Herby_ do i need to somehow remove the 2017.07 before building the 2017.10?
21:31 Cabanossi joined
bolts Herby_: I installed the update from source without removing the old version, and it hasn't broken for me, but someone more knowledgeable may have a smarter answer. 21:31
Herby_ bolts: thanks, i'll give it a go 21:32
perlpilot (If you want the experts to show up, suggest to someone that they use rakudobrew ;-) 21:33
Herby_ so guys, I was thinking about using this program called rakudobrew 21:35
ivans Herby_: I just googled and found that you might want to use rakudobrew
21:35 kerframil left
Herby_ :) 21:35
comborico1611 Rakudobrew is like the bat-signal, huh?
perlpilot Herby_: yeah, I build from source without removing the old version all the time. Just be aware that your old version won't be available anymore (which is usually only a problem when there's issues building the new version)
[Coke] ... well, I almost fell for it, having not review more than 4 lines
ivans when I build stuff from source I usually do it in a home directory and make it easy to rm -rf 21:36
comborico1611 Haha.
geekosaur note that rakudobrew is intended for developers, and may be confusing otherwise
[Coke] I use this to do a rebuild, which is kind of the nuclear option:
Herby_ here they come!
comborico1611 Good to know!
ivans I tried to look at how rakudo's "make install" works with multiple versions but I don't know
[Coke] gist.github.com/coke/c13e55d56c17f...0bf9dba0b4
ivans perlpilot: you're a genius
perlpilot only sometimes. other times I'm an idiot 21:37
Herby_ 60% of the time you're right every time
21:37 espadrine left 21:38 mcmillhj left
bolts Is there a way to make r* use single line error and warning messages? I'm trying to write a compiler file for vim so I can use the quickfix window to navigate errors and warnings. 21:38
[Coke] There's an env variable which lets you get json out.
Could probably use that as a base to generate vim-friendly output. Not knowing vim-guts: you can't parse the existing output? 21:39
comborico1611 lol
Does anyone watch Tennis here?
Regardless, Herbie's comment reminds me of the Watson predictions four tennis tournaments. Watson's like if he wins 60% of his first serves there's a 45% chance that he'll win. It's hilarious hilariously confusing. 21:40
perlpilot Is "Tennis" a person or is it like "tennis", but more important :)
comborico1611 Sorry, voice recognition is dictating my capitals. 21:41
21:41 aindilis joined
[Coke] knows enough germans that an occasional capitalized Noun doesn't set off any bells. 21:41
comborico1611 Heh.
Herby_ comborico1611: I do not but I stole that line from the movie Anchorman
[Coke] however, side-rant, apparently "dice" is now allowed to mean one or more. Heathens.
comborico1611 I see.
perlpilot [Coke]: I read that too. It's a crazy world now. :)
comborico1611 The Barbarian horde! 21:42
21:42 mcmillhj joined
bolts [Coke]: I can parse the default output, but it's tricky with how they're formatted. I have a start, but without knowing all of the possible warnings, it's so far trial and error to get them all. I'll take a look at the json output. 21:44
Herby_ does anyone have a beginner friendly resource for dipping toes in to async/concurrency/parallelism?
21:44 mson joined
bolts Vim's support for multiline error messages is a little kludgy. 21:45
[Coke] at least the JSON output gives you something very parsable.
perlpilot JSON++
21:47 kitsunenokenja joined 21:49 mcmillhj left 21:51 markmont left
perlpilot Herby_: Is docs.perl6.org/language/concurrency beginner friendly? 21:57
21:58 Aceeri joined, Aaronepower left 21:59 Aceeri is now known as Guest7088, mcmillhj joined
Herby_ perlpilot: I'll give that a read. Thanks! 22:01
bolts So, $RAKUDO_EXCEPTIONS_HANDLER works great for errors, so far, but warnings aren't printed in json. Am I doing something wrong? 22:04
22:05 mcmillhj left 22:06 ivans left
lizmat because warnings are not caught by CATCH, but by CONTROL ? 22:06
bolts Is there a way to get warnings as json? 22:07
lizmat not that I know atm 22:09
perlpilot Herby_: We do need a good book on this stuff for Perl 6 though.
22:11 kerframil joined 22:13 mcmillhj joined 22:14 ivans joined 22:16 kitsunenokenja left 22:18 markmont joined, pilne joined, mcmillhj left, mr-fooba_ joined, mr-foobar left 22:28 Cabanossi left 22:30 mcmillhj joined 22:31 Cabanossi joined 22:32 pilne left, cdg joined 22:35 mcmillhj left 22:37 pilne joined, cdg left 22:38 Herby_ left
moritz certainly won't be the one to write it 22:40
22:42 comborico1611 left, AndChat|688961 joined, troys is now known as troys_ 22:44 cdg joined 22:45 ccakes_ joined, ccakes_ left 22:47 kitsunenokenja joined 22:48 cdg left 22:49 ShalokShalom left 22:50 mcmillhj joined 22:51 AlexDaniel joined 22:55 mcmillhj left 22:56 char_var[buffer] joined
buggable New CPAN upload: App-Cpan6-0.8.0.tar.gz by TYIL cpan.metacpan.org/authors/id/T/TY/...8.0.tar.gz 23:03
23:04 mr-fooba_ left 23:10 mcmillhj joined 23:11 mr-foobar joined 23:14 mcmillhj left 23:16 robertle left 23:20 kitsunenokenja left 23:27 Mrofnet joined
bolts So, this I what I have so far for the perl6.vim compiler definition: gitlab.com/BoltsJ/dotfiles/blob/ma.../perl6.vim I'm pretty sure I'm missing a bunch of waring types though. 23:28
ugexe tyil: i would suggest removing the folder "perl6-nigger" from your distribution before uploading it to cpan (App-Cpan6-0.8.0.tar.gz) 23:29
tyil oh 23:30
oops :'D
23:30 Cabanossi left, Morfent left, Cabanossi joined
tyil pushed a new version with that removed 23:31
23:43 rindolf left
buggable New CPAN upload: App-Cpan6-0.8.1.tar.gz by TYIL cpan.metacpan.org/authors/id/T/TY/...8.1.tar.gz 23:43
23:47 mr-fooba_ joined 23:48 mr-foobar left
buggable New CPAN upload: App-Cpan6-0.8.2.tar.gz by TYIL cpan.metacpan.org/authors/id/T/TY/...8.2.tar.gz 23:53
23:54 AndChat|688961 left, comborico1611 joined