🦋 Welcome to Raku! raku.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: colabti.org/irclogger/irclogger_log/raku
Set by ChanServ on 14 October 2019.
japhb tbrowder: The one with the higher API or version? Unless you've been specifying auth in your use statements, in which case you'll run across the problem that fez requires the 'zef:' prefix on auths for uploaded dists. 00:00
(Because fez has a naming authority) 00:01
00:14 Doc_Holliwould left 00:26 telex left 00:28 telex joined 01:10 Doc_Holliwood joined 01:22 kvw_5_ joined 01:25 kvw_5 left 01:35 defaultxr joined 01:36 monkey__ joined 01:48 Doc_Holliwood left, defaultxr left 01:51 monkey__ left 01:57 frost-lab joined 02:16 mowcat left 02:17 softmoth joined 02:18 Doc_Holliwood joined 02:27 monkey__ joined 02:34 neshpion left 02:49 _jrjsmrtn left 02:50 __jrjsmrtn__ joined, monkey__ left 02:52 Doc_Holliwood left 03:43 monkey__ joined 03:49 monkey__ left 03:50 monkey__ joined 04:08 monkey__ left 04:10 softmoth left 04:26 defaultxr joined 04:56 Benett left 05:09 Benett joined 05:15 mtj_ left 05:22 kurahaupo left 05:25 wamba joined
Geth doc: 9654f5bdf2 | (Richard Hainsworth)++ (committed by Juan Julián Merelo Guervós) | doc/Type/Proc.pod6
Insert missing target into Proc #3841

  `Type/Independent-routines` contains a reference to `Proc#sub_run` but `Type/Proc` does not contain any target for `run`.
So I have inserted a X<> around the first explanation of `run` in Proc. This provides a target for Independent-routines (also opening separate PR with new target)
BUT, for consistency, `run` should be listed as sub along with `new` and `shell`. Also relationship with new should be illustrated. This is not done in this PR.
05:31
linkable6 Link: docs.raku.org/type/Proc
05:31 Doc_Holliwood joined, linkable6 left 05:34 linkable6 joined 05:42 mtj_ joined 05:44 stoned75 joined 05:49 mtj_ left, mtj joined 05:51 mtj left, mtj joined 05:52 mtj left 05:53 parabolize left 06:06 stoned75 left 06:24 stoned75 joined 06:35 jmerelo joined 06:47 domidumont joined 06:48 Manifest0 left 06:51 Manifest0 joined 06:58 Sgeo left 07:01 exprosic joined 07:32 Doc_Holliwood left 07:57 pecastro joined 07:59 dogbert17 left, dogbert17 joined 08:02 dogbert11 joined 08:03 dogbert11 left 08:05 dogbert11 joined 08:06 dogbert17 left 08:14 domidumont left 08:16 dogbert17 joined 08:18 dogbert12 joined 08:20 dogbert11 left 08:21 dogbert17 left 08:23 dogbert17 joined 08:27 dogbert12 left 08:29 wamba left 08:30 sena_kun left 08:31 sena_kun joined 08:34 dogbert11 joined 08:37 dogbert12 joined, dogbert17 left, abraxxa joined 08:40 dogbert11 left 08:42 dogbert17 joined 08:43 abraxxa left, abraxxa joined 08:45 dogbert12 left 08:47 abraxxa left, dogbert11 joined
lizmat clickbaits rakudoweekly.blog/2021/04/05/2021-...ting-rats/ 08:48
08:49 abraxxa joined 08:51 dogbert17 left 08:54 abraxxa left 08:55 abraxxa joined
El_Che floating rats :) 08:57
08:59 rindolf joined
Geth Raku-Steering-Council/main: 7e8b590216 | (Elizabeth Mattijsen)++ | minutes/20210320.md
The minutes of RSC meeting on 20 March 2021

