[00:08] Neatest way is probably `my &multi = do { proto foo(|) { * }; multi foo($a) { }; multi foo($a, $b) { }; &foo }` [00:42] *** salim joined [00:47] *** gdonald joined [00:48] *** entonian joined [00:49] *** entonian left [01:25] *** aborazmeh left [01:40] *** salim left [01:45] *** Sgeo left [01:47] *** Sgeo joined [01:50] *** Sgeo left [01:50] El_Che: oh, sounds familiar [01:50] El_Che: https://github.com/Raku/Blin/blob/7d81839a2f3464c2f2812cdd282ef74b1057abee/bin/blin.p6#L30 [01:51] *** Sgeo joined [01:53] El_Che: it is supposed to be fixed, could it be that your rakudo is too old? [02:05] *** Manifest0 left [02:06] *** Manifest0 joined [02:28] *** mowcat joined [02:32] jnthn that's pretty neat [02:33] But let's say the multis were being passed in by a method, no simple way to pull that off: everything more or less needs to be available at compile time yeah? [03:20] *** mowcat left [03:25] *** mowcat joined [03:36] *** mowcat left [03:39] *** mowcat joined [03:50] *** mowcat left [04:06] *** VPS joined [04:30] *** rainmanjam joined [04:46] *** aeruder left [05:10] *** ensamvarg_g6 joined [05:26] *** rindolf joined [05:29] *** farcas1982regreg left [05:42] *** farcas1982regreg joined [05:45] *** mahafyi joined [05:50] *** farcas1982regreg left [06:00] *** lil joined [06:01] *** lil left [06:07] *** rainmanjam left [06:07] *** rainmanjam joined [06:15] *** brtastic joined [06:31] *** rindolf left [07:00] *** sena_kun joined [07:02] *** rindolf joined [07:07] *** Geth left [07:07] *** Geth joined [07:08] ¦ doc: 7abd2c864c | lukasvalle++ | doc/Type/Supply.pod6 [07:08] ¦ doc: Explicit mention behavior with negative values for interval. Closes 'Promise.in/.at and Supply.interval work with zero and negative values' in #2632 [07:08] ¦ doc: review: https://github.com/Raku/doc/commit/7abd2c864c [07:08] ¦ doc: 2633b79e9c | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | doc/Type/Supply.pod6 [07:08] ¦ doc: Merge pull request #3358 from lukasvalle/master [07:08] ¦ doc: [07:08] ¦ doc: Explicit mention behavior with negative values for interval. [07:08] ¦ doc: review: https://github.com/Raku/doc/commit/2633b79e9c [07:08] Link: https://docs.raku.org/type/Supply [07:08] DOC#2632 [open]: https://github.com/Raku/doc/issues/2632 [Hacktoberfest][RFE][big][docs][good first issue][help wanted][new][⚠ Top Priority ⚠] Checklist for 6.d [08:07] *** evalable6 left [08:07] *** linkable6 left [08:07] *** evalable6 joined [08:10] *** linkable6 joined [08:10] i am not able to do : zef install Inline::Perl5 [08:10] https://pastebin.com/7jkGq7Fm [08:15] *** dotdotdot left [08:16] nine: ↑ [08:16] mahafyi: do you have perl-dev package installed? [08:16] AlexDanel ;checking [08:18] AlexDaniel : checking [08:19] *** holyghost joined [08:22] different errors, trying --force-build ... now [08:22] *** robertle joined [08:23] *** dotdotdot joined [08:25] mahafyi: what Perl version is that? [08:25] https://pastebin.com/HPdmgpg7 [08:26] nine : (v5.24.1) [08:26] also, which rakudo version? :) [08:26] ahh, rakudo star 2020.01 [08:27] AlexDaniel : yes This is Rakudo version 2020.01 built on MoarVM version 2020.01.1implementing Perl 6.d. [08:27] Ah, wrap_keyword_plugin is only available since 5.28 [08:27] nine : ah ok [08:27] mahafyi: you can install Inline::Perl5 0.47 till I fix this issue [08:27] thanks, will upgrade and posy [08:27] or upgrade :) [08:28] nine : thanks! [08:31] nine++ [08:34] syntax error : zef install Inline::Perl5:ver<0.47> [08:36] decided not to upgrade perl on this machine, but will do so on anither and post back. in the meanwhile not sure how to install the older verion 0.47 [08:39] *** robertle left [08:40] it is ok: i will do again on a latest perl verion and let you know. Thanks. [08:47] *** robertle joined [08:53] *** Sgeo left [08:54] *** Sgeo joined [08:56] *** Altai-man_ joined [08:59] *** sena_kun left [08:59] *** sjm_uk joined [08:59] *** brtastic left [09:04] *** robertle left [09:05] *** robertle joined [09:13] ¦ ecosystem: robertlemmen++ created pull request #489: Add ReadWriteLock to ecosystem [09:13] ¦ ecosystem: review: https://github.com/Raku/ecosystem/pull/489 [09:16] *** grumble left [09:17] *** grumble joined [09:26] ¦ ecosystem: f412191da3 | (Robert Lemmen)++ (committed using GitHub Web editor) | META.list [09:26] ¦ ecosystem: Add ReadWriteLock to ecosystem [09:26] ¦ ecosystem: [09:26] ¦ ecosystem: See https://github.com/robertlemmen/raku-readwritelock [09:26] ¦ ecosystem: review: https://github.com/Raku/ecosystem/commit/f412191da3 [09:26] ¦ ecosystem: eb9a572ad8 | (Aleks-Daniel Jakimenko-Aleksejev)++ (committed using GitHub Web editor) | META.list [09:26] ¦ ecosystem: Merge pull request #489 from robertlemmen/patch-1 [09:26] ¦ ecosystem: review: https://github.com/Raku/ecosystem/commit/eb9a572ad8 [09:26] *** luk joined [09:27] *** chloekek joined [09:27] mahafyi: zef install "Inline::Perl5:ver<0.47>" [09:27] *** luk left [09:50] ¦ doc: 48bfce1316 | (JJ Merelo)++ | doc/Type/Signature.pod6 [09:50] ¦ doc: Adds example and text about numeric literals in signatures #2632 [09:50] ¦ doc: review: https://github.com/Raku/doc/commit/48bfce1316 [09:50] Link: https://docs.raku.org/type/Signature [09:50] DOC#2632 [open]: https://github.com/Raku/doc/issues/2632 [Hacktoberfest][RFE][big][docs][good first issue][help wanted][new][⚠ Top Priority ⚠] Checklist for 6.d [09:51] *** brtastic joined [10:08] AlexDaniel: how do cpan modules get into modules.raku.org? The same way? through the META.list in ecosystem? [10:08] *** rindolf left [10:13] *** robertle left [10:15] robertle: no, you don't need to tweak META.list if you're releasing on CPAN [10:15] AlexDaniel, I'll pass your message to robertle [10:15] *** pecastro joined [10:39] *** robertle joined [10:43] Note: It is discouraged to change the system Perl interpreter and libraries.Lot of Debian and GNU tools, use Perl. Lot of system core components, packaging internals and other critical points, rely on Perl versions. [10:44] So I guess I have to go to debian 10 now. stayed on 9 due to some other issues in buster ... [10:44] thats wrt to my earlier on upgrading perl to install Inline::Perl5 [10:49] you can install your own Perl on a system and use that, no ? [10:49] no need to upgrade any system perl? [10:52] it's easier to install an older version of Inline::Perl5 [10:53] *** mowcat joined [10:53] AlexDaniel : Can you help with the syntax to do that? [10:54] do you mean i should use an older Rakudo star? [10:54] mahafyi: `zef install "Inline::Perl5:ver<0.47>"` as suggested above [10:55] i get a syntax error with that [10:56] *** robertle left [10:56] ah ok, i omitted the double quotes, sorry [10:58] *** sena_kun joined [10:59] and yay, lol. [10:59] *** Altai-man_ left [11:10] *** molaf joined [11:13] AlexDaniel: no, I run the latest released rakudo [11:16] El_Che: then… I don't know?? [11:16] El_Che: please reopen that bug report then [11:16] El_Che: you can work around it by using $foo instead of @foo [11:16] AlexDaniel: I did that [11:16] El_Che: just like I did in Blin, but then you'd have other problems [11:17] but it's hairy [11:17] idea was: --env="FOO=bar" --env="BAR=baz"" [11:18] that will have less cornercases than --env=""FOO=bar,BAR=baz" [11:18] --env="FOO=bar,BAR=baz" [11:18] but good enough [11:18] I'll reopen the issue [11:20] I can't reopen it (no rights), can someone reopen it? i'll add a comment [11:21] El_Che: which one? [11:22] how come you don't have rights [11:22] * AlexDaniel fixes [11:22] El_Che: invitation sent [11:23] lizmat: https://github.com/rakudo/rakudo/issues/2797 [11:32] AlexDaniel, lizmat: thanks. Added a note just stating it's still there with the latest release. [11:42] committable6: 2020.02.1 BEGIN @*ARGS="--foo=42"; sub MAIN(:@foo) { say @foo } [11:42] lizmat, ¦2020.02.1: «[42]␤» [11:42] El_Che: I cannot reproduce [11:42] committable6: 2020.02.1 BEGIN @*ARGS="--foo=42"; multi MAIN(:@foo) { say @foo } [11:42] timotimo, ¦2020.02.1: «[42]␤» [11:46] mm [11:46] let me get the gist [11:48] I can reproduce it, let me strip it to the minimum [11:52] committable6: 2020.02.1 BEGIN @*ARGS="--name=n --foo=42"; sub MAIN(Str :$name!, :@foo) { say @foo } [11:52] El_Che, ¦2020.02.1: «[]␤» [11:52] committable6: 2020.02.1 BEGIN @*ARGS="--name=n --foo=42 --foo=43"; sub MAIN(Str :$name!, :@foo) { say @foo } [11:52] El_Che, ¦2020.02.1: «[]␤» [11:52] mm [11:53] please note that the fix of allowing a single --foo to arrive in :@foo, is a failed dispatch [11:54] since the dispatch did not fail in the --name case, you won't see the @foo seeing populated [11:54] the only way to (currently, at least) get around that, is you add a candidate that takes a :$foo as well [11:55] technically a :$foo! probably [11:55] *** sjm_uk left [11:57] go a test [11:57] and it's the typecheck [11:57] $ echo 'sub MAIN(Str :$name!, :@foo) { say @foo }' > test.raku; chmod +x test.raku ; raku test.raku -name=n --foo=1 --foo=2; raku test.raku --name=n --foo=1 [11:57] that works as expected [11:57] sorry [11:57] *** robertle joined [11:57] that's the one that breaks [11:57] without the Str typecheck it passes [11:58] AlexDaniel: so should I remove my modules from META.list if they are also on CPAN? Will they get discovered automatically? [11:58] 2020-05-03T10:15:05Z #raku robertle: no, you don't need to tweak META.list if you're releasing on CPAN [11:59] robertle: if you upload to PAUSE, it will get discovered [11:59] robertle: yeah, what lizmat said, it takes some time though [12:00] like, is it twice per day or so? [12:00] well, I thought max 4 hours or so, but could also be 2x a day [12:00] in any case, that's only needed for the initial discovery [12:00] ok, understood. currently they are uploaded to PAUSE *and* the github links are in the META.list, should I remove the latter? for cleanlyness? [12:01] yeah [12:01] ok [12:01] lizmat: updated the issue with an expanded example on when it breaks [12:02] (I need to reread your remark above to see if it's related) [12:02] * lizmat was doing the same :-) [12:02] (that the trigger is the type of another parameters would suggest it's not) [12:03] -s [12:04] noted, but am a bit reluctant to fix this just before the release [12:04] *** holyghost left [12:05] it's not a regression, do it afterwards [12:05] m: BEGIN @*ARGS = <--name=n --foo-1>; multi MAIN(Str :$name!) { } # further golf, you don't need the named in the signature [12:05] rakudo-moar 6bb87106e: OUTPUT: «Usage:␤ --name=␤» [12:05] uhhh is master locked or something? I just pushed a change… [12:05] ah, that's correct [12:05] I thought we had a branch for the release… [12:06] *** robertle left [12:09] *** holyghost joined [12:36] *** brtastic left [12:46] lizmat: just heard your voide! [12:46] *** Black_Ribbon left [12:46] my voide? [12:46] (I was listening to the Command Line Heroes podcast and here you were) [12:46] voice [12:46] :) [12:46] ah, that one... [12:46] I guess you survived :-) [12:47] I was all like "I know famous people now" :) [12:47] :-) [12:56] *** Altai-man_ joined [12:59] *** sena_kun left [13:13] *** aborazmeh joined [13:13] *** aborazmeh left [13:13] *** aborazmeh joined [13:37] *** sjm_uk joined [13:54] *** mowcat left [13:55] *** holyghost left [14:01] *** holyghost joined [14:05] *** rindolf joined [14:19] *** mowcat joined [14:22] *** robertle joined [14:23] *** mowcat left [14:30] *** mowcat joined [14:31] *** cognomin_ joined [14:34] *** mowcat left [14:35] *** cognominal left [14:38] *** sjm_uk left [14:45] *** mahafyi left [14:57] *** sena_kun joined [14:59] *** Altai-man_ left [15:08] *** brtastic joined [15:08] *** molaf left [15:11] *** sjm_uk joined [15:19] *** aborazmeh left [15:34] *** jjmerelo joined [15:36] *** robertle left [15:40] *** AlexDaniel left [15:45] *** cognominal joined [15:45] *** mahafyi joined [15:48] *** cognomin_ left [16:00] *** salimsimba joined [16:01] *** robertle joined [16:20] *** robertle left [16:24] ¦ problem-solving: JJ assigned to jnthn Issue Should we allow directories as destinations for IO::Path.copy/move? https://github.com/Raku/problem-solving/issues/181 [16:34] *** clarjon1 joined [16:37] i am parsing a security log file in order to ban offending IP addresses. I feel very awkward to paste here, but i'd like to learn how to write better. I am re-starting to learn programming with perl6 after long months ..https://pastebin.com/QfSK57sc [16:39] so my problem is : i am essentially creating a List with split several times, in order to get the string I want. There should be an elegant way to put in a hash? [16:41] Depending on what you're splitting on, perhaps using a regex/grammar (particularly if each split's elements are being split, and so forth) [16:43] there is bunch of KV in there, i could not get it into a hash , was getting various errors. i have to get each pair individually like this. It is ok for now, as all i want to do really is shell "iptables ban the IP" [16:44] *** salimsimba left [16:44] mahafyi: fwiw, you can split with just a string, which is faster (i don't know exactly how much so). e.g., "a,csv,row".split(",") [16:46] i am doing that only , it bocmes a Seq (not a Str anymore), then I split the particular element (i manually counted it lol) to get the IP address [16:46] as i said, its working ok... just felt its somehow wrongly done..not sure. [16:46] i mean .split("str") instead of .split(/"str"/) [16:47] MasterDuke , oh.. ok i will see what the difference is [16:48] .split(",")[3] is fairly idiomatic if not super self-documenting [16:49] in a trivial benchmark splitting with a str instead of a regex takes 1/4 the time [16:49] ah ok [16:49] m: my $a = (^10).join(","); my @b; @b = $a.split(",") for ^100_000; say now - INIT now; say @b [16:49] rakudo-moar 6bb87106e: OUTPUT: «0.7723313␤[0 1 2 3 4 5 6 7 8 9]␤» [16:49] m: my $a = (^10).join(","); my @b; @b = $a.split(/","/) for ^100_000; say now - INIT now; say @b [16:49] rakudo-moar 6bb87106e: OUTPUT: «4.021146␤[0 1 2 3 4 5 6 7 8 9]␤» [16:51] benchable6: compare HEAD my $a = (^10).join(","); my @b; @b = $a.split(",") for ^50_000 ||| my $a = (^10).join(","); my @b; @b = $a.split(/","/) for ^50_000 [16:51] MasterDuke, starting to benchmark the 1 given commit [16:51] MasterDuke, https://gist.github.com/ad6878d7e84c453db94e1c5c3afe12c4 [16:51] AlexDaniel`: ^^^ `Could not find Bench in: file#/home/bisectable/git/whateverable/sandbox/lib <...>` [16:56] *** chloekek left [16:56] *** Altai-man_ joined [16:58] *** salimsimba joined [16:59] *** sena_kun left [17:15] *** rindolf left [17:18] *** farcas1982regreg joined [17:28] *** sjm_uk left [17:31] *** oneeggeach joined [17:32] *** aborazmeh joined [17:32] *** aborazmeh left [17:32] *** aborazmeh joined [17:36] *** sjm_uk joined [17:51] * guifa2 cheers [17:52] Named captures now functional and all captures correctly choose scalar/array based on surrounding context [17:53] now I just have to figure out the pesky & and :ex [17:53] *** Kaiepi left [17:54] *** rindolf joined [17:56] *** Kaiepi joined [17:57] *** jjmerelo left [17:57] *** guifa2 left [17:58] *** guifa2 joined [17:58] *** leah2 left [18:03] *** guifa2 left [18:17] *** gdonald left [18:18] *** brtastic left [18:21] *** leah2_ joined [18:23] *** leah2_ is now known as leah2 [18:23] *** leah2 left [18:26] *** leah2_ joined [18:27] *** leah2_ is now known as leah2 [18:27] *** mahafyi left [18:28] *** melezhik joined [18:29] *** gnufr33dom joined [18:32] *** gnufr33dom left [18:35] *** farcas1982regreg left [18:35] *** gnufr33dom joined [18:36] *** brtastic joined [18:47] *** guifa2 joined [18:47] *** guifa2 left [18:49] *** melezhik left [18:57] *** sena_kun joined [18:59] *** Altai-man_ left [19:10] *** oneeggeach left [19:11] *** silug joined [19:13] *** rindolf left [19:15] MasterDuke: just use committable? :) [19:15] ahhh you're doing the compare thingie [19:15] *** chloekek joined [19:16] *** sjm_uk left [19:17] benchable6: compare HEAD my $a = (^10).join(","); my @b; @b = $a.split(",") for ^50_000 ||| my $a = (^10).join(","); my @b; @b = $a.split(/","/) for ^50_000 [19:17] AlexDaniel`, starting to benchmark the 1 given commit [19:17] AlexDaniel`, https://gist.github.com/3a0512be7daa6935f72512abb77e3da8 [19:20] benchable6: compare HEAD my $a = (^10).join(","); my @b; @b = $a.split(",") for ^50_000 ||| my $a = (^10).join(","); my @b; @b = $a.split(/","/) for ^50_000 [19:20] AlexDaniel`, starting to benchmark the 1 given commit [19:20] AlexDaniel`, https://gist.github.com/c3f8e7fc00b1de0c6103b7d3ba4342e8 [19:23] benchable6: compare HEAD my $a = (^10).join(","); my @b; @b = $a.split(",") for ^50_000 ||| my $a = (^10).join(","); my @b; @b = $a.split(/","/) for ^50_000 [19:23] AlexDaniel`, starting to benchmark the 1 given commit [19:23] MasterDuke: ↑ now it's better [19:23] AlexDaniel`, ¦HEAD: «Benchmark: ␤«timed out after 10 seconds»» [19:26] benchable6: compare HEAD my $a = (^10).join(","); my @b; @b = $a.split(",") for ^10_000 ||| my $a = (^10).join(","); my @b; @b = $a.split(/","/) for ^10_000 [19:26] MasterDuke, starting to benchmark the 1 given commit [19:26] MasterDuke, https://gist.github.com/675b9d5078f1906941776c02dfd87bf6 [19:39] *** rindolf joined [19:43] *** raschipi joined [19:48] *** molaf joined [20:14] *** gdonald joined [20:19] *** sauvin left [20:23] *** sauvin joined [20:27] *** rindolf left [20:31] *** stoned75 joined [20:45] *** stoned75 left [20:46] *** stoned75 joined [20:56] *** rainmanjam left [20:56] *** Altai-man_ joined [20:59] *** sena_kun left [21:21] *** raschipi left [21:21] *** Black_Ribbon joined [21:23] *** brtastic left [21:39] *** rainmanjam joined [21:46] *** Manifest0 left [21:50] *** Manifest0 joined [21:56] *** mowcat joined [22:13] *** chloekek left [22:17] *** ensamvarg_g6 left [22:34] *** aindilis` joined [22:35] *** aindilis left [22:41] *** Altai-man_ left [22:44] *** Kaiepi left [22:44] *** Kaiepi joined [22:55] *** pecastro left [23:13] *** guifa left [23:15] *** guifa joined [23:15] *** guifa is now known as guifa` [23:37] *** aindilis` left [23:37] *** aindilis joined