🦋 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 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 8 June 2022.
gfldex lolibloggedalittle: gfldex.wordpress.com/2022/07/13/coercive-bits/ 09:29
guifa www.unicode.org/notes/tn28/UTN28-P...ath-v2.pdf <-- this feels like a job for grammars (and maybe slangs too lol) 12:09
guifa interesting 12:31
it seems that $0, $1, etc are bound rather than calling $/.list.AT-KEY 12:32
so if you muck with the results of AT-KEY, $/.[2] might not be equivalent to $2
guifa nevermind, I'm an idiot, and forgot to apply a role somewhere :-) 12:56
guifa m: use Test; sub s2r ($s) { use MONKEY-GUTS; EVAL "/$s/" }; my $m = 'a' ~~ s2r '(a)'; say $m; subtest 'x' => { my $n = 'ab' ~~ s2r '(a)(b)'; say $n; } 13:40
camelia 「a」
0 => 「a」
# Subtest: x
「ab」
0 => 「a」
1 => 「b」
1..0
ok 1 - x
guifa why is that not working on my system :-(
guifa Seems to have something to do with a role I'm applying but I can't for the life of me figure it out (or golf it, which would probably be useful) 13:54
melezhik . 14:13
jjatria any success with Tomtit?
[Coke] instead of EVAL "/$s/", can you use / $s / ? 14:15
docs.raku.org/language/regexes#Reg...erpolation
Nemokosch $s does turn into its content, that's for sure 14:19
[Coke] m: my $a = "what"; my $b = '<[aeiou]>'; dd $a ~~ / <$b> /;
camelia Match.new(:orig("what"), :from(2), :pos(3))
[Coke] m: my $a = "what"; my $b = '<[aeiou]>'; dd ($a ~~ / <$b> /).Str;
camelia "a"
[Coke] m: my $a = "what"; my $b = '<[aeiou]>'; my $c = / <$b> /; dd $c; #if you need it as a separate object. 14:20
camelia Regex $c = / <$b> /
guifa [Coke] I'll try. Not sure how the interpolation will handle the role being applied 14:34
I'm fairly certain there's some weird scoping issue going on with $/
[Coke] (not working on your system) - what version of raku/OS? 14:38
guifa lol 14:43
I'm a massive idiot
bad use of state
[Coke] glad you found it!
guifa still have to figure out how I'm going to handle ECMA's weird quantified captures 14:44
but once that's done this module should be basically ready to release
tinita nine: hi, I have a quick question. are you planning to release Inline::Python soon? 14:49
currently on openSUSE it doesn't build anymore: build.opensuse.org/package/live_bu...ard/x86_64
oops, sorry, that is apparemtly the wrong channel, since it's a perl5 module :) 14:50
Geth__ raku.org: 2colours++ created pull request #171:
Fixing glot.io link
15:21
Nemokosch as mentioned a couple of days ago
Geth__ raku.org: 8cb7008e5d | (Márton Polgár)++ (committed using GitHub Web editor) | source/resources/index.html
Fixing glot.io link
15:30
raku.org: 050e73b45a | (Will Coleda)++ (committed using GitHub Web editor) | source/resources/index.html
Merge pull request #171 from 2colours/patch-1

Fixing glot.io link
[Coke] Geth need a rename? 17:13
lizmat [Coke]: why ? 17:14
melezhik jjatria here is my proposal for public suffix releases automation with Tomtit - gitlab.com/jjatria/publicsuffix/-/...requests/1 , it's not completed yet, but you can see the idea and star playing with that 17:47
SmokeMachine m: my &bla := -> $a, $b, $c {}; say bag ^50 .map: { my $id = &bla.id; &bla.assuming: 1; $id} # This is very odd... does anyone know why that happens? shouldn't always return the same id? 18:49
camelia Bag(2857428604920(2) 2857493940632(47) 2857571559072)
SmokeMachine I'm trying to cache functions using id, but that's not helping... 18:52
is this a bug? 18:56
[Coke] because he's Geth__ ? 19:38
.. except now it
s not, no worries then
lizmat :-) 19:51
SmokeMachine Is that a bug? 21:47
guifa SmokeMachine I wonder if it's an indication of JITing happening 22:42
Why not use WHICH though? That seems to be a bit more common 22:44
gfldex I have written an e-mail to the author of buttondown.email/hillelwayne/archi...e-to-see/, as we tick 5 out of 6 boxes. 23:06
guifa m: my regex foo { <+[a..z]+[0..9]+[\!]\#\$\%\&\'\*\+\/\=\?\^_\`\{\|\}\~\->+ } 23:21
camelia ===SORRY!=== Error while compiling <tmp>
Unable to parse expression in metachar:sym<assert>; couldn't find final '>' (corresponding starter was at line 1)
at <tmp>:1
------> my regex foo { <+[a..z]+[0..9]+[\!]⏏\#\$\%\&\'\*\+\/\=\?\…
guifa but
m: my regex foo { < +[a..z]+[0..9]+[\!]\#\$\%\&\'\*\+\/\=\?\^_\`\{\|\}\~\->+ }
camelia ( no output )
guifa all I did was add a space between the < and + at the beginning. That space shouldn't be significant AFAICT
AHA I found the error 23:24
guifa success 23:37
gist.github.com/alabamenhu/c0f12ec...ba1a0099f8