🦋 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.
abdan How do we perform alternate capturing group consist of some alternates just like on the "usual" regex default i.e. not get reset ? 00:05
abdan How do we perform alternate capturing group consist of some alternates just like on the "usual" regex default i.e. not get reset ? 00:20
[Coke] Your message made it through. 00:39
Most of the channel is in .eu time zones, FYI
I don't understand the ask, myself. can you give a more concrete example? 00:43
lucs Er, they left. 01:07
Voldenet but logs are eternal 01:10
lucs FSVO "eternal", but, fair enough :) 01:11
Voldenet I'll have them carved in stone to win an interned dispute ;) 01:14
lucs Hehe!
Voldenet I could suggest burning them onto wooden slices, but data rot could get them at some point 01:18
raiph 6c: say 'abefo' ~~ /a [(b) | (c) (d)] (e)[(f)|(g)]/ 13:44
committable6 raiph, gist.github.com/373ba9e4c3ad65da7d...30c8ac5b42 13:45
raiph c: 2014.01 say 'abefo' ~~ /a [(b) | (c) (d)] (e)[(f)|(g)]/ 13:51
committable6 raiph, gist.github.com/9458ce85957a0ed0c1...d82dd1e645
Anton Antonov Is there a separate version of Comma of MacOS M1 (Apple Silicon) ? 14:10
whatnext hello all :) I have a question about CRO - if there are any CRO experts around :) 15:49
say I have some routes, and I want e.g. a new database connection each time any route is called, so my routes might be like `get -> 'page' { $db_connection.do_something() }` - how can I avoid explicitly creating $db_connection in every route? 15:52
MasterDuke i don't know, but you could also try asking in #cro 16:14
whatnext ah I didn't realise that channel existed - thanks for the tip :) 16:18
MasterDuke np
MasterDuke m: my $a := MAST::Bytecode.new; $a.write_uint32(my uint $b := 4)   # lives just fine 17:38
camelia ===SORRY!=== Error while compiling <tmp>
Cannot bind to natively typed variable '$b'; use assignment instead
at <tmp>:1
------> ode.new; $a.write_uint32(my uint $b := 4⏏)   # lives just fine
MasterDuke nqp: my $a := MAST::Bytecode.new; $a.write_uint32(my uint $b := 4)   # lives just fine
camelia ( no output )
MasterDuke nqp: my $a := MAST::Bytecode.new; $a.write_uint32_at(my uint $b := 4, 0);  # throws with an odd error 17:39
camelia Too few positionals passed; expected 3 arguments but got 2
at gen/moar/stage2/MASTNodes.nqp:69 (/home/camelia/rakudo-m-inst-1/share/nqp/lib/MASTNodes.moarvm:write_uint32_at)
from <tmp>:1 (<ephemeral file>:<mainline>)
from gen/moar/stage2/NQPHLL.nqp:…
MasterDuke nqp: my $a := MAST::Bytecode.new; my uint $c := 0; $a.write_uint32_at(my uint $b := 4, $c);  # still throws 17:40
camelia Too few positionals passed; expected 3 arguments but got 2
at gen/moar/stage2/MASTNodes.nqp:69 (/home/camelia/rakudo-m-inst-1/share/nqp/lib/MASTNodes.moarvm:write_uint32_at)
from <tmp>:1 (<ephemeral file>:<mainline>)
from gen/moar/stage2/NQPHLL.nqp:…
MasterDuke nqp: my $a := MAST::Bytecode.new; my uint $b := 4; $a.write_uint32_at($b, my uint $c := 0);  # doesn't throw
camelia ( no output )
MasterDuke nqp: my $a := MAST::Bytecode.new; $a.write_uint32_at(4, my uint $c := 0);  # doesn't throw either 17:43
camelia ( no output )
MasterDuke i'm really not paying attention, that was supposed to be for #moarvm 17:45
[Coke] Anyone ever block that guest account? 17:46
lizmat [Coke] no, but it was a. a Guest account, and b. looked like a pretty general AWS IP number ? 17:56