»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_log/perl6 | UTF-8 is our friend! 🦋
Set by Zoffix on 25 July 2018.
MasterDuke m: multi foo($a) { say "1 $a" }; multi foo($a, $b, Int() $c) { say "3 with Int coercer $a $b $c" }; multi foo($a, $b) { say "2 $a $b"; samewith($a, $b, ("_OK" => 2, "_Cancel" => 3)) }; multi foo($a, $b, @c) { say "3 with array $a $b @c[]" }; multi foo(|c) { say "c " ~ c }; foo(4, 5) 00:03
evalable6 2 4 5
3 with array 4 5 _OK␉2 _Cancel␉3
MasterDuke Xliff: ^^^ looks pretty similar to what you have? but doesn't seem to have any problems
Xliff MasterDuke: Try methods 00:04
m: class A { multi method foo($a) { say "1 $a" }; multi method foo($a, $b, Int() $c) { say "3 with Int coercer $a $b $c" }; multi method foo($a, $b) { say "2 $a $b"; samewith($a, $b, ("_OK" => 2, "_Cancel" => 3)) }; multi method foo($a, $b, @c) { say "3 with array $a $b @c[]" }; multi method foo(|c) { say "c " ~ c }; }; A.new.foo(4, 5) 00:05
evalable6 2 4 5
3 with array 4 5 _OK␉2 _Cancel␉3
Xliff Huh.
MasterDuke: If you want to see the problem in action, you can always check out p6-GtkPlus. ;) 00:06
It takes a LONG time to compile, but maybe not if you run an example.
Checkout latest, and uncomment the block starting here: github.com/Xliff/p6-GtkPlus/blob/m...r.pm6#L113 00:07
Then run github.com/Xliff/p6-GtkPlus/blob/m...erdialog.t 00:08
Unfortunately, you will also need: github.com/Xliff/p6-Pango.git
I need to split this up!
Geth doc: 2f1f7c2d5a | Coke++ | 2 files
fix typo
00:12
doc: a331ec8a94 | Coke++ | xt/words.pws
learn new words
MasterDuke Xliff: should that test die right away? 00:17
Xliff With that block uncommented? Yes.
You should get the circularity message in the console. 00:18
MasterDuke it popped up a dialogue box, i selected a file, clicked exit. it then finished just fine. no circularity message (that block was uncommented)
Xliff What's your rakudo version?
MasterDuke This is Rakudo version 2019.03.1-203-g3060d1d0b built on MoarVM version 2019.03-76-gc10fee65c 00:19
Xliff 2019.03.1-202-gad8b5a649
Oh lordy. Really?
MoarVM version 2019.03-75-g9b1b60f66 00:20
Huh.
MasterDuke: Enough variation to warrant a test. But if it works on your end, I'm not going to sweat too much. 00:21
I have the fix in place, now.
I'll recompile, later. Working on another issue.
MasterDuke btw, i think there was some discussion that github.com/rakudo/rakudo/commit/09...63b30b8ee4 might help your problem with modules recompiling more than they should 00:22
Xliff Ooh! Thank you! 00:24
MasterDuke i wouldn't take my word for it though, should check with nine and/or ugexe 00:25
Xliff ugexe gave me some tips a couple of days ago. Seems to work better, but I've started developing via dual-boot rather than a VM. 00:26
Still am having to recompile a LOT, so maybe I will try the next rakudo pull, soon.
Xliff How can I force a rebuild of moar when it doesn't respond to a bump? 02:14
elcaro Xliff: You could always just delete rakudo/nqp/MoarVM <- this dir 02:35
rakudo builds nqp into the nqp folder, and moar into the nqp/moarvm folder... so just delete the moarvm folder, and the build script will pull a fresh copy and build 02:36
Xliff elcaro: Thanks! I switched to moar-blead for the time being. 02:47
What do I need to do to get CPAN to pull changes from git? 02:57
Elronnd anyone know about the IRC::Client library? Why can't I reply to or send from an irc-join? 03:05
And, why does the .reply method prepend the nickname of the user who's being replied to?
Xliff m: PI.fmt('%.2f').say 04:08
evalable6 (exit code 1) 04===SORRY!04=== Error while compiling /tmp/Xsc31pQN5I
Undeclared name:
PI used at line 1
Xliff m: 3.14159.fmt('%.2f').say 04:08
evalable6 3.14
Elronnd m: pi.fmt('%.2f').say 04:41
evalable6 3.14
Xliff Yeah. I figgered that. :) 04:45
m: say "{$++}" for ^5
evalable6 0
0
0
0
0
Xliff m: say "{++$}" for ^5
evalable6 1
1
1
1
1
Xliff Well crap. 04:46
m: say "{++$}/{++$}/{++$}/{++$}" for ^5
evalable6 1/1/1/1
1/1/1/1
1/1/1/1
1/1/1/1
1/1/1/1
Xliff m: say sprintf("%d", $++) for ^5
evalable6 0
1
2
3
4
Xliff /o\
discord6 <Tyler (Aearnus)> what's the standard way to bundle up a perl6 script to be installed to a bin directory? (something akin to Haskell Stack or Ruby Bundler) 05:43
Xliff m: say (1, 2, 3) >>*<< 2 06:05
evalable6 (exit code 1) Lists on either side of non-dwimmy hyperop of infix:<*> are not of the same length while recursing
left: 3 elements, right: 1 elements
in block <unit> at /tmp/_gfxijvFHJ line 1
Xliff m: say (1, 2, 3) <<*>> 2 06:07
evalable6 (2 4 6)
discord6 <Tyler (Aearnus)> why doesn't this grammar work? grammar G { token TOP { <proof> | <paragraph> }; rule paragraph { [\S\N+]+ }; rule proof { [\s+(\N+)]+ } }; G.parse("hello\nworld\n") # => Grammar::Debugger says it matches, but it returns nil 07:10
discord6 <Tyler (Aearnus)> hmm, it works with #subparse. looks like it isn't consuming all my input. 07:15
jmerelo Tyler: I think you're not capturing the output. You need to surround the result with parentheses 07:40
Xliff m: my @a = <a b c>; say "abccc" ~~ /{ @a }..../.gist; 07:43
evalable6 False
Xliff m: my @a = <a b c>; say "abccc" ~~ /@a.../.gist;
evalable6 False
Xliff m: my @a = <a b c>; say "abccc" ~~ /{@a}.../.gist;
evalable6 False
Xliff m: my @a = <a b c>; say "abccc" ~~ /{@a}.../;
evalable6 「abc」
Xliff m: my @a = <a b c>; say "bbccc" ~~ /{@a}.../;
evalable6 「bbc」
Xliff m: my @a = <a b c>; say "cbccc" ~~ /{@a}.../; 07:44
evalable6 「cbc」
Xliff m: my @a = <a b c>; say "cbccc" ~~ /$<ad>={@a}.../;
evalable6 「cbc」
ad => 「」
Xliff m: my @a = <a b c>; say "cbccc" ~~ /$<ad>={ @a }.../;
evalable6 「cbc」
ad => 「」
Xliff m: my @a = <a b c>; say "cbccc" ~~ /$<ad>=@a.../;
evalable6 「cbcc」
ad => 「c」
Xliff m: my @a = <a b c>; say "abccc" ~~ /$<ad>=@a.../; 07:45
evalable6 「abcc」
ad => 「a」
Xliff m: sub _aa { 1 }; say _aa 07:51
evalable6 1
kawaii morning o/ 07:58
jmerelo kawaii: hi! 07:59
kawaii: how's next version going?
releasable6: status
releasable6 jmerelo, Next release in ≈5 days and ≈11 hours. 12 blockers. 0 out of 204 commits logged
jmerelo, Details: gist.github.com/c902fc4b783e3b5e7a...c58fb76f7f
kawaii jmerelo: looks like there are some blockers, was going to ask AlexDaniel if we're still going ahead with the planned release in 5 days or not (unless they all get magically fixed in that time), the tests with Blin report no regressions though. 08:00
jmerelo kawaii: great :-) AlexDaniel is back to release master? (or whatever the title) 08:01
kawaii jmerelo: no, he's not, but since this the next release is my first I'm taking a lot of guidance from him :)
jmerelo kawaii: best of luck! 08:02
lizmat weekly: github.com/manwar/perlweeklychalle...l5/ch-1.pl 08:34
notable6 lizmat, Noted!
lizmat weekly: engineering.purdue.edu/~mark/perl-.../003/t.pdf
notable6 lizmat, Noted!
lizmat weekly: perl6.eu/regular-pascal.html
notable6 lizmat, Noted!
Geth doc: 4d91061824 | (JJ Merelo)++ | doc/Language/list.pod6
Minor corrections and reflow
08:35
synopsebot Link: doc.perl6.org/language/list
doc: d16658914d | (JJ Merelo)++ | 2 files
Creates a new file for statement prefixes.

