🦋 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.
dwarring LibXML's t/11memory.t seems to suddenly running, much better, just since since the 2021.08 release and blead 00:44
tellable6 2021-08-05T00:43:49Z #raku <Xliff> dwarring Thanks!
dwarring test is disabled by default and needs to have environment variables set to run it:
(export AUTHOR_TESTING=1 MEMORY_TEST=1; prove -e'raku -I.' -v t/11memory.t) 00:45
results...
on 2021.08: Total Mem Increase:64116 kB, Avg-Objects:873, Lost:719 Objects (0.25%) 00:46
on v2021.08-8-g5492452b2: Total Mem Increase:5612 kB, Avg-Objects:101, Lost:14 Objects (0.00%) 00:47
The count is of LibXML native objects, which get freed when DESTROY is called 00:48
call to DESTROY isn't being missing and is tending to get called earlier 00:49
leading to flatter memory usage and fewer live objects
dwarring test was ported from Perl, btw 00:52
kybr if i have the name of a method as a string in $method, how might i call that method on $foo ? 00:57
dwarring $foo."$method"() 00:58
pisa hi, is there some advice for raku binding for c++ template ?
kybr dwarring: wow. thanks
dwarring: wow. thanks 00:59
dwarring I haven't used the c++ bindings myself 01:04
I do know you want to use the CPPStruct representation
class C is repr('CPPStruct') {...} 01:05
some tests in github.com/rakudo/rakudo/blob/mast...mangling.t
That should automatically mangle Raku method names to C++ symbols 01:06
pisa that test just for CPPStruct repr, but no template 01:12
dwarring not finding much on sourcegraph.com/search?q=context:g...pe=literal 01:28
@pisa not sure 01:29
dominix hi everyone, quick question, what do you guy have as newsfeed regarding Rakulang ? 01:46
tellable6 2020-09-28T01:49:13Z #raku <tbrowder> dominix: what kind of package sys does clear linux use? is it fedora or debian based?
2020-09-28T01:56:01Z #raku <tbrowder> dominix: never mind. i see the problem i would have with clear linux. i, being retired, would have the luxury of telling my client "no" to clear linux, but he's paying for that agony.
2020-09-28T01:57:37Z #raku <tbrowder> dominix: but your client wants you to use raku? maybe client will pay for a clear linux raku pkg.
2020-09-28T08:08:22Z #raku <El_Che> dominix It looks like Clear Linux uses flatpack as pkg format. Timotimo just release a rakudo release oin that format
2020-09-28T08:15:54Z #raku <El_Che> dominix: nevr mind about the flatpack. However precompiled non-pkg release can be found here: github.com/nxadm/rakudo-pkg/releas.../v2020.09, just untar-gzip this: rakudo-pkg-mooarvm-2020.09-01-linux-x86_64.tar.gz
kybr how about if i wanted to get a reference to the function/method with the string name in $function? 01:49
timo that depends on how you can reach it. it mayb e enough to just get my $func-obj = ::($function) 01:50
tib hello 07:09
dev.to/thibaultduponchelle/the-eph...ement-4n8f 07:10
I wanted to ping jj merelo here but I don't know if he is either not connected or if I don't know his nick 07:11
El_Che_ tib: it's jmerelo or jj iirc 07:56
moon-child jmerelo has not been seen here in a few months 07:57
tib ok thx (I contacted him by email) 07:59
El_Che_ or twitter could be an option
lizmat Am I going crazy or is Twitter all of a sudden equating #raku with Camelia? twitter.com/search?q=%23raku&s...amp;f=live 10:41
keutoi Most of the uses of #raku seem to be either pottery or rakuten 10:46
lizmat yes, and that's fine, but *I* only see tweets with Camelia in them now :-) 10:50
El_Che_ that's why someone on twitter is consistently adding #rakulang to all conversations :P
She shall not be named 10:51
lizmat twitter.com/search?q=%23raku%20-ca...amp;f=live # only #raku 10:52
FWIW, I love pottery in general 10:53
and Raku pottery even more so
having lived with a potter for 5 years made me appreciate the inspiration and sweat that goes into making pottery 10:54
not unlike the Raku programming language, actually :-) 10:55
El_Che_ but with less drama :P 10:56
Geth ¦ problem-solving: lizmat assigned to codesections Issue Moving distributions between distribution backends "duplicates" them github.com/Raku/problem-solving/issues/295 12:49
¦ problem-solving: lizmat unassigned from codesections Issue Moving distributions between distribution backends "duplicates" them github.com/Raku/problem-solving/issues/295 12:50
raydiak wrt stackoverflow.com/questions/687619...-execution fwiw I don't agree with the existing behavior. imo, arguments should be evaluated in source order regardless of R metaop 13:04
raydiak lizmat: wrt rakudoweekly.files.wordpress.com/2...5847-1.jpg maybe after the 15th iteration in 2 years its time to change the default post image? even though I do understand and identify with the symbolism :) 13:12
lizmat raydiak: yeah, was thinking about that... haven't been able to come up with a suitable replacement yet 13:13
raydiak no great idea here either, though off the top of my head I think of a bunch of people with ores rowing a boat 13:16
not exciting enough though 13:17
people rowing a boat over the edge of a waterfall is more exciting, but the connotations are a bit negative 13:19
tib Announcing Stephane Gigandet at the ephemeral miniconf: dev.to/thibaultduponchelle/the-eph...ement-314d 13:20
lizmat And yet another Rakudo Weekly News hits the Net: rakudoweekly.blog/2021/08/30/2021-...perseding/ 13:30
tib lizmat ++ 13:31
raydiak one real idea, perhaps something similar to thisadventurelife.com/wp-content/u...8/para.png would be appropriate and resonate with our predominantly european community? 13:34
lizmat++ thank you as always for the weekly
lizmat raydiak: that does not convey the feeling of "we're all in this together" 13:35
at least not to me
raydiak hm. does but doesn't. I do see what you're saying
raydiak they're all doing the same thing in the same direction, but independently. whether that's more appropriate or less, is a matter of opinion :) 13:37
anyway, that's all I had for now. been up all night. good * lizmat and #raku o/ 13:38
lizmat good * to you too, raydiak 13:39
El_Che_ tib: does ephemeral means the talks will not be recorded? 15:15
tib no El_Che_ it means that I do not plan to do another miniconf next year :) 15:16
El_Che_ :) 15:17
kybr i'd like to do something like this: 19:04
m: my $op = "+"; infix:<$op>(2, 3).say;
camelia 5===SORRY!5=== Error while compiling <tmp>
Undeclared routine:
infix:<$op> used at line 1. Did you mean 'infix:<**>', 'infix:<does>', 'infix:<eq>', 'infix:<^..^>', 'infix:<gt>'?
Geth doc: 41502bb6a7 | (Daniel Sockwell)++ (committed using GitHub Web editor) | doc/Language/syntax.pod6
Typo fix

