🦋 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:07 reportable6 left 00:09 djerius left 00:10 djerius joined 01:10 greppable6 left, committable6 left, linkable6 left, coverable6 left, nativecallable6 left, sourceable6 left, bisectable6 left, statisfiable6 left, notable6 left, benchable6 left, squashable6 left, shareable6 left, unicodable6 left, evalable6 left, tellable6 left, releasable6 left, quotable6 left, bloatable6 left 01:11 benchable6 joined, squashable6 joined, coverable6 joined, notable6 joined 01:12 committable6 joined, tellable6 joined, statisfiable6 joined, nativecallable6 joined 01:13 greppable6 joined, shareable6 joined, sourceable6 joined, releasable6 joined 01:57 discord-raku-bot left 01:58 discord-raku-bot joined 02:10 reportable6 joined, ajr left 02:11 bisectable6 joined 02:12 frost joined 02:13 evalable6 joined, quotable6 joined, linkable6 joined 02:14 juanfra__ left 02:16 juanfra__ joined, sena_kun left 02:17 sena_kun joined 02:20 ajr joined 02:22 mahafyi left 02:25 ajr left 02:26 razetime joined 02:45 ajr joined 02:50 ajr left 03:10 ajr joined 03:13 bloatable6 joined 03:15 ajr left 03:26 guifa joined
guifa o/ 03:26
03:35 ajr joined 03:39 frost left 03:40 ajr left 04:00 ajr joined, discord-raku-bot left, discord-raku-bot joined 04:05 ajr left 04:13 frost joined 04:24 ajr joined 04:42 frost left 04:51 Darkcoal joined 04:58 yosik left 05:21 perlenjoyer joined, perlenjoyer left 05:48 abraxxa joined 05:51 ajr left 05:58 abraxxa left, abraxxa joined 06:08 reportable6 left 06:10 reportable6 joined 06:11 unicodable6 joined 06:13 abraxxa left 06:14 abraxxa joined 07:14 linkable6 left, evalable6 left 07:17 jaguart joined, evalable6 joined 07:19 mexen joined
jaguart Folks - anyone available for a 1hr paid zoom raku tutorial specifically on Grammars, please DM me with timezone, rate, availability, payment arrangement. I'm a Perl programmer, looking to move to Raku, have a specific use-case but can't quite get my Grammar recursive foo working. I have a simple test.raku to use as the starting point, about 280 lines - most of which is test data. 07:24
moritz (sent you a privmsg) 07:42
08:05 MasterDuke left 08:10 bdju left 08:12 bdju joined 08:17 linkable6 joined 08:31 Sgeo left 08:43 MasterDuke joined 08:50 dakkar joined 09:05 jjido joined 09:31 jjido left 10:19 lgtaube left 10:24 lockywolf_ left 10:28 lockywolf_ joined 10:34 lgtaube joined 10:58 slowtyper left 10:59 slowtyper joined 11:47 Altai-man joined 12:07 reportable6 left 12:10 reportable6 joined
elcaro moritz: fyi, your snippet shows that `&::($name)` also returns the ref 12:15
12:26 jjido joined 12:56 [Coke] left 12:58 Altai-man left 12:59 Altai-man joined 13:01 [Coke] joined
lizmat clickbaits rakudoweekly.blog/2022/02/07/2022-06-basicly/ 13:09
13:32 [Coke]_ joined 13:35 [Coke] left 13:47 jjido left
tbrowder who am i today? 14:34
yea!
El_Che confused?
tbrowder yes, but prob was client and help desk helped me 14:35
14:51 Sgeo joined 15:27 MasterDuke left 15:36 MasterDuke joined 15:40 jjido joined 15:44 jjido left 16:07 [Coke]_ is now known as [Coke] 16:14 dakkar left 16:25 razetime left 16:35 abraxxa left 16:54 jjido joined 17:07 Altai-man left
tbrowder i was logged in with a random nick and didn’t know how to fix it…now i have the desired nickname back. 17:10
17:12 Merfont left, Kaiepi joined 17:17 lichtkind joined
tbrowder cro question (also asked on #cro): can anyone explain how to create a systemd setup to manage the cro app? 17:21
17:24 mexen left
moritz `cro run` runs in the foreground, yes? 17:24
then in the [Services] section, you can just write ExecStart=/path/to/your/cro run 17:25
possibly configure working directory and some environment variables 17:26
WorkingDirectory= and Environment= 17:29
or to start from the basics: you must write a systemd unit file (with the directives I've mentioned above)
17:30 jjido left
moritz then you can either start them as the current user (systemctl --user start ...), or install them system wide by putting them into /etc/systemd/system/; then you need to run `systemctl daemon-reload` to the make sure systemd looks for new unit files 17:31
... and then you can run something like `systemctl start your-service` to start it, and with `systemctl enable ...` you can have it started automatically 17:32
tbrowder: ^^ does that help?
guifa ah moritz is around! 17:33
guifa might start bugging him mercilessly soon now that he's returned to Binex development 17:34
17:48 Garbanzo__ left, Garbanzo__ joined 18:01 Garbanzo__ left 18:02 Garbanzo__ joined
tbrowder moritz: yes, thank you! 18:04
18:06 reportable6 left 18:07 reportable6 joined 18:08 Garbanzo__ left, Garbanzo__ joined 18:22 jjido joined 18:25 Garbanzo__ left, Garbanzo__ joined
leont When writing rakudoc, how can I link to another module's documentation? 18:52
18:57 Darkcoal left
tbrowder L<>? 19:00
it works for some situations like READMEs on github where one may use pod::to::markdown. 19:03
the only way i know is to link to the module’s repo 19:04
19:07 bdju left 19:15 Garbanzo__ left 19:16 Garbanzo__ joined 19:17 Kaiepi left, Kaiepi joined
leont I added some L<>, but they don't appear to work 19:23
E.g. raku.land/cpan:LEONT/Protocol::MQTT 19:25
Like, you probably want either Protocol::MQTT::Client or Net::MQTT, but there's no way to send a user to either of those documentation pages 19:26
Actually, is there any way to show more than one module in a dist at all? I have the impression none of our ecosystem sites support it 20:05
20:17 linkable6 left, evalable6 left 20:19 evalable6 joined 20:51 timo joined 21:20 jjido left
tonyo 21:34
21:35 jjido joined
tonyo leont: didn't see you asked here, responded on twitter but you could do something like `curl -s 360.zef.pm | jq '.[] | select(.provides|has("Fez::CLI"))` (changing `Fez::CLI` to whatever you're seeking) to find out what dists report that module provided 21:35
leont That's barely easier than browsing the git repository 21:43
But it dosen't solve the real problem: actually showing the documentation of the other modules in a dist 21:44
tonyo leont: ah, i misread your gripe as how to _find_ what provides that module and not the other way round
21:49 bdju joined 22:18 linkable6 joined
leont Is there any way to encode a unicode-normalized string? A Uni object doesn't have an encode method, and .Str.encode seems to undo the normalization (because NFG I assume) 22:34
m: my $a = "Ă«"; say $a.NFC.Str.encode eq $a.NFD.Str.encode 22:37
camelia True
gfldex m: $*ENODOC++ for Parameter.new.constraint_list; 22:42
camelia ( no output )
gfldex lizmat++ # for cool code in cool module :) 22:43
22:46 MasterDuke left 22:59 djerius left
gfldex Thinking about it, this might actually be an ENOAPI. 22:59
Thinking about it, this might actually be an ENOAPI. 23:00
23:02 djerius joined
leont I've used it, but I suspect it isn't really api. 23:08
23:20 lichtkind left 23:32 curiosa joined
curiosa Hello 23:32
how do I know the line number when emitting a warning while parsing using a grammar?
gfldex curiosa: You have to use a counter in the rule that is parsing lines. 23:34
A grammar doesn't really know what a line is, so it can't do that for you.
23:41 MasterDuke joined
curiosa gfldex i'm not parsing lines but declarations 23:42
a linebreak is a whitespace to me
I would still like to put a warning with a line number in case of redeclaration of a symbol 23:43
it's not about software but about the user
I can imagine some weird workaround 23:44
MasterDuke i'm not sure if it works in user grammars, but you could try experimenting with something like github.com/rakudo/rakudo/blob/mast....nqp#L1009 23:45
curiosa oh I will check it thanks MasterDuke
23:46 curiosa left