[00:01] *** hungrydonkey joined [00:04] *** titsuki joined [00:10] *** pmurias left [00:11] *** Doc_Holliwood left [00:14] *** imcsk8 left [00:16] *** imcsk8 joined [00:39] Anyone have any idea how to create and display a new window in GTK::Simple? I'm feeling like an idiot because the obvious things are very much not working for me, but there aren't any examples that spawn a new window in Raku code (11-file-chooser-button.pl6 opens a new window, but it happens in C code) [00:41] *** chloekek left [00:56] *** Kaiepi left [01:01] *** Kaiepi joined [01:29] japhb: What do you mean it happens in C code? [01:34] *** sena_kun joined [01:36] *** Altai-man_ left [01:39] *** _jrjsmrtn left [01:39] *** __jrjsmrtn__ joined [01:48] rypervenche: It's builtin (C-level) GTK+ functionality of the gtk_file_chooser_button to open a gtk_file_chooser when clicked, not something wired up in the Raku code of GTK::Simple [01:54] *** cpan-raku left [01:54] *** cpan-raku joined [01:54] *** cpan-raku left [01:54] *** cpan-raku joined [02:09] *** Kaeipi joined [02:09] *** Kaiepi left [02:12] *** Kaeipi left [02:14] *** Kaeipi joined [02:14] *** ufobat_ joined [02:18] *** ufobat__ left [02:32] *** Maylay left [02:56] *** Maylay joined [03:01] *** Manifest0 left [03:02] *** Manifest0 joined [03:03] *** k-man left [03:07] *** k-man joined [03:08] *** orinthe left [03:33] *** Altai-man_ joined [03:35] *** aborazmeh left [03:36] *** sena_kun left [04:12] Voldenet: https://www.irccloud.com/pastebin/Il7vS6Hs/ [04:33] *** heth left [04:36] *** hungrydonkey left [04:36] Voldenet: this is working as expected: https://github.com/FCO/EventExpressionLanguage/blob/master/examples/port-knocking [04:37] *** hungrydonkey joined [04:43] *** heth joined [04:46] *** orinthe joined [04:47] *** orinthe left [04:53] *** cfa left [05:06] *** orinsu joined [05:20] *** vrurg left [05:21] *** molaf joined [05:21] *** vrurg joined [05:34] *** sena_kun joined [05:36] *** Altai-man_ left [05:45] *** orinsu is now known as orinthe [05:56] *** Doc_Holliwood joined [06:08] *** reach_satori_ left [06:29] *** sauvin joined [06:36] *** NODE left [06:39] *** NODE joined [06:39] *** domidumont joined [06:41] *** marcusr left [06:42] *** NODE left [06:42] *** marcusr joined [06:42] *** domidumont left [06:43] *** NODE joined [06:43] *** NODE left [06:45] *** NODE joined [06:52] *** domidumont joined [07:01] ¦ doc: eb754a2b3c | (JJ Merelo)++ | doc/Language/variables.pod6 [07:01] ¦ doc: Revision and reindexing #2632 [07:01] ¦ doc: review: https://github.com/Raku/doc/commit/eb754a2b3c [07:01] ¦ doc: c7c185394b | (JJ Merelo)++ | 2 files [07:01] ¦ doc: Revision and reindexing #2632 [07:01] ¦ doc: [07:01] ¦ doc: Eliminates the word "container" in the variables file, since constants are defined in "terms" as variables with no container. [07:01] ¦ doc: review: https://github.com/Raku/doc/commit/c7c185394b [07:01] Link: https://docs.raku.org/language/variables [07:01] ¦ doc: ba52a17d3d | (JJ Merelo)++ | doc/Language/terms.pod6 [07:01] ¦ doc: Revision of constant constraints #2632 [07:01] DOC#2632 [open]: https://github.com/Raku/doc/issues/2632 [Hacktoberfest][RFE][big][docs][good first issue][help wanted][new][⚠ Top Priority ⚠] Checklist for 6.d [07:01] ¦ doc: [07:01] Link: https://docs.raku.org/language/terms [07:01] ¦ doc: Mostly reflow, since everything was there already (thanks @zoffix) [07:01] ¦ doc: review: https://github.com/Raku/doc/commit/ba52a17d3d [07:03] *** jmerelo joined [07:04] *** ctilmes1 left [07:04] *** ctilmes1 joined [07:09] *** marcusr left [07:11] *** marcusr joined [07:13] hopefully he'll return some day [07:14] El_Che: zoffix? I don't think so. For the foreseeable future, at least [07:14] 2020-02-20T20:17:35Z #raku jmerelo: sorry about the news... [07:14] 2020-02-20T21:36:10Z #raku jmerelo: Is there a way to find out why we were rejected at this years GSoC? That'd be really good to know. [07:14] 2020-02-20T21:36:42Z #raku jmerelo: Was the TPF organization deleted? When I try to log in with my google account it says I'm not part of any organization anymore... [07:14] *** rindolf joined [07:15] .tell patrickb, no, no way that I know of. And yes, the organization has been deleted for me too; it returned a 403. [07:15] jmerelo, I'll pass your message to patrickb [07:28] *** xinming joined [07:31] *** xinming_ left [07:33] *** rindolf left [07:33] *** Altai-man_ joined [07:36] *** sena_kun left [07:44] *** stoned75 left [07:45] *** kktt007 joined [07:50] *** Kaeipi left [07:51] *** wamba joined [07:53] *** Kaiepi joined [07:53] *** domidumont left [07:54] *** wamba left [08:02] *** cognomin_ joined [08:05] *** cognominal left [08:09] *** rindolf joined [08:16] *** domidumont joined [08:34] *** Doc_Holliwood left [08:41] releasable6: status [08:41] jmerelo, Next release in ≈1 day and ≈10 hours. There are no known blockers. 163 out of 247 commits logged [08:41] jmerelo, Details: https://gist.github.com/81970e56864179f595936486bd98f47e [08:41] .tell Altai-man great job! [08:41] jmerelo, I'll pass your message to Altai-man_ [08:51] *** darkstardev13 joined [08:52] *** titsuki left [08:53] *** raven__ left [09:02] *** Doc_Holliwood joined [09:10] *** titsuki joined [09:20] *** [Sno] left [09:21] *** [Sno] joined [09:23] *** nwc10 joined [09:23] *** |Sno| joined [09:25] OK, I (technically $ork, written by $other) have a long running process that seems to slowly eat all the RAM. It *looks* like I can use the snapper module to tell it to periodically take heap snapshots (eg once an hour) - but I can't find any example docs to "steal". Where should I be looking? [09:26] *** [Sno] left [09:27] *** reach_satori_ joined [09:28] nwc10 it's part of Telemetry: https://docs.raku.org/type/Telemetry#module_snapper [09:28] *** veesh_ joined [09:28] jmerelo: yes, and *that* doesn't seem to have many docs either [09:28] *** wamba joined [09:28] *** veesh left [09:29] aha, at least, not in the repository. [09:29] nwc10: what you see is what you get, I'm afraid... Please raise an issue requesting an enhancement [09:32] *** [Sno] joined [09:32] *** wamba left [09:32] *** wamba joined [09:34] *** |Sno| left [09:34] *** sena_kun joined [09:36] *** Altai-man_ left [09:37] *** pecastro joined [09:38] nwc10: RAKUDO_SNAPPER=3600 raku -Msnapper your program ? [09:38] cool, that's what I thought might well do the job [09:38] (was distracted by actual $ork) [09:38] but I have to [09:38] 1) figure out where the CWD is [09:38] 2) figuure how how to do this when it's currently run from a systemd unit [09:39] and *then* I have to figure out what to do to process heap snapshots [09:39] well, snapper doesn't take heap snapshots, it just queries some system parameters in a separate thread and writes them to STDERR [09:39] jmerelo: I had gone quiet because your link to docs.raku.org looked like it might give me enough clue to figure something out [09:40] it is really simple, almost braindead [09:41] *** Doc_Holliwood left [09:41] hangon, confused by that last statement. I *thought* that I'd figured it out as the snapper module calls Telemetry::snapper, and in turn that creates a thread tha calls Telemetry::snap (at the regular interval) and *that* takes snapshots [09:42] and in turn, snapper (the module) can be controled from the environment. But *only* the interval (which is what matters most) [09:42] the basic question I'm trying to answer is "is this memory consumption from [09:42] 1) a but in the code which is keeping objects around? [09:43] yeah, so it's nothing like the snapshot module that Timo is working on, is what I'm saying [09:43] 2) a problemetic interaction with the MoarVM GC, such that the amound of system memory grows, but the GC doesn't actually leak anything [09:43] or [09:43] 3) a real leak [09:43] " [09:44] we've eliminated answer 0 - "bad reaction to something it's talking to" [09:44] ie it's slowly eating RAM, not geting upset by something and (figuratively) expoding [09:44] exploding [09:44] can you not rule out 2. by running on ulimit something ? [09:45] lizmat: I think I understand the question, and I don't think so. Left to run, this process eats all RAM on the VM in about 2 or 3 days [09:46] and will it die then because of OOM ? or will it continue to run ? [09:46] it does because of OOM [09:46] the OOM killer takes an unhealthy interest in it [09:47] so I'm asuming that ulimit will just mean something else kilsl it first [09:47] although, I see, that might be itneresting because it might give a backtrace of *where* the failed allocation was [09:49] but first, apart from $ork, my coffee cup has a bug that I need to fix. [09:54] *** kktt007 left [09:54] *** titsuki left [10:04] *** mowcat joined [10:11] *** cognominal joined [10:15] *** cognomin_ left [10:31] ¦ doc: jsoref++ created pull request #3225: Spelling [10:31] ¦ doc: review: https://github.com/Raku/doc/pull/3225 [10:33] *** wamba left [10:35] *** Black_Ribbon left [10:44] *** veesh_ left [10:44] *** veesh joined [10:49] *** mowcat left [10:50] *** darkstardev13 left [10:52] ¦ doc/master: 5 commits pushed by (Josh Soref)++, (Juan Julián Merelo Guervós)++ [10:52] ¦ doc/master: 4b57374d91 | spelling: doesnotexist [10:52] ¦ doc/master: ac1fcbdee4 | spelling: getpeername [10:52] ¦ doc/master: 0ecfef3679 | spelling: getsock [10:52] ¦ doc/master: 6f19dc46bf | Afaict these tokens are not present in the corpus [10:52] ¦ doc/master: 4d31245e8d | Merge pull request #3225 from jsoref/spelling [10:52] ¦ doc/master: review: https://github.com/Raku/doc/compare/ba52a17d3dad...4d31245e8d92 [10:56] *** darkstardevx joined [11:11] SmokeMachine: that's fairly cool, I'll maybe try to write an actual port knocking solution with that, just to see how short would it be :) [11:18] *** Doc_Holliwood joined [11:19] *** hankache joined [11:23] *** rindolf left [11:27] *** hungryd59 joined [11:28] *** titsuki joined [11:28] *** reach_satori_ left [11:28] *** reach_satori joined [11:29] *** rindolf joined [11:29] *** hungrydonkey left [11:30] *** wamba joined [11:33] *** Altai-man_ joined [11:36] *** sena_kun left [11:42] *** hungrydonkey joined [11:44] *** hungryd59 left [11:45] *** hungrydonkey left [11:45] *** hungrydonkey joined [11:57] *** titsuki left [11:59] *** titsuki joined [12:04] ¦ rakudo.org: 2b6fb4dd16 | (Naoum Hankache)++ (committed using GitHub Web editor) | templates/star.html.ep [12:04] ¦ rakudo.org: Update some links [12:04] ¦ rakudo.org: review: https://github.com/perl6/rakudo.org/commit/2b6fb4dd16 [12:11] *** reach_satori left [12:11] *** reach_satori joined [12:15] *** xinming left [12:15] *** xinming joined [12:19] *** Sgeo left [12:19] *** Sgeo joined [12:20] *** reach_satori left [12:21] *** reach_satori joined [12:21] *** wamba left [12:38] *** Doc_Holliwood left [12:46] *** lucasb joined [12:46] *** Kaiepi left [12:47] *** domidumont left [12:49] *** Kaiepi joined [12:53] *** brtastic joined [12:57] *** reach_satori left [12:58] *** reach_satori joined [12:59] *** mowcat joined [13:00] *** reach_satori left [13:00] *** xinming left [13:01] *** reach_satori joined [13:01] *** xinming joined [13:09] *** reach_satori left [13:13] *** Doc_Holliwood joined [13:23] *** hankache left [13:24] *** aborazmeh joined [13:24] *** aborazmeh left [13:24] *** aborazmeh joined [13:34] *** sena_kun joined [13:36] *** Altai-man_ left [13:37] *** mowcat left [13:51] *** Doc_Holliwood left [13:59] *** jmerelo left [14:02] *** molaf left [14:15] *** molaf joined [14:18] How does one check what type restriction is on a container? [14:19] m: my Int $a; say $a.VAR.of [14:19] jnthn, rakudo-moar 992f1b83f: OUTPUT: «(Int)␤» [14:19] Thanks [14:20] Ah, so VAR gets the Scalar [14:20] makes sense [14:20] *** cpan-raku left [14:20] *** cpan-raku joined [14:20] *** cpan-raku left [14:20] *** cpan-raku joined [14:21] Not that if using a where clause that might fail [14:21] Well, it doesn’t fail, it just doesn’t get you very useful information [14:22] m: my $a where Int|Str = 4; say $a.VAR.of [14:22] guifa, rakudo-moar 992f1b83f: OUTPUT: «()␤» [14:22] * guifa . o O ( yet another reason to prefer subtypes to where clauses ) [14:22] errr subsets* [14:26] *** mensvaga joined [14:27] <[Coke]> jnthn++ # finally able to run a full "make xtest" in doc again. [14:28] Another somewhat more complex question about subroutine calling: say I have my $a = 1 -- $a.VAR.of is (Mu), fine [14:29] but then if I pass that into sub test(Int $param) { say $param.VAR.of; } it tells me Int doesn't have an "of" method [14:30] Yes, because there's no container there, the Int is bound directly into $param [14:30] Oh? I was under the impression it was just a readonly container [14:30] You'd need `Int $param is copy` to insist on that [14:31] A readonly container is created if the thing is Iterable and would flatten when it shoudln't, otherwise it optimizes that way and just binds the value [14:31] *away [14:32] Fair enough [14:32] (Which in some programs saves a non-trivial percentage of allocations...) [14:33] Yeah, I could see direct binding being a big gain there [14:34] ¦ doc: 54843fdae3 | Coke++ | xt/words.pws [14:34] ¦ doc: learn new class [14:34] ¦ doc: [14:34] ¦ doc: Allow simple plural - it's clear from formatting Supply is a class name we aren't going to dynamically change spelling on [14:34] ¦ doc: review: https://github.com/Raku/doc/commit/54843fdae3 [14:41] *** colomon_ left [14:42] *** Doc_Holliwood joined [14:47] *** pmurias joined [14:47] *** pmurias left [14:47] *** pmurias joined [14:48] *** titsuki left [14:48] MasterDuke: I have started working on getting the truffle backend to work on the new graalvm [14:48] pmurias: nice! [14:49] MasterDuke: got to refactor some stuff as they enforce a separation between the language implementation and the launcher (In our case that would be the part running on the old backend) [14:50] hm, is that a good thing for us in the long run anyway? i.e., will it help with eventually making the truffle backend the primary/only jvm backend? [14:52] in the long run we want our backend to be registered the same way all the other truffle languages are [14:52] so they can eval Raku code using the same API as they use for JS and TruffleRuby [14:53] yeah, that would be nice [14:53] but in the short run the truffle NQP isn't yet bootstrapped so we use a workaround where we parse on the old backend [15:02] *** aborazmeh left [15:11] *** mowcat joined [15:18] *** brtastic left [15:23] *** Doc_Holliwood left [15:33] *** Altai-man_ joined [15:34] *** cognomin_ joined [15:36] *** sena_kun left [15:37] *** pmurias left [15:37] *** cognominal left [16:13] *** Doc_Holliwood joined [16:30] <もふもふいつ撫でも (Mofu MOFO)> I am not complaining, friends, but I am curious. I once caught wind that hawtness related to vastly improving performance in Perl6 is somewhere down the pipe. Is this gonna be reality someday? I am excite. [16:32] have you seen https://www.youtube.com/watch?v=QNeu0wK92NE ? [16:33] there are new releases montly and each one packs numerous "Make Foo.bar baz percents faster". Also some heavy VM optimizations are work in progress, some of them will be included in 2020.03 release (hopefully). [16:36] <もふもふいつ撫でも (Mofu MOFO)> As long as it'll eventually be as fast as Ruby, das all I want. I am very entitled human being who demands things I didn't pay for to be gr8. [16:37] as the report states, some things are _already_ faster/on par with ruby, some are not there yet, so one might hope (and help). :) [16:41] Another great day in Apple Support. Now for the interesting stuff in life :) [16:43] *** pecastro left [16:44] This tweet: https://twitter.com/jjatria/status/1230554758215155713 we should adopt that and use it as a motto / marketing ploy [16:44] "Raku, the language you never knew you always wanted", that's just poetic [16:45] <もふもふいつ撫でも (Mofu MOFO)> I wonder how long it's going to take for me to stop calling it Perl6. [16:47] maybe it helps getting rid of the 6 in your name? [16:47] <もふもふいつ撫でも (Mofu MOFO)> I mean, I could do it now. But it wouldn't be coming from the heart. [16:49] <もふもふいつ撫でも (Mofu MOFO)> I dunno mang, this is what my username looks like: https://i.imgur.com/osAP3k1.png [16:49] it's the discord bridge that has 6 in the name [16:49] <もふもふいつ撫でも (Mofu MOFO)> This Bridge guy has so many personalities. [16:50] >Russian locale [16:50] surprising [16:51] Are you one of those russian hackers they talk about in the news all the time, Grinnz? [16:51] <もふもふいつ撫でも (Mofu MOFO)> Vodka joke goes here. [16:51] I'm only like, 1/16th russian [16:52] hmm that's less than roulette [16:54] *** domidumont joined [17:00] <もふもふいつ撫でも (Mofu MOFO)> is there any way to do something like perl my \Х = 3; my \У = 8; my \Й = 11; say ( X²+Y²=Й² ); ? [17:03] m: my \Х = 3; my \У = 8; my \Й = 11; say Х²+У²==Й² # if you consistently use the right characters, and use == instead of =, then yes [17:03] lizmat, rakudo-moar 3f637af9e: OUTPUT: «False␤» [17:04] *** jmerelo joined [17:08] *** guifa left [17:11] After the GSoC upset, we've still got to try outreachy. Please submit your ideas here https://github.com/perl-foundation-outreach/outreachy-2020-ideas [17:13] Does this leak? https://gist.github.com/holli-holzer/74caac4f0cced8cb1ba903646edcdf43 [17:13] i guess not, but ... [17:13] *** xinming left [17:14] *** xinming joined [17:20] *** aborazmeh joined [17:20] *** aborazmeh left [17:20] *** aborazmeh joined [17:25] *** domidumont left [17:27] *** domidumont joined [17:32] *** domidumont left [17:33] *** domidumont joined [17:34] *** sena_kun joined [17:35] Doc_Holliwood: discord6 is the name of a bot which bridges this channel to a channel on discord [17:35] I guess I *should* change the nickname sometime soon [17:36] *** Altai-man_ left [17:39] Consistency <3 [17:39] jmerelo: I haven't paid a lot of attention lately, what happened with gsoc? [17:39] you may pm or email if thats more convenient [17:41] TPF was not selected for GSOC [17:41] :( [17:47] *** hungryd5 joined [17:47] *** mtj_ left [17:50] *** hungrydonkey left [18:01] *** aborazmeh left [18:03] *** hungryd5 left [18:06] *** jmerelo left [18:07] *** xinming left [18:07] *** domidumont left [18:08] *** patrickb joined [18:08] *** xinming joined [18:10] i'm tired of writing %% 2 [18:10] can i have .even and .odd please? [18:11] *** rba[m] left [18:11] *** pmf[m] left [18:11] *** uzl[m] left [18:11] *** unclechu left [18:12] *** NODE left [18:12] *** awwaiid left [18:12] *** CIAvash left [18:12] *** BlackChaosNL[m] left [18:12] *** EuAndreh[m] left [18:12] *** matiaslina left [18:12] *** AlexDaniel` left [18:12] *** tadzik[m]1 left [18:13] *** NODE joined [18:13] Doc_Holliwood, sure! *jokes about sub even / sub odd* [18:13] *** reach_satori joined [18:14] m: my &foo = method(Int:D $a --> Bool) { $a %% 2 }; say 43.&foo; [18:14] sena_kun, rakudo-moar 1d946e15f: OUTPUT: «(exit code 1) 04===SORRY!04=== Er…» [18:14] sena_kun, Full output: https://gist.github.com/f4db6fbc7e8479d47508f8fca63308da [18:14] hm [18:15] m: my &foo = method { self %% 2 }; say 43.&foo; say 42.&foo; [18:15] sena_kun, rakudo-moar 1d946e15f: OUTPUT: «False␤True␤» [18:15] shorter one wins. :P [18:16] m: my &foo = * %% 2 ; say 43.&foo; say 42.&foo; [18:16] sena_kun, rakudo-moar 1d946e15f: OUTPUT: «False␤True␤» [18:16] I know you can do that. That's not the point. [18:17] Doc_Holliwood, I got your point, but while not being core dev, I somehow can't say I appreciate the idea of making CORE fatter. [18:19] The only way to enhance a builtin type is monkeypatching it, yes? [18:19] Doc_Holliwood, but / does role also? [18:19] and thus code that does that cannot be precompiled, right? [18:20] m: '1 %% 2'.chars.say; '1.is-even'.chars.say; [18:20] sena_kun, rakudo-moar 1d946e15f: OUTPUT: «6␤9␤» [18:20] m: '(1 %% 2)'.chars.say; '1.is-even'.chars.say; [18:20] sena_kun, rakudo-moar 1d946e15f: OUTPUT: «8␤9␤» [18:20] Yeah, but then you have to write it out everywhere like here: https://gist.github.com/holli-holzer/74caac4f0cced8cb1ba903646edcdf43 [18:21] * sena_kun is not sure if right gist [18:21] 1 but Linked [18:21] ah, I see [18:22] I still don't get it. Typing `is-even` is slower / requires more keystokes than `%% 2` even with parens on. [18:22] m: role foo { method bar { say "bar" } }; subset FInt of Int does foo; [18:22] Doc_Holliwood, rakudo-moar 1d946e15f: OUTPUT: «(exit code 1) 04===SORRY!04=== Error while compiling /tmp/eBPqH3ePIO␤No such method 'add_role' for invocant of type 'Perl6::Metamodel::SubsetHOW'␤at /tmp/eBPqH3ePIO:1␤» [18:22] german keyboards are horrible, let me put it this way [18:22] you might argue that `()` keys are more distant than letters [18:23] also the shift key [18:24] m: role foo { method bar { say "bar" } }; class FInt is Int does foo {}; [18:24] Doc_Holliwood, rakudo-moar 1d946e15f: OUTPUT: «» [18:24] m: role foo { method bar { say "bar" } }; class FInt is Int does foo {}; FInt(99).bar; [18:24] Doc_Holliwood, rakudo-moar 1d946e15f: OUTPUT: «(exit code 1) Cannot find method 'FInt' on object of type Int␤ in block at /tmp/dEfwwv0d6H line 1␤␤» [18:24] m: role foo { method bar { say "bar" } }; class FInt is Int does foo {}; FInt.new(99).bar; [18:24] Doc_Holliwood, rakudo-moar 1d946e15f: OUTPUT: «bar␤» [18:24] *** tadzik[m]1 joined [18:25] that's not pretty either [18:28] *** orinthe left [18:28] *** orinthe joined [18:29] *** rba[m] joined [18:30] *** rba[m] left [18:30] *** tadzik[m]1 left [18:33] *** orinthe left [18:47] *** reach_satori left [18:50] *** cognominal joined [18:50] *** Black_Ribbon joined [18:54] *** cognomin_ left [18:54] Doc_Holliwood: get a US Intl keyboard :-) [18:56] I'm confused enough by using a Mac at day and a PC at night, liz =) [18:59] *** Xliff joined [19:01] <もふもふいつ撫でも (Mofu MOFO)> My life is using all mac as my portable workstation, winderp with WSL at home, SSH-ing into servers all day-everyday, and then using NetBSD's pkgsrc all day everyday on Linux and especially macOS. AKA, all the same shit if I have a POSIX shell and can open a web browser to look at catgirls [19:03] *** AlexDaniel` joined [19:15] *** orinthe joined [19:15] *** orinthe left [19:18] *** orinthe joined [19:25] *** xinming left [19:27] *** xinming joined [19:33] *** Altai-man_ joined [19:34] *** orinthe left [19:34] *** CIAvash joined [19:34] *** EuAndreh[m] joined [19:34] *** rba[m] joined [19:34] *** unclechu joined [19:34] *** pmf[m] joined [19:34] *** BlackChaosNL[m] joined [19:34] *** awwaiid joined [19:34] *** uzl[m] joined [19:34] *** matiaslina joined [19:34] *** tadzik[m]1 joined [19:36] *** sena_kun left [19:37] *** molaf left [19:43] *** domidumont joined [19:45] *** xinming left [19:46] *** xinming joined [19:47] *** domidumont left [19:52] *** orinthe joined [20:00] *** orinthe left [20:14] *** xinming left [20:14] *** xinming joined [20:30] *** orinthe3 joined [20:31] *** orinthe3 is now known as orinthe [20:33] *** MilkmanDan left [20:34] *** MilkmanDan joined [20:34] ¦ problem-solving: lizmat assigned to jnthn Issue $*CWD is an IO::Path, IO::Path.CWD is a Str https://github.com/Raku/problem-solving/issues/164 [20:39] *** mensvaga left [20:48] *** SCHAPiE left [20:50] *** SCHAPiE joined [21:09] *** SCHAPiE left [21:11] *** pecastro joined [21:12] *** SCHAPiE joined [21:20] Hi guys! I was thinking... there is a big difference between EEL and regexp is that if I do this `/"a" "a" "a"/` it matches "aaa" and do not matches "aaba" but with EEL, if I do `bla() bla() bla()` would match this sequence `{"type" : "bla"}{"type" : "bla"}{"type" : "bla"}` but also would match this sequence `{"type" : "bla"}{"type" : "bla"}{"type" : "ble"}{"type" : "bla"}` it would ignore the `ble` one... so I'm [21:20] thinking on doing something like: `:!ignore`. and it could receive condition, for example: `:!ignore(bla(a == #1.a)) bla(#1, b == 1) bla(a == #1.a, b == 1)` that way, it would match `{"type" : "bla", "a" : 42, "b" : 1 }{"type" : "bla", "a" : 42, "b" : 1 }` and `{"type" : "bla", "a" : 42, "b" : 1 }{"type" : "bla", "a" : 42, "b" : 2 }{"type" : "bla", "a" : 42, "b" : 1 }` but not `{"type" : "bla", "a" : 42, "b" : 1 [21:20] }{"type" : "bla", "a" : 42, "b" : 2 }{"type" : "bla", "a" : 42, "b" : 1 }`. But I don't think `ignore` is the right name for it... what do you guys thing? [21:20] Voldenet: ^^ [21:21] *** chloekek joined [21:24] *** kensanata joined [21:26] *** pecastro left [21:34] *** sena_kun joined [21:36] *** Altai-man_ left [21:39] * [Coke] yays as he gets to use a little Raku for a small work project. [21:43] *** pecastro joined [21:44] [Coke]: Woot woot! [21:52] *** Doc_Holliwood left [22:17] *** laama left [22:19] *** [Sno] left [22:21] *** [Sno] joined [22:25] What would be the best way to resolve this? [22:25] m: role A { submethod BUILD (:$a) { say "A" } }; role B { also does A; submethod BUILD (:$b) { say "B" } }; class C does B { }; C.new [22:25] Xliff, rakudo-moar 1d946e15f: OUTPUT: «(exit code 1) 04===SORRY!04=== Error while compiling /tmp/v_517kM0wL␤Package 'B' already has a submethod 'BUILD' (did you mean to declare a multi-method?)␤at /tmp/v_517kM0wL:1␤» [22:26] *** molaf joined [22:26] m: role A { submethod BUILD (:$a) { say "A" } }; role B { submethod BUILD (:$b) { say "B" } }; class C does B does A { }; C.new [22:26] Xliff, rakudo-moar 1d946e15f: OUTPUT: «(exit code 1) 04===SORRY!04=== Error while compiling /tmp/ViCJryQeYE␤Method 'BUILD' must be resolved by class C because it exists in multiple roles (A, B)␤at /tmp/ViCJryQeYE:1␤» [22:26] m: role A { submethod BUILD (:$a) { say "A" } }; role B { submethod BUILD (:$b) { say "B" } }; class C does B { also does A }; C.new [22:26] Xliff, rakudo-moar 1d946e15f: OUTPUT: «(exit code 1) 04===SORRY!04=== Error while compiling /tmp/eFSAPiFHek␤Method 'BUILD' must be resolved by class C because it exists in multiple roles (A, B)␤at /tmp/eFSAPiFHek:1␤» [22:27] Tricky because I sometimes have need for an object to be created from either role A or role B. A few objects must do both for functionality's sake. [22:29] in Proc::Async.new: blabla [22:30] my $sed = Proc::Async.new: 'sed', '-e', 's/xxx/yyy/g'; $sed.bind-stdin($*IN); await $sed.start; <--- How can this promise to be Kept when the $*IN is closed by external program? Or, what is the right way to close the $*IN ? [22:33] hmm, Ignore me, this example works, the problem is, when I add something like $sed.stdout.lines.map(...) broke the code [22:34] the $sed.stdout.lines.map(...) will hang the script, what caused that please? [22:36] I'd need to see how you're consuming that supply to help [22:37] my $sed = Proc::Async.new: 'sed', '-e', 's/xxx/yyy/g'; $sed.bind-stdin($*IN); $sed.stdout.lines.map({ $_ }); await $sed.start; [22:38] jnthn: I changed $sed.stdout.lines... to $sed.stdout.tap(-> $_ { ... }); worked fine. [22:38] I just curious why with stdout.lines will pause the script. [22:40] Because you don't consume the data [22:40] And it won't fire the process exit supply until the stdout/stderr were cosumed [22:40] Otherwise you could easily get data loss [22:41] Sorry, process exit *promise* [22:44] *** xinming left [22:44] *** xinming joined [22:50] *** sarna left [22:53] *** sarna joined [23:00] *** chloekek left [23:00] *** xinming left [23:02] *** xinming joined [23:03] *** rindolf left [23:27] *** reach_satori joined [23:30] *** wamba joined [23:33] *** Altai-man_ joined [23:36] *** kensanata left [23:36] *** sena_kun left [23:46] *** lucasb left