Adds a missing `C<>` wrapper to inline code
19:07
linkable6 Link: docs.raku.org/language/syntax
moon-child m: my $op = "+"; infix:«$op»(2, 3).say 19:08
camelia Use of uninitialized value $op of type Any in string context.
Methods .^name, .raku, .gist, or .say can be used to stringify it to something meaningful.
in code at <tmp> line 1
5===SORRY!5=== Error while compiling <tmp>
Undeclared routi…
moon-child ^ bad error message
lizmat m: my $op = "+"; say ::("&infix:<$op>")(4,5) # kybr moon-child 19:09
camelia 9
moon-child lizmat: any idea about the error message there? 19:11
kybr lizmat: thank you. i need to look into what ::() does. yesterday i had a question about how to get a reference to a built-in function/method given its name as a string. 19:12
lizmat m: BEGIN my $op = "+"; infix:«$op»(2, 3).say
camelia 5
lizmat moon-child: apparently the $op is interpolated at compile time if you write it like that
so that's before the "+" assignment, hence the error message 19:13
moon-child ahh, I see
oh, right, of course 19:14
gfldex lizmat: are we all in this together like this? i.redd.it/k4b07zoc69l41.jpg 20:20
japhb I remember when they used to summer near where I lived. It was really cool looking at a grove, not seeing *anything* because they were all pretending to be leaves, and then *foom* suddenly the air is full of butterflies. 20:41
El_Che I had that experience in Australia 20:44
wonderful
lizmat gfldex El_Che that's indeed a nice picture! 22:16
kybr if ::("&infix:«$op»") only interpolates at compile time and ::("&infix:<$op>") seems to fail on $op like < or >=, then what form might i turn to? 22:27
my $op = "<"; say ::("&infix:<$op>")(4,5)
m: my $op = "<"; say ::("&infix:<$op>")(4,5)
camelia No such symbol '&infix:<<>'
in block <unit> at <tmp> line 1
gfldex m: my $op = "<"; say ::("&infix:«$op»")(4,5) 22:28
camelia Use of uninitialized value $op of type Any in string context.
Methods .^name, .raku, .gist, or .say can be used to stringify it to something meaningful.
True
in code at <tmp> line 1
kybr m: my $op = "<"; say ::("&infix:['$op']")(4,5)
camelia No such symbol '&infix:['<']'
in block <unit> at <tmp> line 1
22:29
moon-child kybr: ::("&infix:«$op»") doesn't interpolate at compile time; &infix:«$op» does 22:30
gfldex m: my $op = "<"; say ::('&infix:«' ~ $op ~ '»')(4,5)
camelia True
moon-child oh, wait
gfldex lizmat: the search term was "butterfly swarm" 22:34
lizmat ok, now to see whether I may use it :-) 22:35
tbrowder .ask tonyo have you seen my recent Data::Dump issue? would you consider a PR for the env var suggestion? or, better, change the api and and the default behavior (with a PR)? 22:50
tellable6 tbrowder, I'll pass your message to tonyo_
tbrowder wow, i see tonyo just took care of 2 issues as i asked him about a new one! what a meeting of interests! 22:53
i don't know why jmerelo hasn't been on irc in a long time, but i know he is very busy with his $dayjobS (note the plural) 22:56
i wish he were here to talk about public-facing docs. i still don't like it that documentable doesn't properly consider user desires of alpha sorting of topics on major groups on the Language page. 22:59
imho, it's a major design flaw. 23:00
Geth doc/special-chars-in-char-ranges: 9741c66cc2 | (Daniel Sockwell)++ (committed using GitHub Web editor) | doc/Language/regexes.pod6
Explain behavior of non-alphanumerics in <[ ]>

The docs previously mentioned that you can use \ to escape characters inside <[ ]> ; this commit adds the fact that you don't need to escape most non-alphanumeric characters the way you do in the portion of a regex outside <[ ]> and that you must escape (rather than quote) characters inside <[ ]> for them to have their literal meaning.
23:02
doc: codesections++ created pull request #3948:
Explain behavior of non-alphanumerics in <[ ]>
23:03