🦋 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:06 aborazmeh joined, aborazmeh left, aborazmeh joined 00:11 __jrjsmrtn__ left 00:12 __jrjsmrtn__ joined
wildtrees jnthn, got it working, I changed $!kill-supplier in class Payload and in method kill() to $.kill-supplier and I can kill my payload just fine now, also using supplly { for range { emit $_ }} roughly works just as well as Supply.intervaL(1) 00:20
00:24 aborazmeh left 00:34 pecastro left 01:09 aborazmeh joined, aborazmeh left, aborazmeh joined 01:13 leont left 01:18 wildtrees left 01:33 sena_kun left 01:47 sena_kun joined 02:04 guifa2 joined 02:10 molaf left 02:22 molaf joined
cpan-raku New module released to CPAN! Text::Diff (1.0.2) by 03RBT 02:31
02:34 aborazmeh left 02:52 Sgeo__ joined 02:56 Sgeo_ left 03:32 sena_kun left 03:39 guifa2 left 03:44 guifa2 joined 03:48 sena_kun joined 04:18 gabiruh left, gabiruh joined 04:24 neuks joined 04:26 neuks left 04:35 atweiden-air joined 04:46 atweiden-air left 04:47 hungryd94 joined 04:49 hungrydonkey left 05:15 hungrydonkey joined, hungryd94 left 05:19 hungrydonkey30 joined, hungrydonkey30 is now known as cstist 05:22 hungrydonkey left 05:32 sena_kun left 05:40 molaf left 05:46 sena_kun joined 05:52 atweiden-air joined 05:55 Sgeo_ joined 05:58 Sgeo__ left 06:01 hungrydonkey joined, DarthGandalf joined 06:02 hungrydonkey is now known as boooot 06:03 cstist left 06:13 boooot left, Black_Ribbon left 06:15 hungrydonkey joined 06:17 rindolf joined, Doc_Holliwood joined, Doc_Holliwould joined 06:21 melezhik left
atweiden-air i'm liking for aesthetic purposes pathwise for raku libs going forward lib/path/to/module.raku 06:30
tellable6 2020-02-03T19:22:34Z #raku <MasterDuke> atweiden-air: your example works for me in linux. don't know what's up
2020-02-03T19:25:48Z #raku <lizmat> atweiden-air why removing the --has-libtommath ?
atweiden-air i.e. how elixir does it
but this apparently breaks the convention of `use Module`. it seems you'd have to do `use module` instead even if the module is named `unit class Module` for example?
lizmat: because system libtommath and libtommath shipped with 2020.01 differ 06:31
06:31 sauvin joined
atweiden-air i don't think this made it into 2020.01 github.com/MoarVM/MoarVM/pull/1221 06:32
06:40 hungrydonkey2 joined 06:42 hungrydonkey left 06:49 stoned75 left 06:51 vrurg joined 06:53 hungrydonkey2 left 07:03 wamba joined
SmokeMachine tbrowder: did 6pm work for you? 07:06
07:10 leont joined 07:24 domidumont joined 07:27 veesh_ joined 07:28 veesh left 07:29 veesh_ is now known as veesh 07:33 sena_kun left 07:35 Doc_Holliwood left, Doc_Holliwould left 07:37 leont left 07:39 hungrydonkey joined, hungrydonkey left 07:49 sena_kun joined 07:55 darkstardev13 left 07:57 darkstardevx joined 08:16 atweiden-air left 08:18 pecastro joined 08:34 abraxxa joined 08:39 abraxxa left 08:44 abraxxa joined 08:50 abraxxa left 08:55 scimon joined 09:06 e1z0 left 09:12 zakharyas joined 09:16 Doc_Holliwould joined, Doc_Holliwood joined 09:31 Sgeo_ left 09:33 sena_kun left 09:48 sena_kun joined 10:07 rindolf left, xelxebar left 10:08 xelxebar joined, Doc_Holliwood left, Doc_Holliwould left 10:14 abraxxa joined 10:17 abraxxa left, abraxxa joined 10:21 rindolf joined 10:27 AlexDaniel` left, CIAvash left, uzl[m] left 10:38 wamba left 10:39 veesh_ joined 10:40 veesh left, veesh_ is now known as veesh 10:48 nebuchadnezzar left 10:51 AlexDaniel` joined 11:01 wamba joined 11:11 xinming_ left 11:12 xinming_ joined 11:17 Doc_Holliwould joined, Doc_Holliwood joined 11:25 discord6 left, discord6 joined, discord6 left, discord6 joined 11:31 wbn left 11:32 vinayvyas joined, sena_kun left 11:33 wbn joined 11:34 veesh_ joined 11:35 veesh left, Kaiepi left 11:36 veesh_ is now known as veesh, zakharyas left, Kaiepi joined 11:37 CIAvash joined, awwaiid joined, EuAndreh[m] joined, BlackChaosNL[m] joined, pmf[m] joined, unclechu joined, uzl[m] joined, matiaslina joined, tadzik[m]1 joined 11:38 Kaiepi left 11:39 zakharyas joined, Kaiepi joined 11:40 holyghost left 11:41 Kaiepi left, holyghost joined, Kaiepi joined 11:44 vinay3 joined 11:46 vinayvyas left 11:47 sena_kun joined
tbrowder SmokeMachine: i haven't tried it fully yet, but the "init" command seems useful emough as a META6.json generator 11:58
SmokeMachine tbrowder: good to know! :) please, let me know if you find any problem on that... 11:59
12:01 ufobat joined 12:05 MasterDuke left 12:08 Kaiepi left 12:13 Kaiepi joined 12:21 Doc_Holliwould left, Doc_Holliwood left 12:26 molaf joined 12:28 zakharyas left 12:39 rindolf left 12:41 vinayvyas joined 12:46 libertas joined
Geth doc: 37e1cfed8d | (Tom Browder)++ (committed using GitHub Web editor) | doc/Language/compilation.pod6
minor grammatical changes
12:47
linkable6 Link: docs.raku.org/language/compilation
squashable6 🍕🍕🍕 First contribution by tbrowder++! ♥
12:53 rindolf joined
tobs squashable6: status 13:00
squashable6 tobs, 🍕🍕 SQUASHathon is in progress! The end of the event in 1 day and ≈22 hours. See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
tobs, Log and stats: gist.github.com/61d94c58e3b826a987...dedf232bfd
AlexDaniel` oops!
wrong repo
hold on let me reconfigure it
13:00 AlexDaniel joined, AlexDaniel left, AlexDaniel joined 13:02 squashable6 left 13:04 nebuchadnezzar joined 13:05 benjif joined 13:06 squashable6 joined 13:07 benjif_ left
AlexDaniel squashable6: status 13:07
squashable6 AlexDaniel, 🍕🍕 SQUASHathon is in progress! The end of the event in 1 day and ≈22 hours. See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
Webhook for Raku/old-issue-tracker is now active! It's not fully shipped until it's fast.
AlexDaniel haha, what a troll
bisectable6: my int $a is default(42) 13:08
bisectable6 AlexDaniel, On both starting points (old=2015.12 new=495ddcc) the exit code is 1 and the output is identical as well
AlexDaniel, Output on both points: «04===SORRY!04=== Error while compiling /tmp/vDjZNGPpka␤Can't use trait 'is default' on a native.␤at /tmp/vDjZNGPpka:1␤------> 03my int $a is default(42)08⏏04<EOL>␤ expecting any of:␤ constraint␤»
AlexDaniel c: releases my int $a is default(42)
committable6 AlexDaniel, gist.github.com/a17fe7513e2d974a7d...fb24e45475
AlexDaniel hmmm 13:10
interesting, so reportable6 doesn't really know about the old-issue-tracker repo 13:12
so we won't get nice stats from it 13:13
but it's ok
13:15 lucasb joined, Kaiepi left
AlexDaniel or maybe I can just fix it :) 13:17
libertas p6: my $string = 'Hello, World!'; $string ~~ s:g/\s+/ /; 13:19
camelia ( no output )
libertas hi, why does my $string = 'Hello, World!'; $string ~~ s:g/\s+/ /; outputs (「 」) ?
moritz_ because it returns the match. Try to print $string afterwards 13:20
13:21 Kaiepi joined
moritz_ p6: my $string = 'Hello, World!'; $string ~~ s:g/\s+/ /; say $string; 13:21
camelia Hello, World!
libertas moritz_: I'm folloing the Using Raku book and that was not mentioned, maybe I'll try another book 13:26
moritz_ libertas: don't abandon a book because it missed one small thing. At least if you're otherwise happy with it 13:28
libertas I'm just beginning, so I need the details right :-) 13:30
13:31 sena_kun left 13:33 __jrjsmrtn__ left, _jrjsmrtn joined
Geth doc: 1c6cd217c6 | (Aleks-Daniel Jakimenko-Aleksejev)++ | doc/Type/independent-routines.pod6
Remove harmful ÂŤÂť advice

It was accidentally added in github.com/Raku/doc/commit/190a1f3503
Even the next paragraph advices against it. I'm not sure how to make the example simpler without making it less idiomatic.
13:34
linkable6 Link: docs.raku.org/type/independent-routines
13:40 reach_satori joined 13:46 sena_kun joined, Kaiepi left 13:51 Doc_Holliwood joined, Doc_Holliwould joined 13:58 patrickb joined 14:13 vinayvyas left, vinay3 left
Geth doc: coke unassigned from noisegul Issue Can't install p6doc as a non-privileged user github.com/Raku/doc/issues/2896
coke self-assigned Can't install p6doc as a non-privileged user github.com/Raku/doc/issues/2896

611f7a8e26 | Coke++ | doc/Language/compilation.pod6 plural possessive
14:20
14:22 zakharyas joined
linkable6 Link: docs.raku.org/language/compilation
14:28 wamba left 14:31 Doc_Holliwood left, Doc_Holliwould left
[Coke] oops. /win 2 14:31
... oops
14:34 vike left
Geth ÂŚ doc: coke self-assigned Change from p6doc to rakudoc github.com/Raku/doc/issues/3203 14:36
14:40 xelxebar left 14:41 xelxebar joined 14:43 hungrydonkey joined 14:51 bartolin left 14:59 aluaces left 15:01 hungrydonkey left 15:02 Sgeo joined 15:16 vike joined
Geth ÂŚ problem-solving: jnthn self-assigned The development experience around the generate-and-export pattern has shortcomings github.com/Raku/problem-solving/issues/159 15:17
15:21 Sgeo_ joined 15:24 Sgeo left 15:27 Ven_de_Thiel joined
Ven_de_Thiel \o 15:27
15:27 hungrydonkey joined
[Coke] .seen jmerelo 15:31
tellable6 [Coke], I saw jmerelo 2020-02-04T19:27:18Z in #raku: <jmerelo> You can join #whateverable and ask stuff there
15:31 benjif_ joined
rypervenche What's the best way to sum up the first field from each line in a file? 15:32
[Coke] What's the field separator?
Ven_de_Thiel `[+] 'a'.IO.lines.map(*.split(',')[0])`?
[Coke] If it's a .csv, for example, you're going to want a modddddddule 15:33
discord6 <theangryepicbanana> rypervenche: perhaps slurp($my-file-name).comb(/^^\d+/).sum
<theangryepicbanana> that work?
<theangryepicbanana> comb is quite OP
rypervenche The FS is a space.
[Coke] if it's a CSV you don't want to rely on split ,
15:33 sena_kun left
discord6 <theangryepicbanana> I have already provided a solution 15:34
rypervenche Yeah, I'm testing it out. Just answering [Coke]'s question. :P
15:34 benjif left
discord6 <theangryepicbanana> oh ok 15:34
rypervenche Cool, that worked. Thanks. 15:38
discord6 <theangryepicbanana> yay 15:39
15:40 Doc_Holliwood joined, Doc_Holliwould joined
rypervenche As well as Ven_de_Thiel's version. Both interesting ways of doing this. 15:40
15:42 sarna left, sarna joined 15:47 Kaiepi joined 15:48 sena_kun joined 15:49 benjif joined 15:51 benjif_ left, Tirifto joined 16:12 benjif_ joined 16:14 benjif left 16:30 xinming_ left, xinming_ joined 16:31 hacktortu left 16:49 atroxaper joined 16:50 patrickb left 17:08 zakharyas left 17:09 aborazmeh joined, aborazmeh left, aborazmeh joined 17:28 reach_satori left 17:32 atroxaper left
rypervenche If I have a grammar and I'm using it to look through each line of a file, if a line doesn't match what's in TOP, it will simply get ignored, right? So I can write my grammar's TOP to only look like the lines that I want to find, yes? 17:32
17:32 sena_kun left
AlexDaniel rypervenche: yes, if you want to match each line separately (instead of using your grammar to parse the whole file) 17:37
rypervenche AlexDaniel: Ahh, I suppose the difference would be how the TOP ends? Like with a % \n or something? 17:39
17:40 wildtrees joined
AlexDaniel rypervenche: yeah, something like <your-line-rule>+ % \n 17:40
or even %% 17:41
rypervenche Gotcha. Good to know. I'll be sure to do that instead of using .lines to loop through each line. Seems very unnecessary.
AlexDaniel well, it depends
rypervenche Yes. I ran into an issue where my file tacked on an extra \n at the end of the file. %% \n helped.
AlexDaniel if your file is large then parsing it line by line is a better idea (you won't end up getting your whole parse tree in RAM)
rypervenche Ahh. 17:42
17:48 sena_kun joined 18:00 Ven_de_Thiel left 18:01 aluaces joined 18:02 hungrydonkey left 18:05 leont joined 18:13 wamba joined 18:15 hythm joined 18:16 Sgeo__ joined 18:20 Sgeo_ left 18:28 NODE left, NODE joined 18:31 NODE left, NODE joined 18:34 NODE left, NODE joined 18:35 leont left, cpan-raku left, cpan-raku joined, cpan-raku left, cpan-raku joined 19:02 scimon left 19:04 bdju joined
bdju I noticed on the "whatever" section of the website that the vim/neovim plugin links are different, however the neovim one links to the old archived plugin and redirects you to the one that the vim link already pointed to. So, they should probably be the same link. Maybe even on the same line. 19:05
Also, the cafepress shirts all 404 for me!
19:12 aborazmeh left 19:16 domidumont left 19:19 domidumont joined
hythm what does this error mean? i started getting this error after upgrading to latest ( i was running few months old version) 19:26
Incompatible MROs in P6opaque rebless for types Perl6::Metamodel::ClassHOW+{<anon>}+{<anon>} and Perl6::Metamodel::ClassHOW+{<anon>}
19:27 wamba left, sauvin left
hythm i get the error when i `use MyModule`, commenting the `use` statement makes the error disappear 19:28
the module giving the error is github.com/hythm7/Pakku 19:29
19:33 sena_kun left, natrys joined 19:35 Doc_Holliwood left, Doc_Holliwould left 19:36 lucasb left
lizmat .ask sena_kun was Pakku clean in the last Blin run ? 19:43
tellable6 lizmat, I'll pass your message to sena_kun
19:44 Doc_Holliwood joined, Doc_Holliwould joined
hythm lizmat, this issue may be related to your question: github.com/hythm7/Pakku/issues/5 19:45
lizmat ok, so install with zef failed, but I guess we didn't check further 19:47
hythm: maybe this has answer: stackoverflow.com/questions/598452...es-anymore 19:48
19:49 sena_kun joined
hythm thanks lizmat, checking. 19:50
20:00 reach_satori joined 20:01 gabiruh_ joined, gabiruh left, domidumont left 20:04 rindolf left
Tirifto Hello! Any idea what the error “No such symbol 'Switcher::extension'” means when trying to “require” a module from the file “extension” in the “Switcher” directory, in a directory within the “PERL6LIB” environment variable? 20:05
[Coke] what's your require line? 20:06
20:08 hythm left
Tirifto for @extensions { require ::($_)::extension; } # (@extensions contains a list of directories (in the directory added to PERL6LIB), each of which contains an ‘extension.rakumod’ file with a module.) 20:09
20:13 Redfoxmoon joined 20:16 dustinm`_ left, chloekek joined 20:22 dustinm` joined 20:24 Redfoxmoon left, Redfoxmoon joined
Tirifto It apparently finds the modules and reads them, since it complained about an error in one of them earlier. But once I fixed that, it started complaining about ‘no such symbol’ on the require line. :/ 20:44
20:46 AlexDaniel left
cpan-raku New module released to CPAN! Text::Diff (1.0.3) by 03RBT 20:48
21:31 wildtrees left, wildtrees joined 21:32 sena_kun left 21:48 sena_kun joined 21:56 chloekek left 21:57 Sgeo_ joined 21:59 maggotbrain left 22:00 Sgeo__ left 22:01 maggotbrain joined 22:35 wamba joined 22:39 AlexDaniel joined, AlexDaniel left, AlexDaniel joined 22:42 Doc_Holliwood left, Doc_Holliwould left
k-man i posted about this question from exercisom before, but my question now is how to approach problems like this with loads of if or cases: ix.io/2aRO 22:45
22:58 camelCaser joined 23:04 natrys left 23:24 Black_Ribbon joined 23:31 libertas left 23:32 sena_kun left
Geth whateverable: ee71c5d3dd | (Aleks-Daniel Jakimenko-Aleksejev)++ | lib/Whateverable/Bits.pm6
Fix GitHub authorization (oops)
23:32
whateverable: 42eb1297e5 | (Aleks-Daniel Jakimenko-Aleksejev)++ | lib/Whateverable/Bits.pm6
Mix in some extra stuff for GitHub API requests

It may look ugly but it's actually more useful this way.
whateverable: 3bf41e1c8f | (Aleks-Daniel Jakimenko-Aleksejev)++ | 3 files
Make Reportable no longer fetch RT stuff

And instead fetch tickets from Raku/old-issue-tracker.
It doesn't yet know how to translate RT ticket IDs so diffing new snapshots with old ones may not do what you expect.
23:33 libertas joined
Geth whateverable: 8b87a3297c | (Aleks-Daniel Jakimenko-Aleksejev)++ | lib/Whateverable/Bits.pm6
Fix `time` call (oops)
23:36
23:37 reportable6 left 23:38 reportable6 joined 23:42 gabiruh joined 23:43 gabiruh_ left
AlexDaniel squashable6: status 23:43
squashable6 AlexDaniel, 🍕🍕 SQUASHathon is in progress! The end of the event in 1 day and ≈12 hours. See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
AlexDaniel, Log and stats: gist.github.com/8e8792407859c184c5...00b4104a6a
23:48 sena_kun joined