🦋 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:03 reportable6 left 00:04 juanfra joined, demostanis[m] joined 00:07 cnx joined 00:41 squashable6 left 00:42 squashable6 joined 00:59 Xliff left 01:04 reportable6 joined
codesections can anyone explain this little boolean riddle? 01:42
m: say ?Any; say Any && False
camelia False
(Any)
codesections er, that's not what I meant 01:43
nevermind, I took something out of context. Specifically, out of the boolean context I thought it was in 01:45
[Coke] .seen dwarring 02:02
tellable6 [Coke], I saw dwarring 2021-08-30T01:29:34Z in #raku: <dwarring> @pisa not sure
[Coke] .ask dwarring can you golf gist.github.com/coke/1941961de1897...4ffee7b61? It's the last blocker to merge new-disp branch on rakudo, and there is a LOT going on under the hood there. 02:03
tellable6 [Coke], I'll pass your message to dwarring
02:04 linkable6 left, evalable6 left 02:06 evalable6 joined 02:07 linkable6 joined 02:43 frost joined 03:43 linkable6 left, evalable6 left 03:44 linkable6 joined, evalable6 joined 04:23 cheskidov joined 04:24 cheskidov left 04:54 frost left 05:10 Eddward left 05:42 immediate joined 05:53 Xliff joined 06:02 reportable6 left 06:03 reportable6 joined 07:03 linkable6 left, evalable6 left 07:04 linkable6 joined 07:38 immediate left 07:48 immediate joined 07:51 immediate left 07:52 immediate joined 07:57 immediate left 07:58 immediate joined 08:01 Sgeo left 08:05 evalable6 joined 08:09 frost joined 08:10 frost left 08:14 dakkar joined 08:18 frost joined, very joined
very hello `combinations` function has `$of` parameter but `permutations` doesn't. How can I find (n, k) permutations? I couldn't install Math::Libsgl::Permutation on windows 08:20
dakkar very: I'm pretty sure that you're looking for something different that `permutations` 08:21
"permutations" are (more or less) the different ways of ordering elements in a list
m:(1..3).permutations.say 08:22
very dakkar: Python has itertools.permutations I'm looking for the same thing
evalable6 ((1 2 3) (1 3 2) (2 1 3) (2 3 1) (3 1 2) (3 2 1))
very docs.python.org/3/library/itertool...rmutations
it has an `r` parameter 08:23
dakkar uh… that's a strange name for a thing that is *not* generating permutations
moon-child ^
cnx iirc in the nPr notation P stands for permutation
moon-child looks like it's effectively x.cominations($of)).map(&permutations) 08:24
cnx: or 'pick' (where nCr is 'choose') 08:25
cnx well i could be wrong
very moon-child thanks for it, then I go for `@a.combinations($of).map(*.permutations.Slip).sort` 08:28
dakkar aah, I was trying to figure out that `.Slip`
very which seems more inefficient than a built-in `permuations($of)` but I guess there are reasons for not including it 08:29
dakkar very: it would perform exactly the same operations… built-ins are not always magical ☺ 08:31
very but faster, I meant 08:32
dakkar not necessarily
very okay then
but there is sort at the end?
direct implementation wouldn't have that I believe 08:33
lizmat if a builtin is not the fastest, it needs to be fixed :-)
08:36 dakkar left
moon-child recently on a trivial benchmark (file reading) raku was 10x faster than common lisp. Was because the cl implementation was doing something stupid, but still nice to see! 08:36
then again, dispatch in raku is still 100x slower than cl. ¯\_(ツ)_/¯
08:37 dakkar joined 08:48 very left 08:49 frost63 joined 08:52 frost left, frost63 left 09:03 Manifest0 left 09:05 Manifest0 joined 09:06 jmcgnh left 09:18 jmcgnh joined 09:19 immediate left
moritz does CL do multi dispatch? 09:29
moon-child yes
thought not with arbitrary predicates 09:30
09:34 immediate joined 09:36 spacekookie left 09:38 spacekookie joined
Nemokosch CL is kinda famous for multi dispatch, isn't it 09:48
lizmat clickbaits rakudoweekly.blog/2021/09/27/2021-...ming-haku/ 09:50
10:28 frost joined 10:49 jjido joined 10:55 jjido left 11:13 squashable6 left 11:16 squashable6 joined 11:32 jjido joined 11:38 immediate left 11:39 immediate joined 12:02 reportable6 left 12:05 reportable6 joined 12:12 jjido left 12:45 frost left 13:01 Eddward joined 13:03 immediate left 13:09 t3nj1n joined 13:31 clarkema left 13:42 whaaat joined
whaaat is anyone here who can help me get started? 13:43
[Coke] do you have a copy of raku yet? 13:44
13:45 clarkema joined
clarkema #freebsd 13:45
sorry, mis-typed command
13:54 bdju left 13:55 bdju joined
whaaat no 14:00
cnx what OS are you on
whaaat windows 10 14:01
[Coke] You can build your own if adventurous, or there's an installer availale at rakudo.org/downloads 14:03
*available
whaaat ok 14:04
14:19 whaaat left 14:50 jmcgnh left 14:52 Sgeo joined
Anton Antonov "do you have a copy of raku yet?" -- Great "first time user" question !!! 14:54
14:54 jmcgnh joined
[Coke] ... is it too early for Halloween yard decorations? asking for a friend. 14:56
jdv my wife says no
perryprog yes 14:57
literally not even October smh
jdv october starts this week so i'd side with her
Nemokosch one months still seems a lot though 14:58
one month still seems a lot though
El_Che it's always too early for Halloween decorations 15:00
jdv looks like new-disp is about 5% slower on startup and 30% slower on core setting parse for me 15:07
uh, that's backwards
i meant 5% on parse and 30% on startup 15:08
Nemokosch what's new-disp? 15:10
[Coke] new branch of rakudo/nqp/MoarVM that changes the dispatch model 15:12
jdv this is the way
[Coke] Should be transparent to users and (by next release) should be faster (and have more options for optimization) 15:13
jdv iirc its been mentioned many times in the weekly 15:14
Nemokosch what ever "the weekly" is 😅 I can vaguely recall something from the conference though 15:17
[Coke] most new development has been on that branch, hope to merge it back to primary branch shortly.
15:18 immediate joined
[Coke] rakudoweekly.blog/ 15:18
a weekly "newsletter"
Nemokosch oh interesting 15:19
Geth doc/heredoc-output: 30b7bd6d43 | (Daniel Sockwell)++ (committed using GitHub Web editor) | doc/Language/quoting.pod6
Add output to "multiple heredoc" example

