[Coke] tbrowder: what's the link to the ticket? 00:37
does "zef test ." hit it? 00:41
tbrowder: your file is named incorrectly. Commented on your App::Mi6 ticket. 01:07
tbrowder arg, i'm back in 1st grade again :-( 01:17
and blind as a bat. thanks, [Coke], you saved me again! 01:24
01:32 hulk joined 01:33 kylese left
Voldenet nqp: class EEK {method Int() {return 3}}; my $a:= EEK.new(); say(+$a); # this works 01:38
camelia
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility…
Voldenet …should
which makes me wonder if that's intentional or buggy 01:39
nqp: class EEK { method Int() { return 3 }}; my $a:= EEK.new(); say(nqp::intify($a)); # more working examples 01:41
camelia
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility…
Voldenet nqp: class EEK { method Num() { return 3.0 }}; my $a:= EEK.new(); say(nqp::numify($a)); # same for Num
camelia
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility…
Voldenet the whole nqp source doesn't have `Numeric` in it 01:44
I'm guessing doing `+nqp::numify($a)` automatically is wrong, because it wrecks precision 01:48
might, at least 01:50
so instead of 1e40 you get -something 01:51
It could make sense the other way 01:52
xinming m: my $s = "aaaxxx-_"; if ($s ~~ /$<x> = [<[-] + alnum>+]/) { $<x>.Str.say; }
camelia aaaxxx-_
xinming m: my $s = "aaaxxx-_"; if ($s ~~ /$<x> = [<alnum + [-]>+]/) { $<x>.Str.say; }
camelia ===SORRY!=== Error while compiling <tmp>
Quantifier quantifies nothing
at <tmp>:1
------> "aaaxxx-_"; if ($s ~~ /$<x> = [<alnum +<HERE> [-]>+]/) { $<x>.Str.say; }
xinming In this case, How do we make the second work? 01:53
Also, I saw there is something like 'regex { }', I got curious, why not also 'token { }' :-) 01:58
seems, No syntax for '<alnum + [-]>+', never mind, will stick with '<[-] + alnum>' 02:08
02:15 hulk left, kylese joined 04:01 hwj joined 04:07 hwj left 04:19 vrurg_ joined 04:21 vrurg left
xinming m: my $s = "aaaxxx-_"; if ($s ~~ /$<x> = [<+alnum + [-]>+]/) { $<x>.Str.say; } 04:48
camelia aaaxxx-_
04:58 wayland joined 04:59 wayland76 left 05:17 hwj joined 05:19 human-blip left 05:21 human-blip joined
Voldenet I'm not sure but 05:44
m: my $s = "aaaxxx-_"; if ($s ~~ / $<x> = [<alnum> | <[-]>]+ /) { $<x>.Str.say; } # perhaps this
camelia aaaxxx-_
Voldenet it's probably entirely different performance-wise 05:45
in fact you don't need character class 05:46
m: my $s = "aaaxxx-_"; if ($s ~~ / $<x> = [<alnum> | '-']+ /) { $<x>.Str.say; }
camelia aaaxxx-_
Voldenet yeah, it's 50% slower as expected 05:49
06:17 ShimmerFairy left 06:39 Sgeo left 06:56 ShimmerFairy joined 07:22 hwj left 07:52 dakkar joined 08:37 farhan_midnight joined, farhan_midnight left
xinming Voldenet: Thanks for the '[ <predefined-class> | <[-]>]+' example, I read the doc long time ago, it's recently, I wish to pick raku again. 09:31
now, I don't care about performance yet, will keep the tip
github.com/4RH1T3CT0R7/doom-regex <--- When I read this news, I thought, Someone may do this with rule engine again. :-) 09:35
09:38 jjido joined
wayland That (doom-regex) is utterly nuts. Thanks! :) 09:39
10:55 jjido left
xinming m: my @a = (1..3); @a = ("header", |(@a ?? ("iheader", |@a.map({"i$_"}), "ifooter") !! Empty), "footer"); @a.map({ "$_\n" }).raku.say; 10:59
camelia ("header\n", "iheader\n", "i1\n", "i2\n", "i3\n", "ifooter\n", "footer\n").Seq
xinming m: my @a = (1..3); @a = ("header", (@a ?? ("iheader", @a.map({"i$_"}), "ifooter") !! Empty), "footer"); @a.map(|*).map({ "$_\n" }).raku.say;
camelia ("header\n", "iheader\n", "i1 i2 i3\n", "ifooter\n", "footer\n").Seq
xinming Is there a shorter way to make map flat? 11:00
With my first example, I did twice .Slip
m: my @a = (1..3); @a = ("header", (@a ?? ("iheader", |@a.map({"i$_"}), "ifooter") !! Empty), "footer"); @a.map(|*).map({ "$_\n" }).raku.say;
camelia ("header\n", "iheader\n", "i1\n", "i2\n", "i3\n", "ifooter\n", "footer\n").Seq
xinming This version workd, But don't know if there is better way than my example.
timo m: my @a = (1..3); @a = ("header", (@a ?? ("iheader", |@a.map({"i$_"}), "ifooter").Slip !! Empty), "footer").list; dd @a 11:03
camelia ["header", "iheader", "i1", "i2", "i3", "ifooter", "footer"]
timo .Slip once, and .list at the end before assigning to @a
xinming Now, the example did twice .Slip, yet add another .list method :-) 11:07
m: my @a = (1..3); @a = ("header", |flat(@a ?? ("iheader", @a.map({"i$_"}), "ifooter").flat !! Empty), "footer"); @a.map({ "$_\n" }).raku.say; 11:12
camelia ("header\n", "iheader\n", "i1\n", "i2\n", "i3\n", "ifooter\n", "footer\n").Seq
xinming I think this example is easier to understand understandable to me
timo oh there's the slip you mean 11:13
m: my @a = (1..3); @a = ("header", (@a ?? ("iheader", @a.map({"i$_"}), "ifooter") !! Empty).Slip, "footer").flat; dd @a 11:14
camelia ["header", "iheader", "i1", "i2", "i3", "ifooter", "footer"]
timo here that's not more slip this time
xinming m: my @a = (1..3); @a = ("header", (@a ?? ("iheader", @a.map({"i$_"}), "ifooter") !! Empty).Slip, "footer"); dd @a.flat 11:25
camelia ("header", "iheader", $(("i1", "i2", "i3").Seq), "ifooter", "footer").Seq
xinming The 2 examples seems to be the same, But there're different, tried @a.flat several times 11:27
11:37 ShimmerFairy left
xinming m: my @a = (1..3); @a = ("header", (@a ?? ("iheader", @a.map({"i$_"}), "ifooter") !! Empty).Slip, "footer"); @a.map({ "$_\n" }); 11:38
camelia ( no output )
xinming m: my @a = (1..3); @a = ("header", (@a ?? ("iheader", @a.map({"i$_"}), "ifooter") !! Empty).Slip, "footer"); @a.map({ "$_\n" }).raku.say;
camelia ("header\n", "iheader\n", "i1 i2 i3\n", "ifooter\n", "footer\n").Seq
xinming m: my @a = (1..3); @a = ("header", (@a ?? ("iheader", @a.map({"i$_"}), "ifooter") !! Empty).Slip, "footer"); @a.flat.map({ "$_\n" });
camelia ( no output )
xinming m: my @a = (1..3); @a = ("header", (@a ?? ("iheader", @a.map({"i$_"}), "ifooter") !! Empty).Slip, "footer"); @a.flat.map({ "$_\n" }).raku.say;
camelia ("header\n", "iheader\n", "i1 i2 i3\n", "ifooter\n", "footer\n").Seq
11:50 ShimmerFairy joined
melezhik. Has anyone already tried Rakupp? 11:55
I am thinking this could be good fit to create single binary for some of my applications 11:56
11:56 oodani left
I wonder if this compiler will create binary for dependencies as well 11:57
11:57 oodani joined
Or will include them to be accurate 11:57
Into binary
This could be a good alternative to containers thing
Which always feels overhead for me in case I can create executables directly, like for golang code 11:58
12:35 ShimmerFairy left 13:13 ShimmerFairy joined
tbrowder ugexe: how can i uninstall a specific module? i’ve tried various incantations but they still show. i think it’s a cache thing, yes? 15:01
lizmat ugexe is on holiday afai... zef uninstall "exact identity" usually does the trick for me 15:03
tbrowder thnx 15:30
15:58 swaggboi left 16:16 swaggboi joined 16:23 swaggboi left 16:31 dakkar left 16:44 human-blip left 16:46 human-blip joined 16:47 ShimmerFairy left, ShimmerFairy joined, ShimmerFairy left 16:48 ShimmerFairy joined 17:20 ShimmerFairy left 17:27 leppard joined 17:34 swaggboi joined 17:42 swaggboi left 17:51 swaggboi joined
melezhik. For those who use dev.to for posts - github.com/forem/forem/issues/23679 might be interesting 18:13
18:56 ShimmerFairy joined 20:05 jjido joined 21:04 sftp_ joined, sftp left 21:05 sftp_ is now known as sftp, sftp left, sftp joined 21:33 nuno joined 21:36 nuno left 22:25 Sgeo joined
thowe kinda wish Raku had Net::SFTP 22:42
[Coke] thowe: we do have Inline::Perl5, though. 23:02
23:08 jjido left