🦋 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:14 Xliff left 00:17 jpn joined 00:22 jpn left 00:25 synthmeat left 00:29 Manifest0 left 00:36 synthmeat joined 01:12 jpn joined 01:18 jpn left 01:20 haxxelotto left 02:02 Voldenet left 02:08 jpn joined 02:13 jpn left 02:16 hulk joined 02:18 kylese left 02:30 lm joined 02:36 Voldenet joined 02:51 lm left 03:05 jpn joined 03:11 jpn left 03:15 hulk left, kylese joined 03:56 DarthGandalf left 04:04 DarthGandalf joined 04:12 jmcgnh left 04:25 jmcgnh joined 04:32 jpn joined 04:38 jpn left 05:33 jpn joined 05:38 jpn left 06:03 jpn joined 06:08 jpn left 06:30 moon joined 06:32 moon left 06:35 jpn joined 06:39 jpn left 07:29 jpn joined 07:34 jpn left 07:35 Sgeo left 07:46 jpn joined 08:09 abraxxa joined 08:10 jpn left 08:15 teatime joined 08:30 abraxxa1 joined 08:33 abraxxa left 09:00 Manifest0 joined 09:01 haxxelotto joined 09:09 dakkar joined 09:27 ptc joined 09:33 sena_kun joined 09:43 frost joined
frost m: my @a=[^120]; @a.map(*.say) 09:46
camelia 0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
5…
10:00 abraxxa1 left
Voldenet I wouldn't count on side effects in .map 10:16
with .race in the iterator it could cause some serious confusion 10:18
m: my @a=[^120]; gather for @a { .say.take } 10:19
camelia 0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
5…
10:25 jpn joined 10:27 Test96 joined 10:28 Test96 left 10:43 DarthGandalf left 11:07 abraxxa joined 11:10 jpn left
frost I think there is a bug in the REPL, `[0] > my @a=[^120]; @a.map(<-> $a { $a++ }); [1] > say @a[101]; say @a[102]`, the result is `"102\n102"` 11:14
Put them on one line fixs the problem 11:15
BTW, why dose `@a.map(<-> $a is rw { $a++ })` not change values of @a? when `<->` and `is rw` are together, the side effects disappear 11:19
lizmat that last thing feels like a bug 11:20
12:13 jpn joined 12:18 abraxxa1 joined 12:20 abraxxa left 12:29 abraxxa joined 12:30 jpn left 12:32 abraxxa1 left
lizmat clickbaits rakudoweekly.blog/2024/03/18/2024-...pen-comma/ 12:50
12:59 SrainUser joined, jpn joined 13:02 DarthGandalf joined 13:06 jpn left 13:09 frost left, jpn joined
Voldenet for me it doesn't feel like a bug, it's exactly what I'd expect from .map with side-effects 13:20
which is pure nonsense 13:21
fwiw ` @a.map(<-> $a { $a++ }).eager` does an expected thing 13:22
13:23 Xliff joined
Xliff How can I tell if a command executed via qqx<> completed successfully? 13:23
antononcube I think recently there was a discussion about "HummingBirds" performance "web service wise." Is there similar discussion and / or benchmarks about "Cro" ? 13:30
13:34 Wonner joined
Voldenet Xliff: there's no way, QX never does anything to the exit code github.com/rakudo/rakudo/blob/main...kumod#L245 13:36
m: say shell(<ls /blah>, :out :err).exitcode 13:40
camelia 2
Voldenet a replacement
Xliff Voldenet++ # Thanks! 13:41
13:59 Wonner left 14:03 SrainUser left 14:32 jpn left 14:39 jpn joined 15:05 Tirifto_ left 15:07 Tirifto joined 15:13 abraxxa1 joined 15:17 abraxxa left 15:33 Tirifto left 15:41 Tirifto joined 16:00 abraxxa1 left 16:25 quib left 16:41 vlad joined 17:04 jpn left
tbrowder ref File::Zip what does the version you want have that the other one doesn't? are both authors still available? 17:05
i've used Archive::SimpleZip to good effect 17:07
17:38 Xliff left 17:46 dakkar left 18:16 vlad left 18:28 vlad joined 18:49 bdju left 18:51 bdju joined 18:59 jpn joined
antononcube .seen @rf 18:59
tellable6 antononcube, I cannot recognize this command. See wiki for some examples: github.com/Raku/whateverable/wiki/Tellable
antononcube .seen rf
tellable6 antononcube, I saw rf 2023-08-07T20:59:12Z in #raku: <rf> Where does this person get gremlins from? Besides that I think they liked Raku?
19:08 vlad left 19:09 SrainUser joined 19:21 SrainUser left, SrainUser joined 19:27 jpn left 19:36 avuserow left 19:37 avuserow joined 19:40 jpn joined 19:44 SrainUser left, SrainUser joined 19:50 haxxelotto left 20:04 derpydoo joined
ptc tbrowder: one is a dependency of Selenium::WebDriver and was written by the same author; that particular version of File::Zip uses `unzip` to extract archives whereas the other File::Zip uses `extract` IIRC. 20:17
tbrowder: I don't know if both authors are still available; it's sort of hard to tell :-/
tbrowder: either way, I wanted to get Selenium::WebDriver to work and for that I needed one particular File::Zip and it didn't seem possible 20:18
tbrowder: ugexe gave a great tip in his answer to my issue on GitHub and basically mentioned that `zef install File::Zip:ver<0>` would also do the trick (`*` gets treated as being effectively 0) and yes, that works :-) 20:19
20:46 jpn left 21:27 SrainUser_ joined 21:30 SrainUser left, SrainUser_ is now known as SrainUser
librasteve frost: @a.map(<-> $a is rw { $a++ }) is nonsense due to side effects as voldenet pointed out - also <-> does the is rw for you, no need to say it twice 21:41
tellable6 librasteve, I'll pass your message to frost
21:42 SrainUser left 21:47 derpydoo left 22:15 jpn joined 22:20 jpn left 22:27 ptc left 22:28 Sgeo joined 22:32 SrainUser joined 22:43 SrainUser left 23:12 jpn joined 23:17 jpn left 23:36 SrainUser joined