🦋 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.
00:54 sena_kun left 01:09 sena_kun joined 01:35 sena_kun left, wildtrees left 03:12 gabiruh_ joined 03:14 gabiruh left, llfourn left 03:43 llfourn joined 03:48 xinming_ left, xinming_ joined 03:50 llfourn left
cpan-raku New module released to CPAN! FindBin (0.5.0) by 03LEMBARK 03:56
04:00 llfourn joined
[Coke] Xliff: my current understanding is that we're not going to downgrade our version. 04:28
onward and upward
04:33 lucasb left, cpan-raku left 04:35 cpan-raku joined, cpan-raku left, cpan-raku joined 05:35 quotable6 left, squashable6 left, coverable6 left, bisectable6 left, sourceable6 left, shareable6 left, reportable6 left, statisfiable6 left, committable6 left, unicodable6 left, releasable6 left, notable6 left, bloatable6 left, greppable6 left, nativecallable6 left, benchable6 left, releasable6 joined, greppable6 joined 05:36 sourceable6 joined, squashable6 joined, committable6 joined, reportable6 joined 05:37 quotable6 joined, statisfiable6 joined, shareable6 joined, benchable6 joined, coverable6 joined, nativecallable6 joined, bloatable6 joined 05:38 unicodable6 joined, notable6 joined, bisectable6 joined 06:11 jmerelo joined 06:14 llfourn left 06:29 wamba joined 06:41 moritz_ is now known as moritz 06:43 kensanata joined 06:46 llfourn joined 07:03 llfourn left
Geth doc/master: 4 commits pushed by (JJ Merelo)++ 07:16
07:36 rindolf joined 07:37 jmerelo left 07:46 wamba left 08:00 llfourn joined
AlexDaniel weekly: alexschroeder.ch/wiki/2019-12-19_O...memory_use 08:09
notable6 AlexDaniel, Noted! (weekly)
08:10 xinming_ left 08:12 xinming_ joined 08:14 gabiruh_ left, gabiruh joined 08:19 llfourn left 08:23 rindolf left, benjif left 08:24 benjif joined 08:33 rindolf joined 08:37 MasterDuke joined 08:49 xinming_ left, xinming_ joined 08:55 deadmarshal joined 08:56 deadmarshal left 09:03 chloekek joined 09:14 sena_kun joined 09:22 wamba joined 09:29 sena_kun left 09:31 cpan-raku left 09:35 cpan-raku joined, cpan-raku left, cpan-raku joined 09:57 ufobat_ is now known as ufobat 09:58 pilne left 10:06 wamba left 10:10 MasterDuke left 10:15 llfourn joined 10:20 llfourn left 10:43 wamba joined 10:57 Guest38485 joined 11:07 kensanata left 11:15 llfourn joined 11:36 jmerelo joined 11:55 kensanata joined 12:01 lgtaube left 12:03 wamba left 12:07 abraxxa left 12:08 abraxxa joined
chloekek p6: my @e := <.tar.gz .tgz .zip>; my @l := <foo foo/bar.tar.gz foo/bar.zip>; say @l.grep(*.ends-with(any(@e))); 12:24
camelia (foo/bar.tar.gz foo/bar.zip)
chloekek p6: my @e := <.tar.gz .tgz .zip>; say @e.map: { “/id/*/*/*/Perl6/*$_” }; 12:31
camelia (/id/*/*/*/Perl6/*.tar.gz /id/*/*/*/Perl6/*.tgz /id/*/*/*/Perl6/*.zip)
chloekek p6: my @e := <.tar.gz .tgz .zip>; say @e».{ “/id/*/*/*/Perl6/*$_” }; 12:32
camelia Use of uninitialized value element of type Any in string context.
Methods .^name, .perl, .gist, or .say can be used to stringify it to something meaningful.
in block <unit> at <tmp> line 1
Type Str does not support associative indexing.
chloekek p6: my @e := <.tar.gz .tgz .zip>; say @e»{ “/id/*/*/*/Perl6/*$_” };
camelia Use of uninitialized value element of type Any in string context.
Methods .^name, .perl, .gist, or .say can be used to stringify it to something meaningful.
in block <unit> at <tmp> line 1
Type Str does not support associative indexing.
chloekek Hmm, seems you can’t use » with a block.
12:40 jmerelo left
lizmat chloekek: why are you := the @e, and not = ? 12:41
also, using >>. with say is bad, as the order in which >>. will execute, is not defined
tobs p6: my @e := <.tar.gz .tgz .zip>; say @e».&{ “/id/*/*/*/Perl6/*$_” }; 12:47
camelia (/id/*/*/*/Perl6/*.tar.gz /id/*/*/*/Perl6/*.tgz /id/*/*/*/Perl6/*.zip)
12:48 llfourn left
tobs lizmat: but `say @e»...` is fine, because the .hyper-computed list is printed after it has been assembled, right? It is `@e».say` which prints in undefined order. 12:48
lizmat ah, duh
yes, tobs++
(glad someone is paying attention :-) 12:49
12:54 lucasb joined
chloekek lizmat: using := because I have no reason for it to be an Array 13:06
I’m not going to mutate the elements.
tobs: ah there’s to be an &, I see 13:07
13:08 abraxxa left
lizmat chloekek: ok, fair enough... but sometimes you need to be careful with that 13:08
13:08 abraxxa joined
lizmat especially if something is a Seq 13:08
chloekek In fact I plan on making this one a global with our so I really want it to be immutable. 13:09
lizmat m: my @a := 1...10; dd $_ for @a
camelia Type check failed in binding; expected Positional but got Seq ($((1, 2, 3, 4, 5, 6, ...)
in block <unit> at <tmp> line 1
chloekek Yeah I ran into that some times.
lizmat ok :-)
chloekek: why not make it a constant then ?
chloekek p6: constant @foo = 1, 2, 3; @foo[0] = 5; 13:10
camelia Cannot modify an immutable List ((1 2 3))
in block <unit> at <tmp> line 1
lizmat m: constant @a = <a b c>; dd @a
camelia ("a", "b", "c")
chloekek p6: constant @foo = 1, 2, 3; say @foo.WHAT
camelia (List)
chloekek p6: our @foo = 1, 2, 3; say @foo.WHAT
camelia (Array)
lizmat m: our constant @a = <a b c>; dd @a
camelia ("a", "b", "c")
lizmat you can make it an our as well 13:11
chloekek p6: constant %x = set(1, 2, 3); say %x.WHAT
camelia (Set)
chloekek It appears constant keeps the type of the RHS.
lizmat yes, it should :-)
chloekek Thanks, I’ll use constant.
Is constant := the same as constant?
p6: constant @xs := 1, 2, 3;
camelia ( no output )
lizmat it is afaik, but I don't like it 13:12
chloekek Fancy.
jnthn = in an initialization is generally subject to semantics that differ from ordinary use of `=` in some way; in the case of a constant, yes, it binds.
Kaiepi when using the `is pure` trait with multiple dispatch, would you use it with the proto routine, the multis, or both? 13:13
tellable6 2019-12-19T06:35:20Z #whateverable <jmerelo> Kaiepi thanks!
jnthn Should probably go on the proto if the optimizer is to pay attention to it
Kaiepi that's what i thought, but i wasn't sure
chloekek p6: our constant @archive-extensions = <.tar.gz .tgz .zip>; my @rsync-includes := ‘*/’, |@archive-extensions.map({ “/id/*/*/*/Perl6/*$_” }); say @rsync-includes.map({ “--include=$_” }); 13:14
camelia (--include=*/ --include=/id/*/*/*/Perl6/*.tar.gz --include=/id/*/*/*/Perl6/*.tgz --include=/id/*/*/*/Perl6/*.zip)
13:15 llfourn joined
chloekek lizmat++ 13:16
13:22 llfourn left 13:24 jmerelo joined
cpan-raku New module released to CPAN! Crypt::SodiumScrypt (0.0.1) by 03JSTOWE 13:46
lizmat hmmm... salty goodness :-) 13:50
chloekek just ate Pom-Bär 13:53
Hypernatremia incoming.
13:57 tyil left 14:01 cpan-raku left
Geth advent: Kaiepi++ created pull request #45:
Add draft for the article on the 24th
advent: a33a34f093 | (Ben Davies)++ (committed using GitHub Web editor) | raku-advent-2019/drafts
Add draft for the article on the 24th
advent: 6c0d5136bd | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | raku-advent-2019/drafts
Merge pull request #45 from Kaiepi/patch-5

Add draft for the article on the 24th
14:13 sena_kun joined 14:14 mid_home joined, sena_kun left 14:16 MasterDuke joined 14:20 sena_kun joined 14:25 jmerelo left 14:29 discord6 joined 14:36 kensanata left 14:41 kensanata joined 14:45 tyilanmenyn joined 14:46 cpan-raku joined, cpan-raku left, cpan-raku joined 14:47 lizmat left 14:49 discord6 left 14:50 tyilanmenyn left 14:51 discord6 joined 14:56 sena_kun left 14:57 tyilanmenyn joined 14:58 discord6 left 14:59 discord6 joined 15:00 discord6 left 15:01 discord6 joined, discord6 left, discord6 joined 15:04 discord6 left 15:05 discord6 joined 15:08 discord6 left 15:10 tyilanmenyn left 15:11 sena_kun joined 15:12 discord6 joined 15:15 tyilanmenyn joined 15:16 discord6 left, tyilanmenyn left, cpan-raku left, Geth left 15:18 llfourn joined 15:22 llfourn left, benjif_ joined, llfourn joined 15:25 benjif left 15:26 vividsnow1 joined, llfourn left 15:28 vividsnow left, vividsnow1 is now known as vividsnow 15:36 vividsnow left, vividsnow joined 15:46 vividsnow left, vividsnow joined 16:19 kensanata left 16:29 chloekek left 16:30 Guest38485 left 16:35 jmerelo joined 16:39 discord6 joined, discord6 left, discord6 joined 16:42 tyilanmenyn joined 16:49 guifa2 joined 16:50 guifa2 left 16:54 tyilanmenyn is now known as tyil 16:55 cpan-raku joined, cpan-raku left, cpan-raku joined, sena_kun left 16:57 tyil left 17:03 tyilanmenyn joined 17:08 discord6 left 17:10 cpan-raku left, sena_kun joined 17:12 tyilanmenyn left 17:13 cpan-raku joined, cpan-raku left, cpan-raku joined 17:17 cpan-raku left 17:23 llfourn joined 17:28 llfourn left 17:31 vividsnow left 17:34 lizmat joined 17:42 vividsnow joined
jmerelo Did you already learn functional programming with scimon in today's advent calendar entry? rakuadventcalendar.wordpress.com/2...with-raku/ 17:42
Today the third country sending more visitors is Vietnam 17:43
17:45 wamba joined 17:47 vividsnow left, vividsnow joined 18:00 jmerelo left 18:01 lizmat left 18:12 lizmat joined 18:20 chloekek joined 18:26 Kaiepi left, Kaiepi joined 18:27 Kaiepi left 18:28 Kaiepi joined
sena_kun releasable6: status 18:37
releasable6 sena_kun, Next release in ≈2 days and ≈0 hours. There are no known blockers. 0 out of 277 commits logged
sena_kun, Details: gist.github.com/db8f80b0cc998202a1...a6a14e3088
18:56 sena_kun left 19:11 sena_kun joined 19:24 llfourn joined
chloekek p6: "hello {*}".perl.say 19:28
camelia "hello *"
19:29 llfourn left
chloekek p6: ('hello ' ~ *).perl.say 19:29
camelia ( no output )
19:31 Geth joined, discord6 joined 19:35 tyilanmenyn joined 19:41 lizmat left 19:44 sergot left, freezing left, sergot joined 19:45 maggotbrain left, freezing joined 19:47 maggotbrain joined 19:50 cpan-raku joined, cpan-raku left, cpan-raku joined 19:59 ufobat_ joined 20:00 maggotbrain left 20:01 maggotbrain joined 20:02 tyilanmenyn is now known as tyil 20:03 ufobat left 20:05 bisectable6 left, nativecallable6 left, committable6 left, releasable6 left, chsanch left, kubrat left, rba left, chsanch joined, rba joined, kubrat joined 20:10 releasable6 joined, bisectable6 joined, nativecallable6 joined, committable6 joined, mid_home left 20:30 lgtaube joined 20:47 vrurg_ joined 20:50 vrurg left 20:56 sena_kun left 20:59 chloekek left 21:03 pilne joined
Demos[m] what's the status of COMPOSE 21:06
21:08 finanalyst joined 21:11 sena_kun joined 21:26 stoned75 joined 21:28 wildtrees joined 21:32 chloekek joined 22:04 vividsnow left, vividsnow joined, vividsnow left 22:14 chloekek left 22:30 vividsnow joined
SmokeMachine m: role R { COMPOSE { say "compose" } }; class C does R {} 22:33
camelia ( no output )
SmokeMachine m: role R { COMPOSE { say "compose" } }; class C does R {}; C.new
camelia ( no output )
22:54 Kaiepi left 22:55 sena_kun left 22:56 Kaiepi joined, Kaiepi left, Kaeipi joined 23:01 rindolf left, Kaeipi left 23:02 Kaeipi joined 23:07 lizmat joined 23:09 sena_kun joined 23:44 lucasb left
jnthn SmokeMachine: fwiw, there is no COMPOSE phaser implemented; it was once speculated, somehow made it into the grammar to be parsed, but never got any semantics. 23:55
SmokeMachine: It's actually a bit pointless too, because it'd run at role composition time, but *the role's body runs at composition time*, so it doesn't really add any new power even if implemented. 23:56
Probably something to rip out.
Xliff jnthn: OK. So what mechanism can I use to perform an action when a role is composed to a class? 23:57
SmokeMachine Yes... I knew that... but a few days ago I could swear I saw someone using that and that worked! 23:58
Xliff Would I have to use the MOP?
SmokeMachine: Did you check the IRC logs?
SmokeMachine Xliff: just put the code on the role’s body...