🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). Log available at irclogs.raku.org/raku/live.html . If you're a beginner, you can also check out the #raku-beginner channel!
Set by lizmat on 6 September 2022.
00:02 jpn left
antononcube weekly: rakuforprediction.wordpress.com/20...n-address/ 00:06
notable6 antononcube, Noted! (weekly)
00:27 Summer left, Summer joined 00:43 MasterDuke joined 01:15 haxxelotto left 01:17 jpn joined 01:21 haxxelotto joined 01:22 jpn left 01:59 jpn joined 02:04 jpn left 02:22 hulk joined, kylese left 02:29 nine left 02:30 nine joined 02:58 kjp left 03:00 jpn joined, kjp joined 03:05 jpn left 03:15 hulk left, kylese joined 03:31 haxxelotto left 04:01 jpn joined 04:06 jpn left 04:13 discord-raku-bot left, discord-raku-bot joined 04:34 Summer left, Summer joined 05:02 jpn joined 05:04 Summer left 05:05 Summer joined 05:07 jpn left 05:35 Summer left 05:36 Summer joined 06:01 jpn joined 06:06 Summer left, Summer joined, teatwo joined 06:07 jpn left 06:09 jrjsmrtn joined, tea3po left, jrjsmrtn_ left, camelia left 06:10 mtj left 06:22 mtj joined 06:27 camelia joined 06:37 Summer left, Summer joined 07:03 jpn joined 07:07 Summer left 07:08 Summer joined, jpn left 07:31 xinming left 07:32 xinming joined 07:38 Summer left, Summer joined 07:47 melezhik joined
melezhik hi 07:47
can I handle process signal inside raku code?
I need to handle sigterm signal
found this - rosettacode.org/wiki/Handle_a_signal#Raku 07:49
snonux hey, i noticed that Rakudo doesn't support private multi methods yet. not a major blocker for me, but i stumbled on this on a few occasions. does anyone know whether it is planned for the future? 07:59
08:04 jpn joined 08:06 Sgeo left 08:09 Summer left, Summer joined, jpn left 08:13 abraxxa joined 08:16 jpn joined 08:17 xinming left 08:18 xinming joined 08:33 melezhik left 08:39 Summer left 08:40 Summer joined, jpn left 08:45 jpn joined 08:47 xinming left 08:48 xinming joined 08:54 jpn left 09:03 jpn joined 09:10 Summer left, Summer joined 09:20 MasterDuke left 09:22 sena_kun joined
antononcube @snonux What a strange feature request!! 09:26
To paraphrase : > If You've Got Nothing to Hide, You've Got Nothing to Fear What do you fear of, so you want to hide your multi methods? 09:28
Do you want to hide all of the variants of a multi-method or just some of them?
09:41 Summer left, Summer joined 09:50 sena_kun left 09:54 sena_kun joined 10:00 haxxelotto joined 10:02 sena_kun left 10:24 xinming left 10:25 xinming joined 10:35 xinming left, lizmat left, xinming joined 10:45 Summer left 10:46 Summer joined 10:58 lizmat joined 11:16 Summer left, Summer joined
tbrowder__ hi 11:22
antononcube @tbrowder Good morning! 11:25
11:26 [ptc] joined 11:27 nebuchadnezzar left
tbrowder__ hi 11:32
hail Mary! i can see again 11:33
thnx to James at irccloud
antononcube 👍
lizmat 🎉 11:37
11:38 tbrowder__ is now known as tbrowder
lizmat tbrowder: even better! 11:39
tbrowder hi
very cool, lost the underscores
turns out one problem was i was banned on gnupg (probably during a finger fumble storm) which prevented me from changing nicks 11:41
whew
11:47 [ptc] left, Summer left, Summer joined 12:03 [ptc] joined 12:10 xinming left, xinming joined
tbrowder ref CSV::Autoclass rename, i'm going with CSV::Class 12:16
12:17 Summer left 12:18 Summer joined
tbrowder someone was looking for Color info. you should look at raku-community-modules which has a Color entry which needs some love 12:19
SmokeMachine snonux: that’s also something that I’m frequently needing… 12:26
12:29 [ptc] left 12:48 Summer left, Summer joined 12:54 jpn left 13:07 xinming left, xinming joined 13:16 abraxxa left 13:23 nine left 13:24 nine joined 13:35 perlbot left, simcop2387 left 13:45 jpn joined 13:50 jpn left
antononcube weekly: rakuforprediction.wordpress.com/20...wwwgemini/ 13:52
notable6 antononcube, Noted! (weekly)
13:53 simcop2387 joined, xinming left, xinming joined 13:54 perlbot joined 13:57 jpn joined 14:03 haxxelotto left 14:19 Tigerpaws joined 14:20 Summer left, Summer joined 14:23 Tigerpaws left 14:26 hudo__ left 14:27 hudo__ joined 14:31 TieUpYourCamel left 14:37 xinming left, xinming joined, silug left 14:39 silug joined 14:48 TieUpYourCamel joined, Tigerpaws joined 14:51 Summer left, Summer joined 15:02 haxxelotto joined 15:21 Summer left 15:22 Summer joined 15:36 [ptc] joined
tbrowder lizmat: the raku-community-modules page could use some pinned-modules mgmt. it's not using the full 6 normally allowed. and the pinned ones should reflect something like popularity or most wanted improvements 15:41
15:52 Summer left, Summer joined 16:13 haxxelotto left 16:16 haxxelotto joined
[Coke] is there a URL I can hit to see what the latest released version is? 16:16
(I want the doc tests to be using the latest released version, so I want an author test to complain if not.) 16:17
16:43 nebuchadnezzar joined
[Coke] docs.github.com/en/rest/releases/r...2022-11-28 16:43
raku -MJSON::Fast -e 'my $a = qx< curl -L -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" "api.github.com/repos/rakudo/rakudo...ge=1">; dd (from-json $a)[0]<tag_name>' 16:50
whee
16:54 Summer left, Summertime joined, xinming left, xinming joined 17:24 Summertime left, Summertime joined 17:37 silug left 17:46 xinming left, xinming joined 17:50 vlad joined 17:55 Summertime left, Summertime joined 18:05 xinming left 18:07 xinming joined 18:23 lizmat left, lizmat joined 18:24 silug joined
snonux antononcube: i always aim to keep all class members and methods private by default (encapsulation) 18:27
antononcube: usually, all of them or none of them (multi methods) to be private. i never encountered a case where i want to have a mix of the same method name (private + public) 18:28
[Coke] I think if I had something like that, I'd have the private be a different name to avoid confusion 18:33
18:39 jpn left 18:46 vlad left 19:10 [ptc] left 19:11 jpn joined 19:15 abraxxa-home joined 19:16 abraxxa-home left, silug left 19:17 jpn left, abraxxa-home joined 19:20 jpn joined 19:21 xinming left, xinming joined 19:52 haxxelotto left 20:09 [ptc] joined 20:16 jpn left 20:19 sena_kun joined 20:20 [ptc] left 20:54 Summertime left
roguerakudev is there some nice syntax sugar for multi dispatch where one candidate wants a named Bool to be True and another will take it as False (or missing)? 21:42
e.g. tell :loudly would hit the first candidate and tell or tell :!loudly would hit the second 21:43
antononcube @_grenzo I have further questions on "Marrow". 21:44
_grenzo ok
antononcube More precisely, on the envisioned changes of the generated code.
_grenzo How so? 21:45
antononcube Hmm... it is hard to explain without a visual... 21:46
There is a role that has the bulding method: submethod BUILD(:$id) { try { $db = self.get-db-handle(); for $db.query( 21:47
Am I correct to think that that role is not supposed to be changed, but the class that does is?
_grenzo Correct 21:48
antononcube With "changed" I mean adding new functionalities, etc.
_grenzo yes
antononcube You either mentioned it yesterday here, or it was written in the documentation. 21:49
_grenzo hopefully both
antononcube 🙂 Mmm.. I think only the former...
_grenzo It would be in the section of the Read.me that has the directory tree 21:50
or maybe not 21:51
Usage: ./bin/mro.raku [--app] [--mods] [--roles] [--templates] [--list] [--db-type=<Str>] [--dbname=<Str>] [--host=<Str>] [--port=<Str>] [--user=<Str>] [--password=<Str>] [--schema=<Str>] [--prefix=<Str>] [--app-host=<Str>] [--app-port=<Str>] [--help] --app Generate the Cro app that implements the REST APIs. [default: False] --mods Generate empty Class modules that can be
modified by users (one to implement each role). [default: False]
antononcube Similarly, I should not add new routes in "public-routes.rakumod" -- but in the higher leverl "*-routes.rakumod", right?
_grenzo in the usage
correct 21:52
antononcube That is "cryptic" then.
_grenzo I can spell it out better
antononcube @_grenzo If you use LLMs you might use the interaction here to enhance that documentation. 21:53
21:57 abraxxa-home left
@_grenzo I still mildly impressed that you published "Marrow" just a few weeks before I "really" needed it! 22:38
_grenzo I aim to please 22:40
antononcube Hahah -- dangerous statement! 22:44
[Coke] go to install a module of mine I haven't used in a while via zef, it dies. open a ticket with the test bug, clone my repo... I already fixed this and never cut a release. 22:50
23:24 sena_kun left
lizmat m: subset isTrue of Bool where * == True; subset isFalse of Bool where * == False; multi a(isTrue :$a) { dd True }; multi a(isFalse :$a) { dd False }; a :a; a :!a # roguerakudev 23:30
camelia Bool::True
Bool::False