🦋 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.
[Coke] ecocode___: docs.raku.org/language/unicode_ascii 00:12
(elem) 00:13
ecocode___ [Coke]: thx
By any chance, is there an easy way to serialize instance of a class to (and from) json format ? 00:29
[Coke] not easily. there's $instance.raku which gives you an eval-able version, and there's JSON::Fast (et al.) that give you to-json, but jsonifying a .raku response ust gives you an ugly string. 01:17
If I needed this, I'd probably write a role that walked attributes (whatever they were) and created a json object, and then did the reverse to create a new instance. (write it once, use it on any class) 01:19
ecocode___ hmm that indeed sounds like not so easy ;) 01:34
CIAvash ecocode___: raku.land/cpan:JSTOWE/JSON::Class 04:39
ecocode___ CIAvash: thx, looks awesome 08:53
grondilu m: say "{$++}" x 3 13:45
camelia 000
tellable6 2022-05-07T19:13:28Z #raku <japhb> grondilu When samuraisam and I worked on Protocol Buffer support, we used the MOP; you'll find it in several places in: github.com/samuraisam/p6-pb
grondilu .tell japhb noted 13:48
tellable6 grondilu, I'll pass your message to japhb
[Coke] CIAvash: (JSON::Class). nifty, thanks. 15:37
Geth problem-solving: coke++ created pull request #325:
Volunteer for Doc wrangling
17:10
CIAvash yw 18:28
Xliff1 \o 19:04
Funny thing. The ceiling in the office fell in. 19:05
I'm still logged in on that computer.
At any rate, is this a bug?
m: my utf8 $a = "Blah"; sub a (Str $c) { $c.say }; a($a) 19:06
camelia ===SORRY!=== Error while compiling <tmp>
Calling a(utf8) will never work with declared signature (Str $c)
at <tmp>:1
------> $a = "Blah"; sub a (Str $c) { $c.say }; ⏏a($a)
japhb utf8 is not a Str. It's a Blob (that happens to be a utf-8 encoding of a Str). Raku is careful to keep NFG Str and non-NFG Blobs separate. 19:21
Xliff1 Oh shit. 19:45
Xliff1 So that's why my Buf multi isn't catching. It should be Blob. 19:45
Geth ¦ doc: coke self-assigned Remove the vim mode line. github.com/Raku/doc/issues/3058 19:46
[Coke] the discussion about removing the vim line from the docs stalled at some point; Looking at it today, I see no reason not to remove it from the repo. 19:58
Probably an easy todo if someone wants to claim it and submit a PR.
[Coke] release notice still says "The Perl Foundation" - www.rakudo.org/post/announce-rakud...se-2022.04 - ISTR TRF is also a dba now, so we should switch the text, yes? 21:58
.tell jdv - I'm in the release announcement twice. 22:02
tellable6 [Coke], I'll pass your message to jdv
lizmat [Coke] : agree it should be The Raku Foundation now 22:05
japhb [Coke]: Yeah, TRF or YAS are both valid (TRF is more relevant and precise for this case though).
Geth ¦ problem-solving: coke self-assigned Separate Community Resource pages github.com/Raku/problem-solving/issues/286 22:20
[Coke] so, we have a problem solving repo. What to do about tickets that have no discussion for a year (and very little discussion before that) 22:21
Geth ¦ problem-solving: coke self-assigned Please beware of eliminating (or changing) documented features github.com/Raku/problem-solving/issues/40 22:22
[Coke] any github repos using "Discussions"? 22:36
Doesn't seem helpful for raku/doc, but maybe for others.
lizmat not to my knowledge 22:47
Xliff I should start using them on my repos. 23:00
[Coke] .seen finanalyst 23:19
tellable6 [Coke], I saw finanalyst 2021-03-12T22:16:00Z in #raku-dev: <finanalyst> I just hadn't realised how far the whole website project had gone. I am really quite disappointed.
[Coke] I find it interesting that that was the last send from him, and also that the new website hasn't happened yet. 23:20
Reminder about #raku-docs; please join if you want to be involved in conversations about raku/docs, either content, editing, or the site itself. 23:21