🦋 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.
Xliff Good afternoon! 20:25
Does anyone know if Raku has a gettext implementation?
guifa gettext itself? I don't think so. I had worked on a whiiiiiiile ago a version of Fluent 20:46
but I really don't want to look at my code for that -- I think it will give me nightmares looking at my Raku coding style from 5+ years ago 20:47
timo botato: hey could you run rakudo with --ll-exception and reproduce the errors from the parallel user-agent thing, and see if the backtraces have more stuff near the top? 22:06
guifa alright -- now that I've been using cro and WWW::LLaMA I'm starting to really enjoy just how easy it is for Raku to glue this stuff together into a functioning server 22:54
honestly this might be a good talk for next year's TPRC
botato timo: ok, I moved the bug to MoarVM as suggested (github.com/MoarVM/MoarVM/issues/1864) and there I linked the backtraces with --ll-exception 23:31
btw does anyone have tips for tracking done memory leaks in native bindings? I'm trying to debug a memory leak in findnodes of LibXML 23:32
I wanted to use ltrace to see all calls it's actually making to libxml2, but in ltrace results I don't see them, just calls to libc, MVM_vm_run_file, some calls to free, then MVM_vm_exit. anyone got ltrace working or other tips for tracing or debugging native bindings? 23:35
s/done/down
timo could be that the way dyncall makes the calls is not being seen by ltrace, though i don't know how exactly ltrace operates
how much experience do you have with gdb?
botato i used to write C, and exploits for memory corruption vulns, so I spent a lot of time in gdb then, but that was over 10 years ago 23:38
tbrowder m: my $a = “5a”; say “5a”. base(10); 23:55
camelia No such method 'base' for string '5a'. Did you mean any of these:
'Bag', 'Date', 'Hash', 'are', 'asec', 'byte', 'hash', 'take'?
in block <unit> at <tmp> line 1
tbrowder should be base(16) i think
m: my $a=“5a”; say $a.base(16) 23:56
camelia No such method 'base' for string '5a'. Did you mean any of these:
'Bag', 'Date', 'Hash', 'are', 'asec', 'byte', 'hash', 'take'?
in block <unit> at <tmp> line 1
tbrowder arg, parse-base… 23:58
m: my $a = “5a”; my $b = $a.parse-base(16); say $b 23:59
camelia 90