This is for #534, but mainly for #2034 Still way to go.
Geth doc: 4ef6886f54 | (JJ Merelo)++ | doc/Language/statement-prefixes.pod6
Fixes description of lazy statement prefix, refs #534 #2034

Thanks for @jnthn clarification in perl6/roast#529
08:52
synopsebot Link: doc.perl6.org/language/statement-prefixes
timotimo is there some way to force bash to complete a filename? 10:41
it drives me absolutely nuts to not be able to tab in some places
like after "gdb --args" it won't autocomplete anything any more
jmerelo timotimo: maybe using bash-it?
I use zsh anyway
timotimo i have no idea what bash-it is 10:42
and hack doesn't have zsh nor fish
though i have root so i could install them
jmerelo timotimo: bash-it is simply a plugin framework for bash. 10:43
timotimo aha, alt-/ will always complete filenames i tseems like 10:45
Geth doc: c379f5b07d | (JJ Merelo)++ | doc/Language/statement-prefixes.pod6
Adds eager, refs #534 #2034
11:56
synopsebot Link: doc.perl6.org/language/statement-prefixes
cpan-p6 New module released to CPAN! Log::Syslog::Native (0.0.9) by 03JSTOWE 11:59
pmurias hi 12:19
AlexDaniel kawaii: feel free to unmark some tickets if you feel like they're not going anywhere or if they're not important 13:26
lizmat and another Perl 6 Weekly hits the Net: p6weekly.wordpress.com/2019/04/15/...hrodinger/
AlexDaniel kawaii: for example R#2576 R#2567 are in my opinion important but there's no movement whatsoever, so last release they were kinda ignored
synopsebot R#2576 [open]: github.com/rakudo/rakudo/issues/2576 [BLOCKER] flapper in t/06-telemetry/01-basic.t on mips
R#2567 [open]: github.com/rakudo/rakudo/issues/2567 [BLOCKER][SEGV] Non-zero wait status: 11 in testt
AlexDaniel kawaii: the deadline is somewhat arbitrary, although it'd be nice if releases were happening with a slightly stricter timeline, so feel free to fix that. IMO it takes a little bit of “wait why do we still have no release this month” for people to focus on fixing things instead of adding new things :) 13:31
kawaii: also, I'll be away for this whole week, probably. Especially so on the weekend 13:35
good luck :)
lizmat AlexDaniel: hope you're going to have a good time 13:39
AlexDaniel kawaii: also, I think there's no *obligation* to make a release. If it turns out that things are very broken then skipping a release is an option, arguably a much better one than releasing buggy rakudo with some rushy workarounds 13:39
kawaii: the dev team is awesome, sometimes you'd see 3-4 blocker resolved per day, so some patience helps also :) 13:40
kawaii AlexDaniel: so what I'm feeling from this discussion is that there probably isn't much point in cutting a release next week unless something urgent comes up that people need?
AlexDaniel lizmat: not exactly, it's wörk 13:41
lizmat: also I'm very stressed right now and kinda happy that I won't need to cut a release in the following months…
lizmat kawaii: will look at the blockers I think I can handle
lizmat wishes AlexDaniel strength 13:41
kawaii lizmat: thank you! As AlexDaniel said it really doesn't look like there are too many major issues, at least things are pretty quiet in here these days and no one is begging for a release like they were for 2019.03 :) 13:42
lizmat kawaii: indeed
kawaii I'm going to keep running Blin once per week, and file issues relating to regressions 13:43
lizmat but since there's not going to be a Star release depending on this release, I would argue that some blockers may be ignored for the 2019.04 release
AlexDaniel that's a good point
kawaii I will wait for more people to complain about a lack of 2019.04 release for now then 13:44
AlexDaniel kawaii: well, no, what I'm saying that is that there's no point in cutting it in exactly 5 days, but during next week it'd be nice
kawaii understood 13:45
AlexDaniel kawaii: keep in mind also that there will be some delays, like blin takes some time to run, it takes some time to review the results, etc.
kawaii I'll run Blin again on the weekend then
AlexDaniel kawaii: you'd also be waiting for a moarvm release, which by the way you have to give green light for once things look good :)
kawaii: I used to run it about a week before a release, then a day or so before the planned date, then once everything was fixed I'd run it again before making a release. If I noticed something fishy, I'd file some tickets and repeat… 13:50
if you're not paying for the uptime out of your pocket then you can do it more often 13:51
it'd be nice to have Blin results like every day or so 13:52
kawaii Nope, it's a server kindly donated by $work, so I can run it 24/7 if we want
AlexDaniel though I don't know how to arrange that easily
lizmat afk for a bit& 13:59
Geth ecosystem/add-command-despatch-module: fd390e32ed | (Kane Valentine)++ (committed using GitHub Web editor) | META.list
Update META.list
14:50
ecosystem: kawaii++ created pull request #449:
Update META.list
14:51
kawaii PS ^ if anyone is creating command-line tools i.e. bots and such, I'd appreciate some feedback on our Command::Despatch module, works nicely for creating commands and subcommands with arguments. 14:52
pmurias kawaii: why is it called Command::Despatch not Command::Dispatch? 15:11
kawaii pmurias: because 'despatch' is the correct spelling in my locale :) 15:12
pmurias what crazy locale is that? ;) 15:13
kawaii pmurias: dictionary.cambridge.org/dictionar...h/despatch :)
pmurias has too run 15:15
kawaii: isn't dispatch also the more common spelling in the uk?
pmurias is not from the uk so he just googled it 15:16
kawaii In more recent times, yes, it seems we've got a lot of American spellings becoming more and more common here.
kawaii Traditionally though, we used 'despatch'. 15:16
sena_kun .oO ( death patch ) 15:20
.oO ( ですパッチ )
kawaii sena_kun: are you able to trigger the travis checks for the ecosystem repo? :) 15:22
sena_kun kawaii, sure
kawaii thanks!
sena_kun kawaii, should I?
give me a second...
kawaii sena_kun: github.com/perl6/ecosystem/pull/449
it failed until I fixed it
just needs to be re-checked
sena_kun kawaii, don't you have enough rights, by the way? You just have to click `Details` right to "continuous-integration/travis-ci/pr — The Travis CI build failed ", and then `Restart build` button(now it is "Cancel build" though). 15:23
kawaii sena_kun: seems that I do now that I logged into travis :) 15:26
thanks though!
sena_kun you are welcome
kawaii hm, my test fails but that's intentional right now (until I write a better one), can I merge anyway or...? 15:27
travis-ci.org/perl6/ecosystem/buil...34170#L397
sena_kun you can merge 15:28
Geth ecosystem: fd390e32ed | (Kane Valentine)++ (committed using GitHub Web editor) | META.list
Update META.list
ecosystem: 527393557c | (Kane Valentine)++ (committed using GitHub Web editor) | META.list
Merge pull request #449 from perl6/add-command-despatch-module

