🦋 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.
00:12 sftp left 00:13 sftp_ joined, sftp_ is now known as sftp
_grenzo @aruniecrisps I've updated your issue on cro-http with a solution. 01:10
01:31 teatwo joined 01:35 eseyman_ joined, dutchie_ joined, El_Che_ joined 01:36 zupss joined, facetious joined, sjn_ joined, sivoais_ joined, andinus2 joined 01:40 bloatable6 left, quotable6 left, releasable6 left, shareable6 left, committable6 left, notable6 left, eseyman left, El_Che left, linkable6 left, zups left, tailgate left, epony left, sivoais left, teatime left, tjr left, sjn left, tellable6 left, unicodable6 left, evalable6 left, dutchie left, bd3i left, andinus left, shareable6 joined, releasable6 joined, committable6 joined, bloatable6 joined, quotable6 joined, unicodable6 joined, evalable6 joined, tellable6 joined, notable6 joined 01:41 epony joined, linkable6 joined, tjr joined 01:48 bd3i joined 02:46 kylese joined 02:47 hulk left 02:53 jpn joined 02:58 jpn left 02:59 MasterDuke joined 03:15 kylese left, kylese joined 03:20 derpydoo left 04:18 epony left 04:29 Sgeo left, Sgeo joined 04:33 andinus2 left 04:34 andinus joined 05:55 andinus left, andinus joined 06:10 jpn joined 06:14 jpn left 06:31 MasterDuke left 07:05 jpn joined 07:09 jpn left 07:43 jpn joined 08:03 sdfgsdfg left 08:04 sdfgsdfg joined, merp joined 08:24 Sgeo left 08:47 jpn left
gfldex Do we have a "representative" on lobste.rs ? 08:53
librasteve if so, please can i get an invite? 08:58
gfldex That's why I'm asking. :)
There are alot ... halve-truths about Raku dropped on that site. 08:59
09:00 jpn joined
librasteve grenzo ++ … does this mean cro-http needs to change docs to reflect making a self cert? (i had got the idea that the fake-tls was to avoid that step) 09:04
09:11 sena_kun joined 09:22 dakkar joined 09:29 sjn_ is now known as sjn 09:53 abraxxa joined 10:01 jpn left 10:06 jpn joined 10:25 teatime joined 10:26 tea3po joined 10:27 teatwo left 10:29 teatime left 10:38 teatwo joined 10:42 tea3po left 11:19 epony joined 11:26 sdfgsdfg left 11:29 sdfgsdfg joined
tbrowder__ m: 11:44
evalable6
tbrowder__ i'm having probs with using when blocks to parse @*ARGS elements. the user has to identify an input file name and i code it like this fragment: my $ifil; for @*ARGS { when not $ifil.defined { $ifil = $_ if $_.IO.f } }; 11:50
that works for defining $ifil, but following when blocks are ignored. i've tried using proceed but no help. 11:51
i've had some success putting that block last, just before the default block. 11:52
should i just use a for loop? 11:56
kjp tbrowder: Are you expecting, on each iteration of the for loop, for that when clause to execute, and then have the following code (more when clauses?) executed? 12:05
12:08 dutchie_ is now known as dutchie 12:32 abraxxa left 12:39 jpn left 12:42 jpn joined 12:56 epony left 13:11 jpn left 13:36 sena_kun left 13:38 sena_kun joined
tbrowder__ yes. i suspect i'm attempting an invalid attempt. the docs are a bit confusing on the issue. in the meantime, i've reverted to a for loop and all is well. (sounds like a good entry for a trap for the unwary). 13:40
lizmat tbrowder_: how about: my $ifil = @*ARGS.first(*.IO.f); 13:42
tbrowder__ ^^
13:49 jpn joined 14:00 Altai-man joined 14:01 sena_kun left
tbrowder__ thnx, but i want file to be entered in arbitrary position 14:08
next prob though, how to properly test for bool True or False from a sub return? 14:09
m: sub bool($f) { False }; my $v = boo(5); say $v 14:11
camelia ===SORRY!=== Error while compiling <tmp>
Undeclared routine:
boo used at line 1. Did you mean 'bool'?
tbrowder__ m: sub bool($v) { False}; my $v = bool(5); dd $v 14:12
camelia Mu $v = Bool::False
tbrowder__ m: sub bool($v --> Bool) { False}; my $res = bool(5); if $res.so { say "true" } else { say "false"}; 14:16
camelia false
tbrowder__ any cleaner way to do that? 14:17
lizmat tbrowder__ but my code allows it to be at any position ? 14:20
tbrowder__ sorry, i see that. 14:32
14:35 jpn left
tbrowder__ so can that be combined with a method to also remove it from @*ARGS 14:35
lizmat than you could ask for the index where it's found 14:36
tbrowder__ like: $ifil = @*ARGS.first(*.IO.f).shift. 14:37
lizmat e.g.: my $index = @*ARGS.first(*.IO.f, :k); and then splice out that element out of @*ARGS
14:38 epony joined
tbrowder__ thnx, but for my use i think a for loop is simpler. 14:39
14:43 vlad joined
lizmat m: my @a = ^10; sub eject(@a is raw, &target) { with @a.first(&target, :k) { @a.splice($_,1) } else { Nil } }; say @a.&eject(* == 3); say @a 14:43
camelia [3]
[0 1 2 4 5 6 7 8 9]
14:43 jpn joined
lizmat tbrowder__: or create a "sub eject" and use that :-) 14:44
afk& 14:49
m: my @a = ^10; sub eject(@a is raw, &target) { with @a.first(&target, :k) { @a.splice($_,1).head } else { Nil } }; say @a.&eject(* == 3); say @a 14:50
camelia 3
[0 1 2 4 5 6 7 8 9]
lizmat really afk&
14:59 jpn left 15:02 jpn joined 15:06 abraxxa joined 15:07 abraxxa left 15:09 jpn left 15:12 Sgeo joined 15:27 jpn joined 15:29 hudo__ joined
_grenzo @librasteve Alternatively, they could check in new cert and key 15:34
16:03 epony left 16:08 epony joined 16:20 epony left 16:36 epony joined 16:48 jpn left 16:57 vlad left 17:38 dakkar left 17:40 epony left 17:53 abraxxa-home joined 17:55 jpn joined 17:57 epony joined 17:58 zupss is now known as zups 17:59 jpn left 18:42 derpydoo joined 18:46 Sgeo left, Sgeo joined
librasteve ok - will try it - thanks! 19:05
19:07 epony left 19:08 epony joined 19:46 jpn joined 19:50 jpn left 19:53 teatwo left 20:07 sdfgsdfg left, sdfgsdfg joined 20:16 epony left 20:17 epony joined 21:23 abraxxa-home left, abraxxa-home joined 21:24 abraxxa-home left 21:43 jpn joined
I just saw the concerns on reddit about apt-get rakudo 21:48
www.reddit.com/r/rakulang/comments...libraries/ 21:49
I get that rakudo.org is keen to showcase all the many ways to get and run rakudo, but I am worried that it (and we) are spread too thin and that newbies will get a less than awesome experience from many of the ways listed 21:51
22:01 merp left
ok - I have made this github.com/librasteve/raku-Distro-Meta 22:34
please go here to make a case to keep or drop your favourite distros ... I will start to submit PRs to prune the tree and let you all know how I feel about it 22:36
22:46 epony left
github.com/rakudo/rakudo.org/pull/98 ... here's the kick off PR - please do comment 22:47
22:47 swaggboi left, epony joined 23:25 jpn left 23:38 Altai-man left