🦋 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.
rypervenche I haven't been following the weeklies, so this may have already been mentioned there, but I noticed Raku in a video: www.youtube.com/watch?v=UVUjnzpQKUo 02:56
[Coke] rypervenche++ 04:35
Nemokosch This video is a shame tbh 09:22
Skarsnik it's not really interesting if you just show a problem solve by just a function call and his opinion is super subjective 09:26
Nemokosch Encounpled with claims like "GCD should have a built-in function" 09:28
How many of us have ever used GCD in a program?
moon-child m: say 12 gcd 18 09:31
camelia 6
moon-child what's the problem?
Skarsnik I mean gcd should be in the math lib I guess, but I don't think I will use it one day x)
moon-child why should it be in a math library if it's built-in?
Nemokosch in general 09:33
not about Raku
moon-child oh, I see. Don't most languages have such a function?
Nemokosch languages with stronger emphasis on math usually do 09:34
but I think many mainstream languages actually don't
moon-child weird
Nemokosch but like... not that it actually matters xD 09:35
there will be a lib for it even if it's not built-in
Skarsnik Is there some use of gcd outside doing math stuff? like for some algo? 09:36
moon-child what is 'math stuff'? Is indexing an array math stuff?
Nemokosch good question... probably less than for sine and cosine which _are_ usually built-in
I can only say I haven't come across GCD in real-world problems ever 09:37
for example, I had to implement an ad-hoc topological sort once 😄 09:38
[Coke] I am happy they included Raku more than I am about the overall topic of the video, sure. 16:49
timo that video also has more than enough disclaimers in it :) 16:53
[Coke] It did make me want to be able to use @nums.minmax -> gcd somehow. 17:09
oh, right. 17:10
m: my @nums = < 5 10 100 235 > ; &infix:gcd(|@nums.minmax).say
camelia 5===SORRY!5=== Error while compiling <tmp>
Undeclared routine:
infix:gcd<> used at line 1. Did you mean 'infix:<≤>', 'infix:<×>', 'infix:<and>', 'infix:<∍>', 'infix:<...>'?
17:11
[Coke] m: my @nums = < 5 10 100 235 > ; &infix::gcd(|@nums.minmax).say
camelia (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 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 …
[Coke] ... or not. :) 17:12
m: my @nums = < 5 10 100 235 > ; [gcd] @nums.minmax.bounds 17:17
camelia Potential difficulties:
Useless use of [gcd] in sink context
at <tmp>:1
------> 3my @nums = < 5 10 100 235 > ; 7⏏5[gcd] @nums.minmax.bounds
[Coke] m: my @nums = < 5 10 100 235 > ; dd [gcd] @nums.minmax.bounds
camelia 5
[Coke] there we go
(minmax is a range, not a 2 element list!)) 17:19
Reading the docs explain the docs. :|
tib Hello all, the ephemeral miniconf is coming in less than one week now. The Raku side of it has shrinked despite my will but still it could be interesting for you all. It is Thursday 18th November (next Thursday then) and it starts at 3pm Paris time then UTC +1 currently (means morning in us and very late in Asia/Australia). To give an idea it starts at same time TPRCIC was. 19:45
dev.to/thibaultduponchelle/the-eph...infos-1dmb 19:46
Meeting ID: 818 6906 5466
Pass: 42
There are multiple experienced speakers talking about devops/github/ldap/etc… 19:47
Single day, single track, Perl, Raku and fun 19:49
tbrowder .seen jmerelo 20:14
tellable6 tbrowder, I saw jmerelo 2021-05-19T16:34:05Z in #raku: <jmerelo> Or fight who gets to be Classic Coke
tbrowder anyone know how often docs site gets updated? i had come stuff merged some weeks ago and i don't see it online 20:16
tbrowder in packages, real-world example of selective module importing 20:17
moritz_ tbrowder: I think jjmerelo occasionally updates it manually
tbrowder i see the code in doc master and i really could use it now :-( 20:18
oh, well, thnx moritz, i really wish we could automate it again. sad to say, but i don't think Documetable was completed sufficiently to be used for the docs. 20:20
*Documentable 20:21
moritz_ before this project was started, I did warn that it would make it harder to actually build the docs. That was a risk the decision makers accepted. 20:41
[Coke] with recent rakudo I had to hit ^C twice to exit, then I had to run 'stty sane' to get my terminal back 21:27
codesections S///, and /re/ and Str.trans all (can) operate on a regex. Does tr/// only take literal strings? (I'd always thought it took a regex and then was confused when changing something from $_ .= trans to tr/// changed the output 21:31
japhb perks his ears up at [Coke]'s issue 22:07
Which line editor were you using?
And on which OS?
[Coke] mac 22:25
how do I tell which line editor?
It's probably readline, that's what I'd install if they prompted me to pick one
japhb [Coke]: OK, and you're using the standard Terminal app? 23:34
Hmmm, come to think of it I don't thing that gets debug output at all. You can check which ones you have installed by doing a `zef info` on Linenoise, Readline, and Terminal::LineEditor.