The docs previously stated that you can start multiple heredocs on a single line, but didn't neither said what effect that had nor showed the output in the accompanying example.
This commit adds both an explanation and example output.
16:30
doc: codesections++ created pull request #3968:
Add output to "multiple heredoc" example
16:31
16:37 dakkar left 16:39 abraxxa left
Geth doc/unordered-enums: 9eb11c966a | (Daniel Sockwell)++ (committed using GitHub Web editor) | doc/Language/typesystem.pod6
Clarify that enum iteration is unordered

Because enums are Maps, they do not iterate in any defined order. But the docs didn't mention this, and provided an example that suggested ordered iteration. This commit adds a note to that effect and updates the example
17:26
doc: codesections++ created pull request #3969:
Clarify that enum iteration is unordered
17:39 linkable6 left, evalable6 left 17:41 evalable6 joined 17:43 xinming left 17:44 xinming joined 17:45 patrickb joined 18:03 reportable6 left 18:04 MoC joined 18:12 dwarring joined
dwarring building HTML::Canvas on new-disp branch 18:14
tellable6 2021-09-28T02:03:57Z #raku <[Coke]> dwarring can you golf gist.github.com/coke/1941961de1897...4ffee7b61? It's the last blocker to merge new-disp branch on rakudo, and there is a LOT going on under the hood there.
[Coke] dwarring: it's fixed!
jnthn found a missing guard.
dwarring awesome
yes there is a lot going on there 18:15
I'll yest it in a while to verify
dwarring test 18:17
18:42 t3nj1n left 18:43 t3nj1n joined, t3nj1n_ joined, t3nj1n_ left
dwarring HTML::Canvas tests now passing on new-disp 18:48
lizmat whee! 19:04
19:04 reportable6 joined 19:11 dogbert17 left
sjn Hey guys, what's considered the best way to install rakudo these days? I have my own Makefile that checks out stuff from git and builds it. Is rakudobrew still ok? 19:15
19:15 dogbert17 joined
sjn I see there is something called rakubrew.org 19:16
lizmat sjn: I understand that's the recommended one nowadays
sjn ah, cool 19:17
ugexe rakudobrew became rakubrew 19:22
19:35 MoC left 19:42 linkable6 joined
Geth doc: 30b7bd6d43 | (Daniel Sockwell)++ (committed using GitHub Web editor) | doc/Language/quoting.pod6
Add output to "multiple heredoc" example

The docs previously stated that you can start multiple heredocs on a single line, but didn't neither said what effect that had nor showed the output in the accompanying example.
This commit adds both an explanation and example output.
19:59
linkable6 Link: docs.raku.org/language/quoting
doc: 2b58999697 | (Tom Browder)++ (committed using GitHub Web editor) | doc/Language/quoting.pod6
Merge pull request #3968 from Raku/heredoc-output

Add output to "multiple heredoc" example
20:06 patrickb left 20:07 patrickb joined 20:11 jjido joined 20:19 immediate left 20:34 patrickb left
Geth doc/unordered-enums: cf3b74226a | (Daniel Sockwell)++ (committed using GitHub Web editor) | doc/Language/typesystem.pod6
Correct statement re: cause of unordered iteration

My previous commit stated that `enum`s provide unordered iteration because they _are_ `Map`s. That is incorrect. `enum`s provide unordered iteration because the relevant iteration methods _create_ a corresponding `Map` to iterate over.
This commit corrects that misstatement.
21:00
21:34 linkable6 left, evalable6 left 21:35 linkable6 joined 22:35 linkable6 left, evalable6 joined 22:37 jess joined
ugexe codesections: i think one way to know if a react block is setup is to set a flag at the end of the react block 22:44
not exactly elegant 22:45
start { react { whenever $supplier { say $_ }; $ready = True }; }
await start { while not $ready { } };
23:00 clarkema left 23:04 xinming left 23:06 xinming joined
jjido ugexe I have no issue with that pattern. Looks fine 23:06
23:35 linkable6 joined 23:56 pierrot left 23:57 pierrot joined 23:58 grondilu left 23:59 grondilu joined