🦋 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:02 reportable6 left 00:05 reportable6 joined 00:06 colemanx left 00:07 colemanx joined 00:35 sm2 joined 00:48 patrickb left, patrickz joined 01:27 sm2 left 01:28 sftp left 01:30 dextercd left 01:44 patrickz left, sftp_ joined 01:48 sm2 joined 01:49 sftp_ left 01:53 sftp_ joined, sftp_ is now known as sftp 01:58 sftp left 02:04 sftp joined 03:04 bisectable6 left, releasable6 left, greppable6 left, benchable6 left, unicodable6 left, sourceable6 left, evalable6 left, committable6 left, linkable6 left, coverable6 left, reportable6 left, quotable6 left, nativecallable6 left, notable6 left, squashable6 left, tellable6 left, bloatable6 left, statisfiable6 left, shareable6 left 03:05 quotable6 joined, sm2 left, bloatable6 joined, unicodable6 joined 03:06 shareable6 joined, squashable6 joined 03:07 reportable6 joined, committable6 joined, statisfiable6 joined 04:06 sourceable6 joined, coverable6 joined 04:07 tellable6 joined, linkable6 joined, evalable6 joined, bisectable6 joined, greppable6 joined, notable6 joined 04:10 Flwyd joined 04:54 MoC_ joined, MoC left 04:57 frost joined 05:05 releasable6 joined 05:06 benchable6 joined 06:02 reportable6 left 06:03 squashable6 left 06:04 MoC_ is now known as MoC 06:05 reportable6 joined 06:06 nativecallable6 joined 06:50 mjgardner left 06:53 mjgardner joined 07:23 seednode left 07:24 seednode joined 07:26 Summer left, Summer joined 08:01 squashable6 joined 08:35 seednode left, seednode joined 09:27 frost left 09:36 kylese joined 09:42 Sgeo left 10:09 MoC left, MoC_ joined 10:10 MoC_ left 11:00 sftp left 11:01 sftp joined 11:02 gcd joined 11:20 gcd left 12:02 reportable6 left 12:41 gcd joined
Geth doc: 7b1ca20aca | (Peter du Marchie van Voorthuysen)++ | doc/Type/independent-routines.pod6
Talk about collections rather than containers

In Raku parlance, a container generally refers to a scalar container. Arrays and hashes are mutable _collections_ that store values in scalar containers. To avoid confusion it's better to refer to these composite types as collections.
linkable6 Link: docs.raku.org/type/independent-routines
doc: 81af5673db | (Peter du Marchie van Voorthuysen)++ | doc/Type/independent-routines.pod6
Stick to actual Rakudo signatures

In these cases it's probably not so bad to have less meaningful parameter names because these subroutines just implement indirection.
doc: cbc86d58d0 | (Peter du Marchie van Voorthuysen)++ (committed using GitHub Web editor) | doc/Type/independent-routines.pod6
Merge pull request #3980 from dumarchie/master

