🦋 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.
00:00 guifa left, lockywolf left, xinming left, japhb left, Xliff left, Tirifto left, tobs left, ingy left, dg left, sivoais left, jast left, jrjsmrtn left, archenoth left, dg joined, jast joined, Xliff joined, xinming joined, sivoais joined, tobs joined, guifa joined 00:02 lockywolf joined, jrjsmrtn joined, Tirifto joined 00:03 ingy joined 00:05 japhb joined 00:07 reportable6 left 00:09 reportable6 joined 00:12 rbt left, rbt joined 00:17 Jerry73 joined
Jerry73 yo 00:17
00:17 Jerry73 left 00:26 frost joined
guifa o/ 00:28
00:46 frost left, frost joined 00:47 rbt left, rbt joined 01:08 rbt left, rbt joined 01:38 ProperNoun left 01:39 ProperNoun joined 02:23 rbt left, rbt joined 03:20 euandreh left, euandreh joined 03:39 frost left 04:52 reportable6 left, greppable6 left, bisectable6 left, shareable6 left, committable6 left, notable6 left, unicodable6 left, benchable6 left, sourceable6 left, quotable6 left, releasable6 left, evalable6 left, coverable6 left, nativecallable6 left, bloatable6 left, linkable6 left, statisfiable6 left, benchable6 joined, bisectable6 joined, reportable6 joined 04:53 greppable6 joined, notable6 joined, linkable6 joined, bloatable6 joined 04:54 releasable6 joined, shareable6 joined, nativecallable6 joined, unicodable6 joined 04:55 quotable6 joined, evalable6 joined, statisfiable6 joined, sourceable6 joined, committable6 joined, coverable6 joined 05:08 rbt left 05:19 rbt joined 05:27 epony left 05:31 mykhal left, fatrix[m] left, corwin left, thowe left, ecocode left, pjlsergeant left, patterner___ left 05:32 ecocode joined, patterner___ joined, pjlsergeant joined, thowe joined, mykhal joined 05:33 corwin joined 05:37 fatrix[m] joined 05:43 Summer left, rba[m] left, AlexDaniel left, unclechu left, uzl[m] left, kawaii_ left, toddr left, jjatria left, kybr left, KotH left, kawaii_ joined, KotH joined, jjatria joined, Summer joined, kybr joined, toddr joined 05:44 unclechu joined 05:45 uzl[m] joined, AlexDaniel joined 05:48 rba[m] joined 05:54 razetime joined, rbt left, rbt joined 06:02 abraxxa joined 06:07 reportable6 left 06:09 reportable6 joined 06:12 abraxxa left, abraxxa joined 06:42 Sgeo left 06:49 razetime left, rbt left, rbt joined 06:53 jjido joined 06:58 nebuchadnezzar joined 07:09 razetime joined 07:14 mexen joined 07:15 rbt left, rbt joined 07:28 lichtkind_ joined 07:32 Manifest0 joined 07:35 rbt left, rbt joined 07:36 frost joined 07:54 sena_kun left 07:55 sena_kun joined, rbt left 07:56 rbt joined 08:01 rbt left, rbt joined, dakkar joined 08:06 razetime left 08:26 rbt left, rbt joined 08:27 jjido left 08:52 sus joined 08:53 sus left 09:01 rbt left 09:12 rbt joined 09:13 jjido joined 09:27 jjido left 09:43 razetime joined 10:02 rbt left, rbt joined 10:06 razetime left 10:25 jjido joined
gfldex SmokeMachine: After carefull study of Rakudo, I now understand what you do with subset. There may be a host of cool stuff we can do with that. I shall blog later. 10:44
lizmat there's no goto in Raku either 10:45
gfldex But that doesn't mean Raku couldn't be your go-to language! :-> 10:46
Nemokosch can a postcircumfix operator be hypered as if it was an infix operator? 11:12
SmokeMachine gfldex: please let me know when you blog about it, I'm very interested! :)
gfldex lolibloggedalittle: gfldex.wordpress.com/2022/04/11/a-...et-of-red/
11:16 jjido left
SmokeMachine gfldex: great post! And thanks for the recommendation! :) 11:16
gfldex You are very welcome. 11:17
I can now claim to understand subset.
11:22 rbt left 11:23 rbt joined 11:30 ocomport joined
CIAvash The error message part in where clauses were explored by zoffix blogs.perl.org/users/zoffix_znet/20...umans.html he even created a module for it github.com/raku-community-modules/Subset-Helper 11:55
12:04 Altai-man joined 12:06 reportable6 left 12:07 reportable6 joined
lizmat and yet another Rakudo Weekly News hits the Net: rakudoweekly.blog/2022/04/11/2022-15-wordling/ 12:30
12:38 rbt left, rbt joined 13:11 morte_ joined 13:18 rbt left, rbt joined 13:21 morte_ left 13:23 rbt left 13:25 frost left 13:30 ecocode left, ecocode joined 13:34 rbt joined 13:52 Sgeo joined 13:54 Altai-man left, Altai-man joined, rbt left 13:55 rbt joined 14:06 morte_ joined 14:17 childlikempress joined 14:18 masak left, moon-child left 14:19 masak joined 14:34 razetime joined 14:40 rbt left, rbt joined 14:52 archenoth joined 15:11 rbt left, rbt joined 15:14 morte_ left 15:19 razetime left 15:46 rbt left, rbt joined 16:05 ProperNoun left 16:06 ProperNoun joined 16:13 sena_kun_ joined, Altai-man left, dogbert17 joined 16:15 dogbert11 left 16:38 dakkar left 16:56 rbt left, rbt joined 17:03 jjido joined 17:14 mexen left, sena_kun_ left 17:22 djerius left 17:27 rbt left, rbt joined 17:28 djerius joined 17:32 rbt left, rbt joined 17:35 RakuIRCLogger__ joined, TempIRCLogger left, Geth left 17:36 lizmat_ joined, RakuIRCLogger left 17:37 lizmat left, lizmat_ left 17:38 lizmat joined, RakuIRCLogger__ left
nine lizmat++ 17:53
18:05 discord-raku-bot left 18:06 discord-raku-bot joined, reportable6 left 18:07 jjido left 18:08 reportable6 joined 18:12 rbt left, rbt joined 18:18 rbt left, rbt joined 18:28 rbt left, rbt joined 18:42 abraxxa left 18:43 rbt left, rbt joined 18:49 rbt left, rbt joined 18:53 morte_ joined 18:55 morte_` joined 18:58 abraxxa joined 18:59 morte_ left
El_Che lizmat is our unsung hero 19:04
Voldenet That may be a silly question, since it's not documented that it should work like that, but
m: (^5).produce( -> $a, $b { FIRST { take 42 }; $b }).say
camelia (0 1 2 3 4)
Voldenet shouldn't this return (0 42 1 2 3 4)?
docs state that produce is an implicit loop after all 19:05
Nemokosch where is the implicit gather, though? 19:08
[Coke] Voldenet: where do the docs state that? 19:09
Voldenet > docs.raku.org/type/List#routine_produce
> Since produce is an implicit loop, it responds to next, last and redo statements inside &with:
[Coke] ah, at the very bottom of docs.raku.org/routine/produce
Voldenet using FIRST is outside of scope of this though, that's why it's a silly question
however, it works in map 19:10
m: (^5).map(sub ($_) { FIRST { return 42 }; $_ }).say
camelia (42 1 2 3 4)
Voldenet m: (^5).produce(sub ($a, $_) { FIRST { return 42 }; $_ }).say
camelia (0 1 2 3 4)
Voldenet if you know what first element is, you can cheat though 19:11
m: (^5).produce(sub ($a, $_) { if $a == 0 { return 42 }; $_ }).say
camelia (0 42 2 3 4)
Nemokosch it's really interesting that map and produce don't work the same way 19:12
Voldenet produce uses gather/take and map doesn't 19:13
19:14 discord-raku-bot left
Voldenet m: (^5).produce(sub ($a, $_) { take 42; $_ }).say 19:15
camelia (0 42 1 42 2 42 3 42 4)
19:15 discord-raku-bot joined
guifa it might be using it internally, but I don't it's something you should rely upon 19:18
Voldenet Yes, definitely not, especially if docs say nothing about it 19:20
…in fact, FIRST/LAST work weird in map 19:26
m: (^5).map(sub ($_) { FIRST { return 42 }; $_ }).say
camelia (42 1 2 3 4)
Voldenet m: (^5).map(sub ($_) { LAST { return 42 }; $_ }).say
camelia Attempt to return outside of immediately-enclosing Routine (i.e. `return` execution is outside the dynamic scope of the Routine where `return` was used)
in block <unit> at <tmp> line 1
Voldenet It's weird code nobody sane would write anyway, normal people would just use gather/take for anything complex 19:28
19:41 morte_` left 19:47 childlikempress is now known as moon-child 20:12 jjido joined 20:19 abraxxa left 20:29 rbt left, rbt joined 20:39 hhcryfqnut joined, rbt left, rbt joined 20:43 hhcryfqnut left 20:55 rbt left, rbt joined 21:03 Guest1812 joined
Geth doc/search-categories-update: 22 commits pushed by Altai-man++, Coke++
review: github.com/Raku/doc/compare/401383...78596bb717
21:12
[Coke] ^^ rebase 21:13
21:20 jjido left 21:26 lichtkind__ joined 21:29 lichtkind_ left 21:35 rbt left, rbt joined 21:45 rbt left, rbt joined 21:56 rbt left, rbt joined 22:01 lichtkind__ left 22:09 linkable6 left 22:11 Guest1812 left, linkable6 joined 22:13 Guest35 joined 22:46 tejr left 22:52 tejr joined 23:06 rbt left, rbt joined 23:11 rbt left, rbt joined 23:17 rbt left, rbt joined 23:22 rbt left, rbt joined