Add Command::Despatch module to ecosystem
sena_kun the main goal is to check that the package is installable from some other machine, not checking that it is 100% working
kawaii great, thanks :)
sena_kun I mean, working 100% of time 15:29
cpan-p6 New module released to CPAN! DB::MySQL (0.5) by 03CTILMES 15:59
Xliff \o 16:41
Can someone tell me how to update my module on CPAN?
vrurg Xliff: just upload the new version? 16:50
Xliff m: use Test; my $a = True; my &f = $a ?? &ok !! &nok; &f 1 == 1, $a ?? 'OK' !! 'NOK' 17:31
evalable6 (exit code 1) 04===SORRY!04=== Error while compiling /tmp/PFOcQs2DUO
Two ter…
Xliff, Full output: gist.github.com/be95f250fab7829b2a...23e363eb06
Xliff m: use Test; my $a = True; my &f = $a ?? &ok !! &nok; &f(1 == 1, $a ?? 'OK' !! 'NOK')
evalable6 ok 1 - OK
Xliff m: use Test; my $a = False; my &f = $a ?? &ok !! &nok; &f(1 == 1, $a ?? 'OK' !! 'NOK')
evalable6 (exit code 1) not ok 1 - NOK
# Failed test 'NOK'
# at /tmp/XnDeYCb_Ym line 1
Xliff m: use Test; my $a = False; my &f = $a ?? &ok !! &nok; &f($a ?? 1 == 1 !! 1 == 0, $a ?? 'OK' !! 'NOK') 17:32
evalable6 ok 1 - NOK
tony-o m: say "meta-value" ~~ / <![ \x[0000] .. \x[001f] ]>+ <?before "l"> / 17:36
evalable6 (signal SIGHUP) «timed out after 10 seconds»
samcv .tell jmerelo I have sent an assignment to my two potential students. to be completed in the next 7 days 17:42
yoleaux 13 Apr 2019 13:09Z <MasterDuke> samcv: i get a warning about non-vectorized code in clang 8.0.0 gist.github.com/MasterDuke17/46224...4c2a71677e
samcv: I'll pass your message to jmerelo.
samcv .tell MasterDuke can you open a bug ticket for this? i will have to get clang 8 and try to fix this. 17:44
yoleaux samcv: I'll pass your message to MasterDuke.
Xliff m: "\308".say 18:36
evalable6 (exit code 1) 04===SORRY!04=== Error while compiling /tmp/jFGJvXyMB0
Unrecog…
Xliff, Full output: gist.github.com/9a7eda2bc21499ca53...fa0676de6e
Xliff m: "\0308".say
evalable6 ␀308
Xliff m: "\0o308".say
evalable6 ␀o308
Xliff m: "\o308".say 18:38
evalable6 (exit code 1) 04===SORRY!04=== Error while compiling /tmp/AKKbNrHTuN
'308' is not a valid number
at /tmp/AKKbNrHTuN:1
------> 03"\o30808⏏04".say
Xliff m: "\x308".say
evalable6 Xliff, rakudo-moar b7562d3b0: OUTPUT: «̈␤»
Xliff m: "\o38".say 18:40
evalable6 (exit code 1) 04===SORRY!04=== Error while compiling /tmp/q_QGp8aRYZ
'38' is not a valid number
at /tmp/q_QGp8aRYZ:1
------> 03"\o3808⏏04".say
Geth doc: 809ee43546 | Coke++ | doc/Language/statement-prefixes.pod6
Fix usage to avoid neologism

