🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). This channel is logged for the purpose of keeping a history about its development | evalbot usage: 'm: say 3;' or /msg camelia m: ... | Log inspection is getting closer to beta. If you're a beginner, you can also check out the #raku-beginner channel!
Set by lizmat on 25 August 2021.
00:03 jjido left 00:08 reportable6 left 00:18 tejr left 00:23 tejr joined 00:25 rir left 00:32 xinming left 00:34 xinming joined 00:43 ocomport joined 01:09 reportable6 joined 02:09 notable6 left, squashable6 left, statisfiable6 left, greppable6 left, evalable6 left, releasable6 left, linkable6 left, tellable6 left, bloatable6 left, unicodable6 left, shareable6 left, reportable6 left, sourceable6 left, coverable6 left, quotable6 left, committable6 left, benchable6 left, bisectable6 left, nativecallable6 left, frost joined 02:10 releasable6 joined, benchable6 joined, tellable6 joined 02:11 statisfiable6 joined, nativecallable6 joined, quotable6 joined, greppable6 joined, committable6 joined 02:12 evalable6 joined, shareable6 joined 02:15 Maylay left 02:17 Maylay joined 02:56 squashable6 joined 03:10 notable6 joined, sourceable6 joined 03:11 coverable6 joined, linkable6 joined 04:10 bloatable6 joined 04:12 reportable6 joined 05:06 Maylay left 05:08 Maylay joined 05:11 bisectable6 joined 05:21 Maylay left 05:35 Maylay joined 06:08 reportable6 left 06:10 reportable6 joined 06:14 Maylay left 06:17 Maylay joined 06:47 Maylay left 07:08 Sgeo left 07:09 Maylay joined 07:10 unicodable6 joined 07:33 jjido joined
CIAvash What is the solution to MAIN sub accepting both `Bool` and `Int` when you have `sub MAIN (Int :$number)`? because Bool is Int. So it will only accept `--number` and `--number=1`, not `--number 1`, I can make a lone `--number` not work with a subset, but I can't get `--number 1` to work. 07:41
moon-child I don't think it's possible, happy to be proven wrong though 07:47
CIAvash OK, found a solution! `subset Number of Str where .Int.so` 08:05
moon-child what happens if you pass 0? 08:06
CIAvash good question, 0 doesn't work but in this case I need positive numbers 08:10
can make it work with zero with `subset Number of Str where !.defined || ($_ ne "" && .Int)` 08:15
08:33 evalable6 left, linkable6 left 08:43 jjido left 08:44 abraxxa joined 08:47 Maylay left 08:50 abraxxa left 08:51 abraxxa joined
Geth ecosystem: 10a8abdf2e | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | META.list
Freeze Terminal::Width
09:09
09:32 kjp left 09:33 linkable6 joined 09:34 evalable6 joined, Maylay joined 09:48 sena_kun left 09:52 sena_kun joined 10:05 Darkcoal joined 10:26 Xliff joined 10:41 ShaneC left 10:51 dhhahahahag joined, dhhahahahag left 11:18 Darkcoal left 11:19 Darkcoal joined 11:23 Maylay left 11:46 kylese joined 11:53 kylese left 12:05 abraxxa left 12:07 abraxxa joined 12:08 reportable6 left 12:12 Darkcoal left 12:14 Darkcoal joined 12:55 sena_kun left 12:57 sena_kun joined 13:11 reportable6 joined 14:11 evalable6 left
leont CIAvash: use Getopt::Long? 14:41
CIAvash leont: I was contributing a small feature to a module, so that was not an option(unless the author decides to do so for more things they are going to add) 14:43
ugexe github.com/ugexe/zef/blob/3edbbcf2...1251-L1253 14:53
fwiw thats how i handled that once
15:02 frost left
CIAvash I like MAIN, but this one bothered me and another thing was `:@list` parameter which doesn't allow passing only one argument, it has to be more than one. In the latter case I used Getopt::Long. There may have been some other annoyances too. 15:06
ugexe i thought :@list has worked with a single argument for awhile 15:10
m: sub MAIN(:@list) { say @list.raku }; @*ARGS = "--list=42"; 15:11
camelia [IntStr.new(42, "42")]
15:14 ocomport left 15:17 corwin left
[Coke] ugexe++ 15:21
15:23 squashable6 left 15:24 squashable6 joined 15:25 Sgeo joined
CIAvash hmm, good to know. from what I remember it didn't 4+ months ago, this is when I started using Getopt::Long, Oct 31, 2021: github.com/CIAvash/Sway-PreviewKey...50bbfb961c 15:25
15:31 abraxxa left
[Coke] bisectable6: sub MAIN(:@list) { say @list.raku }; @*ARGS = "--list=42"; 15:34
bisectable6 [Coke], Will bisect the whole range automagically because no endpoints were provided, hang tight
[Coke], Output on all releases: gist.github.com/04e6c7b55e2daa5f86...2ba37c7e01 15:35
[Coke], Bisecting by exit code (old=2019.07.1 new=2019.11). Old exit code: 1
[Coke], bisect log: gist.github.com/4f2678ce2b7ad3d415...be55ca24e2
[Coke], (2019-11-01) github.com/rakudo/rakudo/commit/7c...3c0a81e7ad
[Coke], Bisecting by exit code (old=2019.03.1 new=2019.07.1). Old exit code: 2
[Coke], bisect log: gist.github.com/e100613707f0eb7fa7...be1b2be3d4 15:36
[Coke], (2019-03-26) github.com/rakudo/rakudo/commit/87...8106ce7dfa
[Coke], Bisecting by output (old=2018.09 new=2018.10) because on both starting points the exit code is 2
[Coke] .. that is a lot more output than I was expecting, apologies.
bisectable6 [Coke], bisect log: gist.github.com/1c17143325f7d7b627...6a8166166a
[Coke], (2018-10-12) github.com/rakudo/rakudo/commit/7d...7a69bc97af
[Coke], Output on all releases and bisected commits: gist.github.com/54da1c417672d519d5...043770406b
15:44 corwin joined
CIAvash That's weird, the bisect seems to confirm what ugexe said 15:54
[Coke] wasn't trying to correct you, just curious myself.
m: say Inf ~~ Numeric, NaN ~~ Numeric, 43 ~~ Numeric 15:55
camelia TrueTrueTrue
15:56 cognominal joined
CIAvash yeah, I know. I just find it weird 15:56
Geth Raku-Steering-Council/main: 948f094265 | (Geoffrey Broadwell)++ | minutes/20220305.md
Add RSC meeting minutes for 2022-03-05
16:10
16:13 evalable6 joined
ugexe probably need to bisect using .perl instead of .raku 17:03
17:07 cstls joined, jjido joined 17:35 djerius left 17:40 djerius joined 17:48 jjido left 17:50 Kaipi left 18:07 reportable6 left 18:09 reportable6 joined 18:20 jjido joined 18:29 Xliff left 18:45 Kaipi joined 18:57 ShaneC joined 19:06 tejr left 19:07 tejr joined
toddr I'm a rare poster here but wanted to share that the Perl and Raku Conference in Houston is coming up June 21-25. If anyone here can share with a wider Raku community, that would be appreciated. news.perlfoundation.org/post/tprc-...wsletter-2 There is also a link off the newsletter to join the mailing list if you prefer 19:09
moritz I tweeted about it with @raku_news 19:27
toddr thank you moritz !
[Coke] How do registration numbers look so far, toddr ? 19:29
I know we had some users who were very excited about an in person conference. 19:30
19:35 cstls left
toddr actual registration is very light but that's normal this far out. 19:54
20:13 avar left 20:14 avar joined 20:22 notna joined
[Coke] fair enough. Thanks! 20:25
20:37 sena_kun left 20:38 sena_kun joined 20:43 notna left
jdv toddr: that clashes with homebrew con so i cannot:( i enjoyed our dinner in frankfurt. think thats the last time i saw you. 20:56
toddr I remember apple wine in special glasses and then there's a blank spot in my memory... :P 21:23
21:23 tejr left 21:25 tejr joined 21:54 Darkcoal left 22:14 Xliff joined 22:37 jjido left 22:41 jgaz joined 23:12 jgaz left