A little late, I know.
09:00
09:13 sno left 09:14 torbjorn_ is now known as torbjorn 09:22 frost-lab left 09:48 abraxxa left 09:50 abraxxa joined 09:53 exprosic left 10:07 sno joined, domidumont joined 10:12 Doc_Holliwood joined 10:14 |oLa| left 10:30 |oLa| joined 10:32 parv joined 10:41 Black_Ribbon left 10:49 mowcat joined 10:52 mtj joined 11:05 wbiker left 11:19 sena_kun left 11:20 epony left, sena_kun joined 11:25 epony joined 11:26 frost-lab joined 11:42 MasterDuke left 11:43 linkable6 left, MasterDuke joined 11:44 linkable6 joined 12:11 Doc_Holliwood left 12:22 mowcat left 12:24 wamba joined 12:26 ufobat joined 12:30 frost-lab left 12:51 Doc_Holliwood joined 13:01 wamba left 13:02 wamba joined, MasterDuke left 13:03 MasterDuke joined 13:16 kurahaupo joined 13:37 MilkmanDan left 13:42 MilkmanDan joined 13:43 stoned75 left 13:47 Doc_Holliwood left 13:54 Doc_Holliwood joined, b2gills left 14:00 abraxxa left 14:01 abraxxa joined 14:04 Sgeo joined 14:06 stoned75 joined 14:17 epony left 14:18 epony joined 14:21 abraxxa left 14:22 abraxxa joined 14:24 b2gills joined 14:33 sanikovich joined 14:34 sanikovich left 14:37 wamba left 14:50 parabolize joined 14:54 wamba joined 15:21 wbiker joined
[Coke] Problem installing DOM::Tiny on windows with zef, getting a "failed to rename" when dealing with a precomp folder, "operation not permitted", on windows. with 2020.11-xxx 15:33
15:36 Doc_Holliwood left 15:46 PimDaniel joined
PimDaniel \o 15:47
tellable6 2021-04-03T12:07:48Z #raku <lizmat> PimDaniel: looking at that code example, it should
15:47 PimDaniel left
samebchase- Assume I have a Supply where events are being sent. Now, if there is more than say 2 seconds between events, then we have to trigger a timeout. The thing is, I want this to run in a loop indefinitely. What's the best way of modeling such situations? 16:04
Ideally, I would need something like Promise.anyof, but for two supplies, one is the event supply, and the other is a timeout supply. If an event comes before the 2 second timeout, I want that timeout message to be discarded, and start the timer again, so to speak 16:05
In danboykis.com/posts/core-async-timeout-channels/ we see that the `alts!` function is being run on two separate channels, one is `c` and the other is a timeout channel. Basically, it's a race between two channels. Only one message is processed, the other is discarded. 16:06
In core.async that code can be run in a loop, and on each loop iteration it will run the race between both channels 16:07
16:08 jcallen_ is now known as jcallen
samebchase- The problem I am having with react/whenever is that I'm not finding a way to do a race between two supplies. BOTH messages are getting consumed. I want to discard some messages based on the result of the race. I hope I'm making sense. 16:08
I tried using modules.raku.org/dist/Supply::Timeout:cpan:CONO , but maybe I'm using it wrong 16:13
japhb You've got a bit of an XY question going there. I'm not sure if you're curious how to "race supplies", or how to determine that it's been 2 seconds between events. One possible way of doing the latter is docs.raku.org/routine/stable . 16:18
16:22 abraxxa left 16:24 abraxxa joined
samebchase- japhb: The XY question did strike my mind when I was asking this question. 😂 What I am trying to do is implementing the timeouts for Raft. I did use stable earlier, by doing a merge between the "events" supply and the "timeouts" supply. That did work, but it wasn't getting fired in the case where no events come in the "events" supply. stable() 16:24
was ensuring that I could do something every time there is X time elapsed between events, but in the case where there are no events at all, I still want a timeout to occur at that point
With stable I was able to get half the problem sorted 16:25
japhb Well it's hackish, but you could always arrange to send a dummy event down the event supply whenever stable fires. 16:29
samebchase- japhb: yup I could do that! I was just wondering if there's a more elegant way to model these problems 16:30
16:31 Doc_Holliwood joined
samebchase- A few days ago I stared at the documentation of stable(), and I just could not make sense of what it was trying to convey. I did the monkeys-on-a-typewriter thing, and something finally stuck. 16:31
japhb: if you had to implement the timeout logic, what would you reach for? would you try and write your own version of some function like stable() which does what you want, or is there an easier way to do this 16:32
16:34 wbiker left
samebchase- Or it might be better if I hack up something based on stable(), and at least get it working how I need, and then refine it later. 16:35
16:47 abraxxa left, stoned75 left, abraxxa joined 16:49 stoned75 joined 16:52 abraxxa left 16:54 abraxxa joined
japhb The only time I've needed a similar kind of timeout functionality was in this code: github.com/ab5tract/Terminal-Print...t.pm6#L145 -- I used a stable timer (lines 146-148) that I would repeatedly silence by emitting a timestamp into it (lines 234-239), so if I ever failed to silence it in time, the timer would fire. 16:55
17:04 domidumont left 17:09 Doc_Holliwood left 17:12 abraxxa left 17:14 abraxxa joined 17:15 softmoth joined 17:17 abraxxa left
kawaii Has anyone had any luck getting Cro installed on Windows? I've only ever installed it on Linux which simply requires the build-essential package but I guess I'm stuck in endless dependency hell on Windows or something. www.irccloud.com/pastebin/DFWisckk/ 17:18
17:18 abraxxa joined
samebchase- japhb: Nice! Thanks for the link. "Silencing a timer" this sounds like exactly what I am looking for. 17:20
17:24 abraxxa left, abraxxa joined 17:26 abraxxa left, abraxxa joined 17:33 abraxxa left, abraxxa joined 17:37 abraxxa left 17:41 patrickb joined 17:42 MasterDuke left 17:50 ufobat left 17:54 PlayPause9 joined
PlayPause9 @tyil Is that you? The one helping WhiskedIgloo on Reddit with Raku? 17:54
tyil I think I am, yes 17:55
if its posted by tyil on reddit :>
PlayPause9 Yeah, you're helping me. Well, here I am.
tyil :D
PlayPause9 :) 17:56
18:03 aborazmeh joined 18:05 parv left 18:08 softmoth left, softmoth_ joined, softmoth_ is now known as softmoth 18:16 MasterDuke joined
[Coke] any alternatives to DOM::Tiny in the ecosystem? 18:29
18:29 linkable6 left, linkable6 joined 18:30 neshpion joined 18:39 Doc_Holliwood joined
[Coke] is there a way to write "return %hash<path><to><nested> if %hash<path><to><nested>:exists without duplicating the keys? 18:39
18:40 neshpion left 18:41 jmerelo left 18:42 jmerelo joined
codesections m: my %a; %a<b><c><d> = 42; say do with %a<b><c><d> { $_ } 18:42
camelia 42
codesections does that do what you're looking for?
m: my %a; %a<b><c><d> = 42; say do with %a<b><c><nope> { $_ }
camelia ()
18:44 ionsolo joined 18:50 sno left 18:57 japhb left 18:58 japhb joined, jmerelo left, japhb left
Doc_Holliwood "Rakudo runs on MoarVM and the Java Virtual Machine (JVM)." 19:01
can you use java objects though?
19:03 MasterDuke left, ionsolo left
[Coke] codesections: might work, will try. thanks 19:10
19:15 jmerelo joined 19:20 ionsolo joined 19:41 aborazmeh left
PlayPause9 I'm trying to set up Visual Studio Code so I can use it as my IDE for my Raku programming. What is the path to the perl6 executable? 19:43
ionsolo try >$ whereis raku on your bash 19:44
$ whereis raku 19:46
but also you should try the comma ide, there is a lot effort of the community on it
commaide.com/
19:47 ionsolo left
PlayPause9 Oh right. Alright. 19:47
I've never successfully installed Comma. It doesn't show up as an installed program in my start menu. I always have to go to the terminal and do some kind of comma.sh thing 19:48
Is that normal?
19:50 japhb joined
El_Che yes 19:58
intellij is like that
you can generate a app shortcut for the menu from within intellij/comma
Or maybe not anymore 20:00
let me have a look
mmm, it seems gone 20:02
it's there 20:03
Tools - Create Desktop Entry
the installer normally takes care of that, but you can always (re-) create like that
PlayPause9: ==^
20:08 patrickb left 20:13 stoned75 left 20:18 softmoth_ joined 20:19 MasterDuke joined 20:20 softmoth left 20:22 stoned75 joined
PlayPause9 I'm trying to use Comma but I don't know how to run any of the code I write. A little help? 20:24
I made a new file. I don't know how to compile it though. 20:26
kawaii PlayPause9: `raku yourscript.raku` in your terminal?
20:28 __jrjsmrtn__ left
PlayPause9 kawaii Yeah, I tried that. It tells me "no such file or directory". 20:31
You mean the terminal in Comma itself, don't you?
kawaii no, I've never used that terminal, I mean a terminal cd'ed into the same location as your script 20:32
PlayPause9 Oh right.
kawaii I would expect Comma's own terminal to be in the context of whatever file you're writing but who knows 20:33
PlayPause9 Yeah, Comma saved my file in a weird place. It's in some kind of hidden folder, ".config". I guess I could move the file somewhere more comfortable and try to compile it from there
But then why is Comma saving my files in such a strange place?
The project folder is in a nice, easy-to-spot place but the files aren't. 20:34
20:34 __jrjsmrtn__ joined
PlayPause9 No, no, no, I think what I'm saying might be appear a bit confusing. 20:34
kawaii did you make a "new project" in Comma or just open it and somehow make a file? 20:35
i.imgur.com/fgg9lXq.png
this is how mine looks
I made a new project called 'test'
and it chose a sensible location itself
PlayPause9 I made a Project called "ForTests" and I can see, in /home/myname/, a folder called "Comma Projects" and, in that folder, "ForTests". That's intuitive. Why the project files are kept within folders within the hidden .config folder is odd. 20:36
20:36 neshpion joined
PlayPause9 I believe I made a new project called "ForTests" however, I kept working with the "scratch.p6" file that was there when I first opened up Comma. 20:37
kawaii Perhaps you misclicked something, my project files get saved in the project directory themselves - not a subdirectory or anywhere else
Ah I think scratch files are something specific to Comma and not stored with your project, that is if you used the "create new scratch file" option PlayPause9 20:38
PlayPause9 Oh okay, thank you kawaii 20:41
kawaii i.imgur.com/X7mdHC4.png
PlayPause9: if you choose Raku script/module from this menu, you'll probably get something in the actual directory itself
PlayPause9 You know, when I first installed Comma, I was having some issues with Raku. I had to do "rakudo" in the Linux terminal to compile Raku code. I couldn't just "raku". Do you think it's possible my installation of Comma is weird because of this? 20:46
I'd like to uninstall and reinstall it but idk if that's necessary.
Because yeah, Comma keeps saving files in a weird place.
[Coke] I've never had that issue. I'd probably do a reinstall at this point if I were you, just in case. 20:48
PlayPause9 Yeah, alright. I'll do that in time.
Thanks everyone.
[Coke] good luck.
20:49 PlayPause9 left 20:51 Black_Ribbon joined
demostanis[m] I made a PR, reviewers advised a change, now it breaks everything 21:04
😔
MasterDuke but it doesn't break for you locally? 21:06
demostanis[m] it wasn't because 3rdparty was already configured 21:10
so I hadn't realized
21:12 wamba left
demostanis[m] was* 21:14
I can't figure out why it doesn't work for now, I'm not on my computer 21:20
It's probably a bad escape in the written Makefile.config 21:24
21:41 stoned75 left 21:56 rindolf left 22:03 dogbert17 joined 22:07 dogbert11 left 22:24 sena_kun left 22:51 sxmx left 22:58 sxmx joined 23:02 lizmat is now known as liz 23:03 liz is now known as lizmat 23:17 japhb left
codesections Interesting: if I skip past them in the first iteration of a loop, `state` variables never get initialized 23:30
m: for ^5 { next if $_ == 0; state $n = 'a'; say $n++ } 23:31
camelia 0
1
2
3
23:32 japhb joined
codesections I'm not sure if that's _wrong_, exactly, but it surprised me (and doesn't quite match the docs, which say "initialization happens exactly once, the first time the initialization is encountered in the normal flow of execution") 23:33
raydiak m: for ^5 { next if $_ == 0; state $n = "a"; say $n } 23:37
camelia (Any)
(Any)
(Any)
(Any)
raydiak I would think that's very wrong, imo 23:38
codesections Yeah, it certainly surprised me
maybe I should see if there's an issue for it/open one 23:39
raydiak m: for ^2 { next unless $_; state $n = "a"; say $n }
camelia (Any)
raydiak bisectable6: for ^2 { next unless $_; state $n = "a"; say $n } 23:40
bisectable6 raydiak, Will bisect the whole range automagically because no endpoints were provided, hang tight
raydiak, ¦6c (52 commits): «(Any)␤»
raydiak, Nothing to bisect!
raydiak I'd report it
23:46 pecastro left 23:53 japhb left 23:57 japhb joined