Fix typo
18:41
synopsebot Link: doc.perl6.org/language/statement-prefixes
Xliff m: "\o[38]".say
evalable6 (exit code 1) 04===SORRY!04=== Error while compiling /tmp/ZR7QToOPZn
'38' is not a valid number
at /tmp/ZR7QToOPZn:1
------> 03"\o[3808⏏04]".say
Xliff So we can't add escaped octal literals in Perl6?
Octals look to be allowed due to S02, but I guess that's changed? 18:43
thundergnat 308 is not a valid octal number. 18:45
m: say 0o307 18:46
evalable6 199
Xliff m: "\o37".say 18:46
evalable6 18:47
Xliff Dur...
m: "\o307".say
evalable6 Ç
Xliff \o/
Xliff m: $?FILE.say 20:49
evalable6 /tmp/WTGZYAXUlz
Xliff Hum.... 21:04
Xliff gist.github.com/Xliff/2cb5ae39efaf...6960c03332 21:16
Can someone take a look and see if I made a mistake?
Thanks.
Ahh! Cruddy gcc visibility rules! /o\ 21:42
Is there a way to make a regex automatically pass if a scalar value is true? 21:56
sena_kun m: say 1 if 3 ~~ /<?>/ 21:58
evalable6 1
sena_kun something like that?
jnthn m: say 1 if 3 ~~ /<?{self.orig}>/ 22:02
evalable6 (exit code 1) 04===SORRY!04=== Error while compiling /tmp/SLQWjQnKAs
'self' …
jnthn, Full output: gist.github.com/e87e2e4b6d2133e721...e2814b3f94
jnthn m: say 1 if 3 ~~ /<?{$/.orig}>/
evalable6 1
jnthn m: say 1 if 0 ~~ /<?{$/.orig}>/
evalable6
jnthn I...don't want to know why you want to do this :P
If just smart-matching, then just match against *.so 22:03
Xliff m: my $a = True; sub a-or-b { $a ?? /^ 'a'/ !! /^ 'b'/ }; say 'aaa' ~~ &a-or-b; 22:05
evalable6 /^ 'a'/
Xliff m: my $a = True; sub a-or-b { $a ?? /^ 'a'/ !! /^ 'b'/ }; say ('aaa' ~~ &a-or-b); 22:06
evalable6 /^ 'a'/
jnthn Ohh...you meant a value other than the one being matched against... :)
/<?{ $that-value }> || ...other stuff.../ I guess
Xliff m: my $a = True; sub a-or-b { $a ?? /^ 'a'/ !! /^ 'b'/ }; say &a-or-b.^name; 22:07
evalable6 Sub
Xliff m: my $a = True; sub a-or-b { $a ?? /^ 'a'/ !! /^ 'b'/ }; say &a-or-b().^name;
evalable6 Regex
Xliff m: my $a = True; sub a-or-b { $a ?? /^ 'a'/ !! /^ 'b'/ }; say ('aaa' ~~ &a-or-b());
evalable6 「a」
Xliff m: my $a = False; sub a-or-b { $a ?? /^ 'a'/ !! /^ 'b'/ }; say ('aaa' ~~ &a-or-b());
evalable6 Nil
Xliff m: my $a = False; sub a-or-b { $a ?? /^ 'a'/ !! /^ 'b'/ }; say ('baa' ~~ &a-or-b()); 22:08
evalable6 「b」
Xliff \o/
m: my $a = False; sub a-or-b { $a ?? /^ 'a'/ !! /^ 'b'/ }; say ('baa' ~~ a-or-b());
evalable6 「b」
Xliff Now to figure out how to use a-or-b in a larger regex.
m: my $a = False; sub a-or-b { $a ?? /^ 'a'/ !! /^ 'b'/ }; say ('baa' ~~ / <?{ a-or-b() }> .. / ); 22:09
evalable6 Nil
Xliff m: my $a = False; sub a-or-b { $a ?? /^ 'a'/ !! /^ 'b'/ }; say ('baa' ~~ / <a-or-b()> .. / ); 22:10
evalable6 (exit code 1) No such method 'a-or-b' for invocant of type 'Match'
in block <unit> at /tmp/I7Rtfz7_bq line 1
Xliff m: my $a = False; sub a-or-b { $a ?? /^ 'a'/ !! /^ 'b'/ }; say ('baa' ~~ / <a-or-b> .. / );
evalable6 (exit code 1) No such method 'a-or-b' for invocant of type 'Match'
in block <unit> at /tmp/gnYm02hENe line 1
Xliff m: my $a = False; sub a-or-b { $a ?? /^ 'a'/ !! /^ 'b'/ }; say ('baa' ~~ / <&a-or-b> .. / );
evalable6 (exit code 1) Sub object coerced to string (please use .gist or .perl to do that)
in blo…
Xliff, Full output: gist.github.com/6cc4b0ede88399a123...865602275a
Xliff m: my $a = False; sub a-or-b { $a ?? /^ 'a'/ !! /^ 'b'/ }; say ('baa' ~~ / <?{ a-or-b() }> / ); 22:11
evalable6 Nil
Xliff m: my $a = False; sub a-or-b { $a ?? /^ 'a'/ !! /^ 'b'/ }; say ('baa' ~~ / { a-or-b() } / );
evalable6 「」
Xliff m: my $a = False; sub a-or-b { $a ?? /^ 'a'/ !! /^ 'b'/ }; say ('baa' ~~ / ?{ a-or-b() } / );
evalable6 (exit code 1) 04===SORRY!04=== Error while compiling /tmp/5CW3NAGDzT
Quantif…
Xliff, Full output: gist.github.com/90504ddaf40fbda21a...c3f4a0a3ca
Xliff OK. Needs more work, but that's a start. 22:12
jnthn: This may be me attempting to be more clever than I should be. :/
jnthn :) 22:26
sleep o/
timotimo o/
Xliff timotimo: Still there? 23:27