🦋 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:08 reportable6 left 00:10 reportable6 joined 00:37 MasterDuke joined 00:40 epony joined 01:19 deoac joined 01:21 deoac left 01:58 Xliff left 02:43 epony left 02:45 epony joined 03:45 quotable6 left, bisectable6 left, committable6 left, unicodable6 left, bloatable6 left, tellable6 left, notable6 left, linkable6 left, benchable6 left, greppable6 left, squashable6 left, releasable6 left, shareable6 left, sourceable6 left, releasable6 joined, sourceable6 joined, squashable6 joined 03:46 linkable6 joined, unicodable6 joined, benchable6 joined, greppable6 joined, bloatable6 joined, committable6 joined 03:47 quotable6 joined, bisectable6 joined, notable6 joined, tellable6 joined, shareable6 joined 04:47 benchable6 left, statisfiable6 left, greppable6 left, quotable6 left, bisectable6 left, unicodable6 left, linkable6 left, tellable6 left, committable6 left, sourceable6 left, squashable6 left, shareable6 left, nativecallable6 left, coverable6 left, bloatable6 left, notable6 left, reportable6 left, evalable6 left 04:48 epony left, evalable6 joined, committable6 joined, shareable6 joined, unicodable6 joined 04:49 bloatable6 joined, reportable6 joined, linkable6 joined, bisectable6 joined, nativecallable6 joined, quotable6 joined 04:50 notable6 joined, epony joined, statisfiable6 joined, squashable6 joined, coverable6 joined, tellable6 joined, benchable6 joined 04:51 HvszrStykp left, greppable6 joined, sourceable6 joined 05:34 epony left 05:49 epony joined 06:06 reportable6 left 06:09 reportable6 joined 06:28 equinox joined 06:52 epony left 06:53 epony joined 07:14 jjido joined 07:15 Sgeo left 07:23 squashable6 left 07:24 labster joined 07:26 squashable6 joined 07:33 razetime joined 07:49 jjido left 07:53 lichtkind joined 08:10 dakkar joined 08:40 razetime left 08:56 epony left 08:58 epony joined 09:16 mykhal left 09:44 mykhal joined 09:53 epony left 09:55 epony joined 09:57 epony left 09:58 epony joined
Nemokosch Shouldn't App::Mi6 depend on fez? It seems to me it does depend on it implicitly. 10:00
lizmat if fez is not installed, you cannot use fez as an ecosystem to upload to 10:02
if you're still ok with uploading to CPAN, you don't need to install fez
10:03 epony left
lizmat now: with CPAN and p6c being phased out as ecosystem backends, one could argue that fez is going to be the only one left 10:03
at that time (or even before that) I'd say it would make sense to make fez a requirement for App::Mi6
Nemokosch yes, that's kinda similar to my line of thinking 10:08
10:09 epony joined
for me as a "fez-only" user, it's pointless to have a CPAN-related dependency (CPAN::Uploader::Tiny) and since fez is "natively supported" in mi6, it would make more sense to make sure fez is present 10:10
lizmat zef install fez 10:11
and you're set
I mean, it's only a very minor inconvenience
if you feel strongly about it, I suggest making a PR in the App::Mi6 repo :-) 10:12
the change would be a one liner in the META6.json basically
and possibly some code cleanup
Nemokosch Yes... it's just a bit mind-boggling to have implicit dependencies, especially for something I would consider the main use 10:13
lizmat well, historically, that is not true :-)
CPAN was the main use for a long time 10:14
Nemokosch You know, I sometimes feel the Raku macroverse is a big graveyard, with a couple of necromancers, like you, trying to get the party going
I have a pending PR for mi6 myself, by the way. Not the slightest response for a month. 10:15
leont still has to transfer all their old modules to fez, but his annoyance at fez's login procedure is keeping them from it 10:16
Nemokosch I'm planning my "noble revenge" at the moment, by the way: revining Ddt
I'm happy at the moment that we could start a little discussion about the Atom highlighter that I asked about here as well 10:17
I'm also happy that kalkin seems to be willing to pass Ddt; that will also need more than the good old p6c release instructions... 10:19
graveyard or treasure island, it's just a matter of perspective 😄 10:21
lizmat indeed :-) 10:23
leont: what is the annoyance? Having to enter the password once a month ?
10:23 sena_kun joined 10:24 sena_kun joined
lizmat skaji ^^ PR for mi6 10:24
leont Yes. I have everything else automated so it unlocks when I log in. And it doesn't work with my password manager either (because that's integrated into my browser.
So I'm going to have to use some crappy password because using a slightly better password means I'm resetting it every month
lizmat tonyo: wouldn't you be able to (re)register using a link in a browser ? 10:25
leont If it doesn't integrate with my browser, it should at least integrate with my platform's keychain manager 10:26
lizmat tonyo: if so, what would that be?
leont Which shouldn't be too hard once we have a dbus module, but someone has to write that first 10:27
Nemokosch I wonder if this could work with some private key/public key combo, like SSH
leont Asymmetric keys mainly work smooth because they integrate with the keychain manager
If you'd reuse that then yes
Nemokosch I'm learning a lot from these modules I inspect or modify... 10:31
oh by the way, lizmat: what is the purpose of the --edit option in rak?
lizmat --edit will call vim with all the locations of your search, to inspect and/or edit the code 10:33
rak 'sub min' src --edit
when done inside the Rakudo source tree, would bring you to all locations that have 'sub min' 10:34
10:37 labster left
Nemokosch It seemed to me that it collects the content into one anonymous file so literal editing didn't seem possible 10:38
what am I missing? 10:39
lizmat well, you need to use :cn to go to the next entry 10:42
instead of :n
and literal editing is *definitely* possible, I have already used it that way on the Rakudo core source
10:44 abraxxa-home joined
Nemokosch well, I wonder what I need to do; what I got was an anonymous file and the moment I added a character, the notification appeared that this was a readonly file 10:46
lizmat hmmmm 10:47
maybe something in your ~/.vimrc ? 10:48
gist.github.com/lizmat/4df3073fd95...a82a061311 # mine 10:51
Nemokosch I don't know what I did differently but now it seems better... 11:00
like really, what could I set
lizmat perhaps you were already editing the file in question ?
11:00 equinox2 joined
lizmat or vim thought you were because there was a (stale) swap file ? 11:01
11:01 epony left 11:02 epony joined 11:03 equinox left
Nemokosch I don't know but unless I can reproduce, it was probably on my end 11:27
I suppose META6 entries shouldn't be Unicode-escaped but normal Unicode, right? 11:35
immediately got my name with \uXXXX letters... 11:36
lizmat I think the JSON standard expects escaped 11:37
and META6.json being JSON, I'd say seeing \uxxx in your case, is to be expected 11:38
Nemokosch but jjatria can have José Joaquín written in META6.json :c 11:43
from what I understand, almost all Unicode characters can be left unescaped 11:46
iirc mi6 itself leaves it unescaped, that's why it hit me
11:52 jjido joined 11:56 epony left
lizmat I think if the character is supported by latin-1, you can leave it unescaped 11:56
11:57 razetime joined 11:58 epony joined 12:07 reportable6 left 12:08 reportable6 joined 12:37 equinox2 left 12:40 derpydoo joined 12:48 jjido left 13:05 epony left 13:06 epony joined
lizmat weekly: dev.to/lizmat/dont-fear-the-grepper-3-hfp # part 3 of "Don't fear the grepper!" saga 13:16
notable6 lizmat, Noted! (weekly)
13:19 Sgeo joined 13:34 jgaz joined
Nemokosch what does the `method X of Y` structure do? 13:41
13:43 Sauvin left 13:44 derpydoo left, Sauvin joined 13:57 abraxxa-home left 14:11 epony left 14:15 sena_kun left 14:48 perlbot left, perlbot_ joined 14:50 perlbot_ is now known as perlbot 14:58 equinox joined 15:09 sena_kun joined 15:11 vrurg left
tbrowder howdy 15:19
lizmat: yr timing on file access times is spot on. i need that in a prog i'm working on now 15:21
so, how can i export an enum from a module?
so, how can i export an enum from a module? 15:22
m: enum Foo is export = <a b> 15:23
camelia ===SORRY!=== Error while compiling <tmp>
An enum must supply an expression using <>, «», or ()
at <tmp>:1
------> enum Foo is export⏏ = <a b>
tbrowder m: enum Foo <a b> is export;
camelia ===SORRY!=== Error while compiling <tmp>
Two terms in a row
at <tmp>:1
------> enum Foo <a b>⏏ is export;
expecting any of:
infix stopper
statement end
tbrowder see my problem? 15:24
without delving into classes and such is there a simple way to make an enum accessible from a module? 15:26
maybe put in module E, then use "F::Foo" 15:29
sorry "E::Foo"
15:31 HvszrStykp joined
equinox enum E is export <yes no>;  # trait came first 15:32
tbrowder that seems to work, but it doesn't feel rakuish to me
m: enum E is export <a b>; 15:33
camelia ( no output )
15:33 vrurg joined
tbrowder hm, i thought i tried that. let me do it from a script... 15:34
15:35 razetime left
tbrowder it works so far. thanks 15:36
equinox: thanks! 15:37
equinox glad
tbrowder when i last delt with enums i didn't understand or appreciate anything about automatic corecion. that really makes enums easy to define and use--especially now that i can export them thanks to you! 15:51
*coercion 15:52
i think
yes, coercion 15:53
equinox oh yeah 16:14
i was doing `E.pairs.first(*.value == $val).key` to inverse map a value to find the key in enum 16:15
but then `E($val)` is doing it already...
not sure if your coercion meant this or other but this is what happened to me 16:16
ugexe m: my %x = :a(1), :b(2); say %x.antipairs.hash<2
camelia ===SORRY!=== Error while compiling <tmp>
Whitespace required before < operator
at <tmp>:1
------> = :a(1), :b(2); say %x.antipairs.hash<2⏏<EOL>
expecting any of:
method arguments
ugexe m: my %x = :a(1), :b(2); say %x.antipairs.hash<2> 16:17
camelia b
ugexe alternatively there is already a way to inverse a list of pairs
16:26 derpydoo joined 16:34 dakkar left 16:43 derpydoo left 16:44 equinox left 16:45 derpydoo joined 17:04 equinox joined 17:46 derpydooo joined 17:49 derpydoo left 18:08 reportable6 left 18:09 reportable6 joined
lizmat weekly: news.perlfoundation.org/post/announcements 18:15
notable6 lizmat, Noted! (weekly)
18:39 notna joined
El_Che "TPRF has made an intentional decision to not apply for a dev room, but to encourage talks to be given in other, non-language specific dev rooms instead. This will allow Perl and Raku to be shared with new audiences. " 18:39
lizmat indeed
El_Che a little weasel-talk, isn'it
lizmat no, it is not 18:40
this was also discussed in the RSC
El_Che puts on cockney costume: "it's my understanding, luv, innit? "
lizmat well, would you want to organize a request for a Raku devroom? 18:41
18:42 derpydooo left 18:50 notna left
El_Che that's exactly my point actually 18:56
there is no volunteer (no shame in that) but it's frame as a decision instead of a consequence
anyway, semantics
it does not really matter 18:57
18:58 jjido joined 19:07 sena_kun left
lizmat weekly: www.heise.de/news/Programmiersprac...17740.html 19:32
notable6 lizmat, Noted! (weekly)
lizmat Raku is mentioned in the graph
19:35 johnjaye left 19:45 vrurg left 19:46 sena_kun joined
gfldex lizmat: we would demand that they change it to bold *and* italic. :-> 19:49
lizmat hehe
20:05 vrurg joined 20:12 MoC joined
lizmat blog.trailofbits.com/2022/10/25/sq...brary-api/ 20:15
20:39 equinox left 20:41 jjido left 20:49 jjido joined 21:20 MoC left 21:27 jjido left 21:39 jjido joined 22:03 jgaz left 22:31 avar left 22:34 avar joined 22:50 bigdata joined 22:57 sena_kun left 23:05 Nemokosch joined
Nemokosch I found a situation in which .? is actually desirable 23:06
tellable6 2022-10-24T15:04:57Z #raku <SmokeMachine> Nemokosch: where do I sign in?! :)
2022-10-25T10:30:01Z #raku <guifa> Nemokosch: if they can be in any order AND any number, [<a><b><c>]*
Nemokosch License::Software's license sub produces type objects or Nil
type objects do have .new to call on them, even though they aren't defined 23:07
so it's good that .?new chains on them and propagates Nil haha
23:21 bigdata left 23:23 lichtkind left 23:49 Nemokosch left