🦋 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:08 reportable6 left 00:10 reportable6 joined 00:20 jrjsmrtn_ joined 00:21 jrjsmrtn left 00:39 bigdata left 01:05 londoed_ left, londoed_ joined 01:13 Darkcoal left 01:38 japhb left 01:49 japhb joined 02:49 nativecallable6 left, bisectable6 left, evalable6 left, releasable6 left, coverable6 left, sourceable6 left, bloatable6 left, benchable6 left, linkable6 left, shareable6 left, greppable6 left, unicodable6 left, statisfiable6 left, notable6 left, committable6 left, tellable6 left, reportable6 left, quotable6 left, greppable6 joined, reportable6 joined, unicodable6 joined, releasable6 joined 02:50 committable6 joined, evalable6 joined, sourceable6 joined, nativecallable6 joined 02:51 coverable6 joined, statisfiable6 joined, notable6 joined, quotable6 joined, linkable6 joined, benchable6 joined, bisectable6 joined 02:52 shareable6 joined, tellable6 joined, bloatable6 joined 03:12 Guest35 left 04:12 reportable6 left, coverable6 left, committable6 left, sourceable6 left, nativecallable6 left, tellable6 left, linkable6 left, evalable6 left, bisectable6 left, shareable6 left, unicodable6 left, statisfiable6 left, greppable6 left, bloatable6 left, benchable6 left, releasable6 left, quotable6 left, notable6 left 04:13 tellable6 joined, nativecallable6 joined, coverable6 joined, committable6 joined 04:14 reportable6 joined, bisectable6 joined, notable6 joined, evalable6 joined, bloatable6 joined, greppable6 joined, statisfiable6 joined, unicodable6 joined 04:15 benchable6 joined, linkable6 joined, quotable6 joined, sourceable6 joined, releasable6 joined, shareable6 joined 04:21 Tirifto left 04:47 Sgeo left 05:07 ocomport joined 05:16 Tirifto joined 06:04 jjido joined 06:07 reportable6 left 06:10 reportable6 joined 06:33 abraxxa joined 06:39 abraxxa left 06:40 abraxxa joined 07:40 statisfiable6 left, tellable6 left, releasable6 left, linkable6 left, reportable6 left, quotable6 left, benchable6 left, evalable6 left, committable6 left, coverable6 left, unicodable6 left, shareable6 left, nativecallable6 left, notable6 left, bloatable6 left, greppable6 left, bisectable6 left, sourceable6 left 07:41 quotable6 joined, committable6 joined, evalable6 joined, statisfiable6 joined, bisectable6 joined, coverable6 joined, notable6 joined, unicodable6 joined, sourceable6 joined 07:42 reportable6 joined, nativecallable6 joined, benchable6 joined, bloatable6 joined, shareable6 joined, releasable6 joined 07:43 linkable6 joined, greppable6 joined, tellable6 joined 08:10 dakkar joined 08:14 jjido left 08:15 jmcgnh left 08:27 jmcgnh joined 08:44 grondilu joined, frost joined
grondilu how do I remove C-style comments from a string? I thought .subst(/'//' .* $$/, '') would work at least for the // comments 08:45
m: say "foo //bar\nthat line should remain".subst(/'//' .* $$/, '') 08:46
camelia foo
grondilu m: say "foo //bar\nthat line should remain".subst(/'//' <-[\n]>* $$/, '') 08:47
camelia foo
that line should remain
08:48 linkable6 left 08:49 linkable6 joined
Voldenet m: say "foo //bar\nthat line should remain".subst(/'//' \N* $$/, '') 08:49
camelia foo
that line should remain
Voldenet grondilu: ^ consider this
there's gotchas in it, because C doesn't support unicode 08:51
(I'm not sure how VT/FF are supported)
09:00 fatrix[m] left 09:06 linkable6 left
grondilu \N is a useful shortcut indeed 09:07
09:08 linkable6 joined 09:49 jaguart joined 10:08 ocomport left 11:08 linkable6 left, coverable6 left, releasable6 left, nativecallable6 left, evalable6 left, quotable6 left, notable6 left, reportable6 left, greppable6 left, tellable6 left, committable6 left, bisectable6 left, benchable6 left, bloatable6 left, sourceable6 left, unicodable6 left, statisfiable6 left, shareable6 left, linkable6 joined, notable6 joined 11:09 evalable6 joined, releasable6 joined, sourceable6 joined, coverable6 joined, benchable6 joined, nativecallable6 joined, quotable6 joined 11:10 shareable6 joined, committable6 joined, bloatable6 joined, unicodable6 joined, bisectable6 joined 11:11 reportable6 joined, statisfiable6 joined, greppable6 joined, tellable6 joined 11:30 [Coke] left 11:48 [Coke] joined 12:06 [Coke]_ joined 12:07 reportable6 left 12:08 [Coke] left 12:09 [Coke]_ is now known as [Coke] 12:10 reportable6 joined 12:35 jaguart left 12:40 Chaul-Jhin-Kim joined
Chaul-Jhin-Kim Dear GOD/GODS and/or anyone else who can HELP ME (e.g. TIME TRAVELERS or MEMBERS OF SUPER-INTELLIGENT ALIEN CIVILIZATIONS): The next time I wake up, please change my physical form to that of FINN MCMILLAN formerly of SOUTH NEW BRIGHTON at 8 YEARS OLD and keep it that way FOREVER. I am so sick of this chubby Asian man body! Thank you! - CHAUL JHIN 12:41
KIM (a.k.a. A DESPERATE SOUL)
12:41 Chaul-Jhin-Kim left 13:03 aqua joined
Voldenet what 13:06
nine I guess that just had to get out 13:29
13:32 morte_ joined 13:35 Sgeo joined 13:38 discord-raku-bot left 13:39 discord-raku-bot joined 13:48 discord-raku-bot left, discord-raku-bot joined
[Coke] let's build a MOO on top of Raku and ditch irc. :) 13:49
14:08 discord-raku-bot left, discord-raku-bot joined
grondilu "MOO"? 14:17
14:17 frost left
japhb grondilu: One of several variants on MUD (Multi-User Dungeon). Text-based MMORPG, essentially. 14:24
[Coke] my college had a bunch of people in the late 80s/early 90s who built a chat system and I think it's still in use today. Always prefered it to irc, but we had the luxury of being able to provision users so random spam like that was not present. (Entirely different kind of spam, but at least you knew the person spewing it) 14:31
14:45 Guest35 joined
tonyo irc used to have MUD type games in it too, or blackjack bots, it probably still does somewhere 14:48
though stuff like napster and limewire and whatever people use today probably killed the file dump side 14:49
14:54 Guest35 left 14:58 RaycatWhoDat joined
RaycatWhoDat Morning. 14:58
I recall hearing whispers on the wind about macros coming to Raku. Did anything come of that? 14:59
[Coke] work in progress on adding RakuAST which will be the basis of any macro rewrite. 15:07
RaycatWhoDat Oh, neat. 15:12
Thanks for that
15:15 [Coke] left 15:16 [Coke] joined, morte_ left 15:21 morte_ joined 15:57 bigdata joined 15:59 TheAthlete joined, Sankalp- joined 16:00 Sankalp left, Sankalp- is now known as Sankalp 16:06 dakkar left 16:07 bigdata left
TheAthlete Uploaded file: uploads.kiwiirc.com/files/d42d603a...pasted.txt 16:08
Hello! How to implement an object pool for Promises. This implementation is not quite correct - only 3 URLs are downloaded and stopped. 16:09
my $*SCHEDULER = ThreadPoolScheduler.new(max_threads => 3);
sub MAIN($urls = 'urls.txt') {
  my @promises;
  for $urls.IO.lines -> $url {
    push @promises, start {
      run 'youtube-dl', '--no-progress', $url;
    }
  }
  say await Promise.allof(@promises).then({ so all(@promises>>.result) });
}
Hello! How to implement an object pool for Promises? This implementation is not quite correct - only 3 URLs are downloaded and stopped.
my $*SCHEDULER = ThreadPoolScheduler.new(max_threads => 3);
sub MAIN($urls = 'urls.txt') {
  my @promises;
  for $urls.IO.lines -> $url {
    push @promises, start {
      run 'youtube-dl', '--no-progress', $url;
    }
  }
  say await Promise.allof(@promises).then({ so all(@promises>>.result) });
}
16:38 sena_kun left, sena_kun joined 16:48 bigdata joined 16:58 TheAthlete left 17:01 Sankalp left 17:05 TheAthlete joined 17:07 Sankalp joined 17:09 abraxxa left 18:06 reportable6 left 18:09 reportable6 joined
moritz TheAthlete: I'd solve it without promises: my @result = $urls.IO.lines.race.map(-> $url { run 'youtube-dl', '--no-progress', $url }) 18:12
docs.raku.org/routine/race you can control parallelism there as well. Use hyper() instead of race() if the order of the result matters 18:14
18:28 melezhik joined
melezhik I am trying to build github.com/Raku/doc on Alpine linux using SparkyCI and get this error - sparrowhub.io:2222/report/290 , not sure why, Nodejs, npm, perl and grafitz are installed , maybe something Raku/doc maintainers might be interested 18:32
18:33 melezhik left, melezhik joined
melezhik doc say "cpanm --installdeps ." , maybe this is the reason? I miss this step 18:35
18:37 sena_kun left 18:39 sena_kun joined, melezhik left
grondilu hey guys, I'm working on a module about Google's protobuffer. 18:43
I'm reading this : developers.google.com/protocol-buf...ng#varints
and there is something I don't understand : why the hell do they say they use the two's complement? From the example they give, I don't see them using any complement. 18:44
18:44 n1to joined
grondilu Anyone would like to look at it and tell me what I'm missing? 18:44
btw I know there is a raku module about protobuffers already, but from what I can tell, it only parses proto files, it doesn't generate code for actual serialization. 18:46
18:48 RaycatWhoDat left 19:06 sena_kun left 19:07 sena_kun joined
[Coke] that failure is on Raku::Pod::Render, which is maintained by finanalyst 19:40
I'd open an issue at github.com/finanalyst/raku-pod-render
19:48 TheAthlete left 19:54 timo left 19:57 morte_ left 20:06 melezhik joined
melezhik . 20:06
20:07 morte_ joined
Voldenet TheAthlete: The problem is caused by `run`, not the sheduler - thread pool scheduler is not simply a thread pool, but a scheduler - you can easily create a thread pool using Channel and Thread classes though 20:08
tellable6 Voldenet, I'll pass your message to TheAthlete
20:18 melezhik left 20:21 timo joined 20:24 bigdata left 20:26 timo left 20:36 grondilu left 21:11 timo joined 21:22 n1to left 22:07 perlbot left 22:08 simcop2387 left 22:19 morte_ left, simcop2387 joined 22:20 perlbot joined 22:26 melezhik joined
melezhik SmokeMachine I see last 3 Red builds have succeeded on SparkyCI, which is really cool, that SparkyCI handled that and did not shut down - ha-ha ))) 22:27
Uploaded file: uploads.kiwiirc.com/files/26164c71...3%20PM.png 22:28
so you've managed to fix PostgreSQL tests?
22:57 melezhik left
SmokeMachine melezhik: still working on that… 23:09
tellable6 SmokeMachine, I'll pass your message to melezhik
23:16 guifa joined 23:40 londoed_ left, londoed_ joined 23:43 londoed_ left, londoed_ joined 23:47 londoed_ left, londoed_ joined