Talk about collections rather than containers
13:02 patrickb joined 13:05 reportable6 joined 13:16 solitario left 13:31 solitario joined 13:35 sm2 joined 13:39 A26F64 joined
sm2 #raku-beginner 13:44
14:32 sm2 left 14:44 kylese left 14:56 sm2 joined 15:03 sm2 left 15:24 sm2 joined
patrickb my @foo; for <a b c> -> $a { @foo.push: -> { say $a } }; &@foo[0](); &@foo[1](); 15:27
evalable6 a
patrickb Wow. How did evalable know what I wanted to do?
Is it possible to put that $a into the block signature as a literal? 15:28
Somehow like this: my @foo; for <a b c> -> $a { @foo.push: -> {[$a]} { say $a } }; &@foo[0]("a"); 15:30
Or do I step into macro territory with that? 15:31
16:03 eseyman left 16:09 monkey_ joined 16:19 gcd left 16:27 sftp left, dextercd joined 16:29 eseyman joined 16:43 sm2 left 16:45 monkey_ left 16:47 monkey_ joined 16:54 monkey_ left 16:56 monkey_ joined
tbrowder speaking of macs, i just fired up an old mac mini my son gave me, and it is now a virgin installation ready for a raku install, with git, emacs, etc. 17:00
can anyone recommend a good book on mac os for linux users? 17:01
El_Che I don't think a book is needed 17:03
you'll spend most of the time making the environment tolerable for developing :)
install homebrew so you can get rakudo and lots of utils 17:04
this may interest you: podman.io/blogs/2021/09/06/podman-on-macs.html 17:05
with podman you can run docker containers
On more complex projects I have a script to launch containers with e.g. mysql and keycloak 17:06
so I can run more complicated tests
(I hide those with a env AUTHOR_TESTING)
I develop like that on linux, and this week I was sitting on macos and could not run those extended tests
so now I have workaround :) 17:07
17:12 sm2 joined
El_Che so, there you go, my verbosity looks like the beginning of a book :) 17:14
17:23 jess left
tbrowder t’anks! El_Che 17:31
ugexe i just use rakubrew on linux, mac, and windows 17:59
even if I only ever used one installation i would still do it this way
18:02 reportable6 left 18:09 sftp joined
perryprog And depending on how strict you like the unix philosophy, you may find macports preferable, but homebrew is generally more popular (homebrew is what I use) 18:19
But besides that the linux-macos transition is usually pretty easy 18:20
El_Che tbrowder: I have a common .profile and .bashrc for my linux and mac machines 18:21
tbrowder: I do a if [ $HOME == "/home/$USER" ]; then ... else ... fi for macos specific things 18:23
I used to put specific macos ssh-add config there, but knowadays I let keepassxc connect to ssh-agent on desktop linux and macos 18:25
18:37 AntonOks joined
CIAvash patrickb: I don't know what you are trying to do exactly, but do you mean something like this: `my @foo; for <a b c> -> $a { @foo.push: -> $ where * eqv $a { say $a } }; @foo[0]('a')` or do you need it to be compile-time? 18:40
patrickb CIAvash: Yes, that's what I was aiming for. 18:43
See cro.services/docs/reference/cro-ht..._resources I have static stuff in <css img js> and was trying to not having to copy the block three times. 18:45
tbrowder El_Che: i use bash on linux, is that avail? 18:47
looks like you use a diff user name on the 2 hosts… 18:48
or 18:49
lizmat tbrowder: you can also just install Debian on a MacMini :-) 18:53
18:54 sm2 left
tbrowder i know, but i want the mac os so i can see problems my classmates have with my website. they say they can’t see it because of TLS cert probs. 18:55
lizmat I see... ok :-)
tbrowder if you get a chance could you please see if you on a mac can browse to <usafa-1965.org> successfully? 18:57
my mac guys are not comp savvy enough to give me great clues on their problems. 18:58
the site uses tls for login to a private area but most of the site is accessible to all on windows and linux. just mac ppl report NO access anywhere. 19:02
*tls private site cert with individual user keys 19:04
also with the mac i hope to add a novice mac user for raku to the rakoon club 19:06
19:06 whatnext joined
lizmat tbrowder++ 19:07
tbrowder or should that really be “rakuun”?
19:08 AntonOks left
El_Che tbrowder: bash is available, but zsh is now the default 19:09
I keep using bash though 19:10
and different users is no problm, use the $USER bariable
CIAvash patrickb: I think there may be different ways to tackle it, maybe: `sub f ($resource, *@path) { dd $resource, @path }; my @resources = <css img js>.map: { &f.assuming: $_ }; @resources[0]('a')`
El_Che I also have different users, the mac is managed by it
whatnext hi all :) today I have a maths question. Probably I am doing sthg goofy, however, I have some code like this: `$m = $a / $b; say "$a $b $m";` with results like `14 16 0.0625`. Obviously `14/16` is not `0.0625` so I wonder what is going on? Something to do with types? dividing with the wrong char? Anyone shed any light? :) 19:11
tellable6 2021-11-11T01:04:03Z #raku <SmokeMachine> whatnext Would you mind to test it? I think it will make your code work (I still have a lot to review and probably fix, but probably that problem Is fixed): github.com/FCO/Red/pull/526
[Coke] m: my $a=14; my $b=16; my $m = $a / $b; say "$a $b $m" 19:16
camelia 14 16 0.875
[Coke] ^^ Either your golf missed a step or you have a very broken raku
whatnext lol.. it's pretty weird I have to say - certainly wasn't expecting it 19:17
19:25 sm2 joined
[Coke] what do you get if you literally run the code in my example? 19:30
19:39 sm2 left 19:40 Sgeo joined
japhb .0625 is 1/16 ... so I'm guessing a missing '4' somewhere. 19:44
CIAvash patrickb: so if I understood you correctly, the easiest way would be `get -> $resource where <css img js>.any, *@path { resource $resource, @path }` 19:51
patrickb CIAvash: Right. I didn't think of that, kinda obvious. Thanks! 19:52
El_Che did soneone take over the role of release manager? 20:23
for the 2021.11 release?
20:24 Oshawott joined
lizmat not yet 20:24
I seem to recall ggoebel expressed interest
El_Che: are you volunteering ?
El_Che I wisg 20:25
sadly, no 20:26
20:27 archenoth left 21:04 reportable6 joined
bartolin tbrowder: regarding the potential TLS problem with your site: This smells like a problem with an expired Root Certificate that is still referenced by your Let's Encrypt certificate. This is a somewhat complex, but IMHO this blog post explains it quite good: scotthelme.co.uk/lets-encrypt-old-...xpiration/ 21:04
tbrowder: As far as I understand that particular problem will affect mostly (some) old clients. But maybe that's the case here. You can see the problem with the following command: 'echo QUIT | openssl s_client -connect usafa-1965.org:443 -showcerts'. The last certificate in the chain refers to the expired DST Root CA X3. (quite OT, but since I read about this topic in September I thought I could mention it ...) 21:13
tbrowder bartolin: thnx, i remember that thread from earlier but decided i couldn’t do much about it at the moment. 21:14
i did a tldr on the link, but i don’t think there is anything i can do for my friends if they have probs. 21:16
but, duh, i haven’t yet tried access from my own mini (i mutter as i slap forehead)!….. 21:18
bartolin probably not. Let's Encrpyt offers an alternative chain, but old clients will probably have problems with that as well (if the expired cert is the culprint). Upgrading the clients is the real solution. 21:19
21:22 monkey_ left 21:32 whatnext left
japhb bartolin: If only device vendors supported updates to older devices .... :-( 21:40
perryprog pretty sure macOS has a basic workaround for manually trusting a newer CA 21:41
21:44 greaser|q is now known as GreaseMonkey
perryprog I /think/ (take this with a large grain of salt) you should just be able to download the cross-signed .pem for ISRG Root X1 on letsencrypt.org/certificates/ and drag-and-drop that into Keychain Acess 21:47
see also 21:49
see also* community.letsencrypt.org/t/this-c...ty/13878/2
21:53 A26F64 left
El_Che the only real solution for old clients that don't receive updates, like old phones. is root them and install a supported os 21:56
patrickb How can I coerce a Str to an enum of the same name? 21:57
timo m: say Bool::{"True"} 21:58
camelia True
patrickb timo: Thanks 22:02
tbrowder perryprog: thnx, i can probably help the guys with that after i check out on my mac. BUT i powered up my mac when i left here at 1518 and it’s now 1602 and the progress bar under the apple looks complete but no further action! 22:07
the display, ms, and kb are on a kvm switch and it all powered up intially on it just fine…bummer 22:08
perryprog tbrowder is that an update progress bar or just the "I'm rebooting" progress bar? 22:11
if it's an update one, it can take quite some time. Otherwise I'd give it another hour before hard restarting it.
El_Che my it-managed mac has an 18h record on an update (on a fast line) 22:13
(I upgrade my work ubuntu way faster than that :) ) 22:14
tbrowder: in case you need to reinstall it, mac have a nice bootmode where you can reinstall it from the internet 22:15
tbrowder ok, thx. so do you usually lv it powered on? i don’t normally power down except when leaving for for days away from home. 22:17
perryprog Yeah I usually leave a mini powered on 22:18
El_Che during the update, yes. Normally: no. It's laptop that I don't use often
tbrowder and this is a brand new xperience fr me
El_Che it's fun 22:25
22:27 sm2 joined 22:52 sm2 left 23:09 sm2 joined 23:18 sm2 left 23:46 corwin left 23:47 corwin joined