[00:09] *** mowcat left [00:14] *** mowcat joined [00:17] *** pmurias left [00:28] *** dogbert17 left [00:28] *** dogbert17 joined [00:30] *** hungrydonkey joined [00:50] *** ZZZzz left [00:55] *** Doc_Holliwood left [00:56] *** titsuki left [00:59] Is it possible to pull two values out of a hash at once? I'm currently pulling one out with: @data» . Is there some way to do this without needing to use @data twice? [01:00] oh [01:00] I just figured it out. Just do @data» [01:06] *** mowcat left [01:08] *** mowcat joined [01:09] *** kktt007 joined [01:12] *** daxim left [01:12] *** mowcat left [01:14] *** mowcat joined [01:17] *** mowcat left [01:19] *** daxim joined [01:19] *** mowcat joined [01:24] *** mowcat left [01:27] *** mowcat joined [01:29] *** mowcat left [01:32] *** mowcat joined [01:34] *** sena_kun joined [01:35] rypervenche: don’t you love how nicely slices are implemented? :-) [01:35] *** Altai-man_ left [01:38] Although it's returning an array of arrays and I'd like it to be an array of strings. I'll have to figure out how to change it. [01:43] *** unicodable6 joined [01:43] *** tellable6 joined [01:44] *** evalable6 joined [01:44] *** linkable6 left [01:46] *** linkable6 joined [01:49] how are you making it? It should provide a list of the hash values [01:50] m: my %hash = a => 1, b => 2, c => 3; say %hash.WHAT; say %hash[0].WHAT [01:50] rakudo-moar 8c995febd: OUTPUT: «(List)␤(Int)␤» [01:57] No, I think it's normal. I'm doing this from an array of hashes. [01:57] I guess I'll have to do something like two for loops to change the inner arrays into strings. [02:05] Don’t forget about the hyper operator, it can be useful at times for that [02:06] m: say %hash».Str [02:06] rakudo-moar 8c995febd: OUTPUT: «5===SORRY!5=== Error while compiling ␤Variable '%hash' is not declared. Did you mean any of these?␤ &hash␤ Hash␤␤at :1␤------> 3say 7⏏5%hash».Str␤» [02:06] err [02:06] m: my %hash = a => 1, b => 2, c => 3; say %hash».Str [02:06] rakudo-moar 8c995febd: OUTPUT: «(1 2 3)␤» [02:06] m: my %hash = %( :date("2020-02-28"), :day-of-week("Tue") ); my @data = %hash xx 3; say @data>>; [02:06] rakudo-moar 8c995febd: OUTPUT: «((2020-02-28 Tue) (2020-02-28 Tue) (2020-02-28 Tue))␤» [02:07] I'd like to make "2020-02-28 Tue" a string, and therefore have a list of those strings. [02:07] aaaaah you want to combing them [02:08] m: my %hash = %( :date("2020-02-28"), :day-of-week("Tue") ); my @data = %hash xx 3; say @data.map(*..join: ‘ ‘); [02:08] rakudo-moar 8c995febd: OUTPUT: «5===SORRY!5=== Error while compiling ␤Unable to parse expression in curly single quotes; couldn't find final "’" (corresponding starter was at line 1)␤at :1␤------> 3ata.map(*..join: ‘ ‘);7⏏5␤ …» [02:08] ahm [02:08] m: my %hash = %( :date("2020-02-28"), :day-of-week("Tue") ); my @data = %hash xx 3; say @data.map(*..join: ' '); [02:09] rakudo-moar 8c995febd: OUTPUT: «(2020-02-28 Tue 2020-02-28 Tue 2020-02-28 Tue)␤» [02:09] I may be doing this all wrong, but yeah. Trying to sort by date and also have the day-of-week available for printing in sorted order. [02:09] Ahhhh, good ol' map always doing what I need. [02:11] I don’t know the whole of what you’re doing, but you can sort on just a key. [02:11] m: my @list = %(:4a, :1b), %(:1a, :6b), %(:3a, :9b), %(:0a, :5b); say @list.sort(*) [02:11] rakudo-moar 8c995febd: OUTPUT: «({a => 0, b => 5} {a => 1, b => 6} {a => 3, b => 9} {a => 4, b => 1})␤» [02:13] *** ufobat_ joined [02:14] I'm trying to count how many of each date and then print the date and day-of-week along with that number. I was thinking of throwing that string in a bag and then maniulating the string afterward to get the right order of text. [02:14] s/that number/the count/ [02:17] *** ufobat left [02:18] *** Maylay left [02:24] *** molaf left [02:25] *** titsuki joined [02:35] *** cooper left [02:37] *** cooper joined [02:37] *** molaf joined [02:42] *** wbn_ is now known as wbn [02:43] *** wbn left [02:43] *** wbn joined [02:45] *** Maylay joined [03:00] guifa: Got it working. Thanks a bunch. That was useful information. [03:15] *** mowcat left [03:17] *** mowcat joined [03:19] *** raven__ joined [03:19] *** mowcat left [03:22] *** darkstardev13 left [03:33] *** Altai-man_ joined [03:35] *** cpan-raku left [03:35] *** cpan-raku joined [03:35] *** cpan-raku left [03:35] *** cpan-raku joined [03:36] *** sena_kun left [04:06] *** gabiruh left [04:33] *** kktt007 left [04:40] *** titsuki left [04:50] *** lostinfog left [05:07] *** gabiruh joined [05:33] *** molaf left [05:34] *** sena_kun joined [05:35] *** Altai-man_ left [05:47] *** rindolf joined [05:52] *** cognomin_ joined [05:53] *** aborazmeh left [05:55] *** cognominal left [06:06] *** jmerelo joined [06:10] *** Doc_Holliwood joined [06:19] *** xelxebar left [06:19] *** xelxebar joined [06:34] *** sauvin joined [06:34] *** sauvin left [06:38] *** sauvin joined [06:51] *** [Sno] left [06:55] *** Sgeo left [06:55] *** Sgeo joined [07:02] *** NODE left [07:04] *** NODE joined [07:16] *** Itaipu_ joined [07:17] *** Itaipu left [07:19] *** Doc_Holliwood left [07:21] *** Itaipu_ left [07:22] *** orinthe joined [07:24] *** Itaipu joined [07:26] *** a3f left [07:26] *** a3f joined [07:33] *** [Sno] joined [07:33] *** Altai-man_ joined [07:34] *** Itaipu_ joined [07:36] *** sena_kun left [07:36] *** Itaipu left [07:39] *** kensanata joined [07:44] *** jmerelo left [08:06] *** NODE left [08:08] *** NODE joined [08:19] *** wamba joined [08:34] *** zostay left [08:34] *** zostay joined [08:35] *** kawaii left [08:35] *** mrsolo left [08:36] *** jhill left [08:37] *** mrsolo joined [08:37] *** kawaii joined [08:37] *** NODE left [08:38] *** jhill joined [08:39] *** NODE joined [08:40] *** jmerelo joined [08:48] *** NODE left [08:54] *** domidumont joined [09:01] *** wamba left [09:01] *** NODE joined [09:02] *** domidumont left [09:05] *** Doc_Holliwood joined [09:06] *** domidumont joined [09:06] *** reach_satori left [09:07] *** dakkar joined [09:10] *** domidumont1 joined [09:14] *** domidumont left [09:34] *** sena_kun joined [09:35] *** Altai-man_ left [09:40] *** domidumont1 left [09:40] *** domidumont joined [09:42] *** pecastro joined [09:42] *** domidumont left [09:43] *** domidumont joined [09:49] *** Doc_Holliwood left [09:52] *** Black_Ribbon left [09:59] *** reach_satori joined [10:07] New module released to CPAN! Syslog::Parse (0.0.1) by 03JMERELO [10:32] *** Doc_Holliwood joined [10:46] *** kensanata left [11:02] *** domidumont left [11:03] *** daxim left [11:09] *** daxim joined [11:16] *** mowcat joined [11:30] *** Doc_Holliwood left [11:33] *** Altai-man_ joined [11:35] *** sena_kun left [11:39] *** Doc_Holliwood joined [11:42] *** NODE left [11:44] *** NODE joined [11:51] *** pmf[m] left [11:51] *** awwaiid left [11:53] *** awwaiid joined [11:53] *** pmf[m] joined [12:05] *** hungryd21 joined [12:06] *** hungrydonkey left [12:06] *** hungryd21 left [12:06] *** hungrydonkey joined [12:07] *** hungrydonkey left [12:07] *** titsuki joined [12:16] *** matiaslina left [12:17] *** matiaslina joined [12:27] *** Doc_Holliwood left [12:29] *** wamba joined [12:33] *** Itaipu_ left [12:37] *** kensanata joined [12:46] first end to end execution! with a lot of stuff not implemented yet... https://www.irccloud.com/pastebin/qa7CbOM3/ [12:46] *** cpan-raku left [12:46] *** cpan-raku joined [12:46] *** cpan-raku left [12:46] *** cpan-raku joined [12:48] *** NODE left [12:51] Quick question. Constants in Raku code: SNAKE_CASE or KEBAB-CASE? [12:58] *** wamba left [12:58] *** Doc_Holliwood joined [13:02] *** NODE joined [13:09] *** wamba joined [13:10] I prefer underscores simply because I'm already holding shift anyway [13:10] but it's completely up to you :) [13:26] New module released to CPAN! Syslog::Parse (0.0.2) by 03JMERELO [13:29] m: constant FOO-BAR-2 = ':(' [13:29] rakudo-moar 8c995febd: OUTPUT: «5===SORRY!5=== Error while compiling ␤Missing initializer on constant declaration␤at :1␤------> 3constant FOO-BAR7⏏5-2 = ':('␤» [13:29] *** lucasb joined [13:32] m: my \a=1; [13:32] rakudo-moar 8c995febd: ( no output ) [13:32] m: my \a-1=1; [13:32] rakudo-moar 8c995febd: OUTPUT: «5===SORRY!5=== Error while compiling ␤Term definition requires an initializer␤at :1␤------> 3my \a7⏏5-1=1;␤» [13:32] m: my $a-1=1; [13:32] rakudo-moar 8c995febd: OUTPUT: «Use of uninitialized value of type Any in numeric context␤ in block at line 1␤Cannot modify an immutable Int (-1)␤ in block at line 1␤␤» [13:33] jjatria: two interesting things here! ① the syntax for identifiers is not what we were expecting ② sigil-less and sigilled identifiers produce different error messages [13:34] *** sena_kun joined [13:34] Not what we were expecting indeed! [13:36] *** Altai-man_ left [13:36] This is so $foo-1 is actually the - operator [13:37] *** Doc_Holliwood left [13:37] Yeah, I thought that might be the case. In a way it makes my life easier, since I have fewer decisions to make :) [13:37] *** _jrjsmrtn joined [13:38] *** __jrjsmrtn__ left [13:41] *** kensanata left [13:44] *** reach_satori left [13:48] *** NODE left [13:49] *** NODE joined [14:14] *** MasterDuke left [14:19] Now it's getting the properties... :) https://www.irccloud.com/pastebin/CovYBkUl/ [14:21] *** jmerelo left [14:36] *** Doc_Holliwood joined [14:39] *** pmurias joined [14:41] https://www.irccloud.com/pastebin/FAxmIRji/ [14:44] I still need to implement the quantifiers... [14:45] *** aborazmeh joined [14:45] *** aborazmeh left [14:45] *** aborazmeh joined [14:45] *** wamba left [14:48] *** veesh_ joined [14:49] *** veesh left [14:49] *** veesh_ is now known as veesh [14:56] *** kensanata joined [15:01] *** wamba joined [15:01] *** veesh left [15:01] *** veesh_ joined [15:02] *** veesh_ is now known as veesh [15:05] *** aborazmeh left [15:11] *** pmurias left [15:31] *** wamba left [15:32] *** wamba joined [15:33] *** Altai-man_ joined [15:35] *** sena_kun left [15:36] *** pmurias joined [15:47] *** molaf joined [15:56] *** ctilmes joined [16:00] *** wamba left [16:03] *** reach_satori joined [16:04] *** wamba joined [16:08] *** pmurias left [16:40] *** Doc_Holliwood left [16:48] *** patrickb joined [17:00] *** titsuki left [17:04] one more end to end example: https://gist.github.com/FCO/43a8f3b9d5aea069c3dfd7c16f835094 [17:21] *** Kaiepi left [17:21] *** Kaiepi joined [17:27] *** dakkar left [17:31] *** Kaiepi left [17:32] *** Kaiepi joined [17:34] *** sena_kun joined [17:34] *** ctilmes left [17:35] *** Altai-man_ left [17:36] *** domidumont joined [17:39] *** ctilmes joined [17:42] *** pecastro left [17:45] *** wamba left [17:45] m: sub a(:$x, :$y) { say $x, $y }; sub b(:$z, :$r) { say $z, $r }; sub c(|e) { a(|(e:kv.Hash)); b(|(e:kv.Hash)); }; c(:x, :y, :z) [17:45] rakudo-moar 8c995febd: OUTPUT: «TrueTrue␤True(Any)␤» [17:45] isn't `|(e:kv.Hash)` needlessly verbose? [17:46] *** MrETH joined [17:46] *** Itaipu joined [17:46] *** MrETH left [17:46] *** [Sno] left [17:47] Voldenet: hi! have you seen my new examples working? [17:51] m: sub a(:$x, :$y, *%_) { say $x, $y }; sub b(:$z, :$r, *%_) { say $z, $r }; sub c(|e) { a(|e); b(|e) }; c(:x, :y, :z) # Voldenet [17:51] rakudo-moar 8c995febd: OUTPUT: «TrueTrue␤True(Any)␤» [17:51] Voldenet: in other words, let subs a and b eat all extra nameds [17:52] Voldenet: if this is about using subs in a class, then maybe making them private methods would be clearer ? [17:59] that looks a lot better, thanks [18:00] and no, they're not methods in the class, it's a whole mess of a script at the moment :D [18:00] I wonder… [18:00] m: sub a(:$x, :$y, |) { say $x, $y }; sub b(:$z, :$r, |) { say $z, $r }; sub c(|e) { a(|e); b(|e) }; c(:x, :y, :z) [18:00] rakudo-moar 8c995febd: OUTPUT: «TrueTrue␤True(Any)␤» [18:00] ha, obviously [18:00] that would also eat additional positionals, which you probably don't want ? [18:02] I don't mind - all subs take named arguments [18:03] which means you would like to be informed at compilation that you mistyped ":$a" by forgetting the ":" ? [18:03] .oO( been there, done that :-) [18:05] *** kensanata left [18:08] I shouldn't have written so many arguments to subs in the first place and should've used a few configuration classes in the first place [18:08] *** domidumont left [18:08] but it's too late, I like quick and dirty tools because they're quick to write and dirty to debug [18:09] well, I hope you have multi-letter variable names in there somewhere :-) [18:15] SmokeMachine: I have now, but the question - will it work on any supplies at the end? Widely loved csv/tsv/windows events logs await [18:19] (just asking - it's possible to convert most of things into json anyway) [18:19] Voldenet: it will be possible to write a interface to interpret your Supply data... [18:19] Cool and good [18:20] Voldenet: it will convert anything to raku struct [18:29] *** Doc_Holliwood joined [18:40] *** chloekek joined [18:43] *** ctilmes left [18:48] *** MasterDuke joined [18:48] *** rindolf left [18:52] *** wamba joined [18:55] *** rindolf joined [19:09] *** pecastro joined [19:19] *** vike left [19:21] ¦ problem-solving: lizmat assigned to jnthn Issue Should $foo ~~ Failure mark Failure in $foo as handled? https://github.com/Raku/problem-solving/issues/161 [19:25] *** reach_satori_ joined [19:25] *** reach_satori left [19:25] *** vike joined [19:25] *** sauvin left [19:32] *** kent\n left [19:33] *** Altai-man_ joined [19:34] *** kent\n joined [19:35] *** sena_kun left [19:38] *** withp joined [19:41] how would one declare a statically typed constant Map from Regexes onto Function handles (all of which take the same args and have the same return type) ? [19:42] *** wamba left [19:47] ¦ ecosystem: 08190b3894 | (Jonathan Stowe)++ | META.list [19:47] ¦ ecosystem: Renamed Perl6-Noise-Gang [19:47] ¦ ecosystem: review: https://github.com/Raku/ecosystem/commit/08190b3894 [20:01] *** Kaiepi left [20:01] *** Kaiepi joined [20:04] *** cfa joined [20:11] ¦ problem-solving: lizmat assigned to jnthn Issue Allow single-element Map/Hash to be treated as a Pair https://github.com/Raku/problem-solving/issues/162 [20:13] *** cognominal joined [20:14] A new Rakudo Star! https://dist.tyil.nl/raku/rakudo-star/ [20:14] is luca ferrari in the house? [20:15] liz, just so you know, I am Herbert Bollermann [20:15] aaah... ok :-) [20:16] tyil++ [20:16] ^_^ [20:16] Is Luca Ferrari in the house? [20:16] *** cognomin_ left [20:16] That name is just as made up as Herbert Bollermann :D [20:17] hmmm... https://raku.org/downloads needs some adjustments [20:17] .oO( o what a tangled web we weave ) [20:19] *** wamba joined [20:23] *** grayrider joined [20:35] *** wamba left [20:37] Ah nevermind my trouble was apparently in thinking that s/STUFF// was an object of type Regex, which it does not appear to be. REPL is a wonderful thing. [20:38] <[Coke]> I just wrote sub foo ($args) = { ... }; and it took me 2 minutes to realize what the bug was. [20:43] m: sub foo ($args) = { ... } [20:43] rakudo-moar 8c995febd: OUTPUT: «5===SORRY!5=== Error while compiling ␤Missing block␤at :1␤------> 3sub foo ($args)7⏏5 = { ... }␤ expecting any of:␤ new name to be defined␤» [20:43] hmmm... error looks pretty awesome to me :-) [20:48] *** [Sno] joined [21:13] new example using the new & operator https://www.irccloud.com/pastebin/PniCkltA/ [21:19] *** rindolf left [21:23] <[Coke]> lizmat: oh, yes, totally my fault, not raku's [21:24] ¦ problem-solving: lizmat assigned to jnthn Issue Implement Adverb::Eject in core https://github.com/Raku/problem-solving/issues/163 [21:34] *** sena_kun joined [21:35] *** Altai-man_ left [21:45] *** pmurias joined [22:19] *** lucasb left [22:21] *** patrickb left [22:46] *** Black_Ribbon joined [22:55] *** aborazmeh joined [22:55] *** aborazmeh left [22:55] *** aborazmeh joined [23:06] *** Doc_Holliwood left [23:12] hi, folk! [23:14] anyone here use homebrew for osx? if so do you recommend it to an osx noob? [23:14] New module released to CPAN! Email::MIME (2.0.2) by 03RBT [23:16] *** aborazmeh left [23:17] *** pmurias left [23:21] *** MasterDuke left [23:27] <[Coke]> I've been happy with macports, if you want a second opinion. [23:28] <[Coke]> but I know many folks who are happy homebrew users (including many p5ers) [23:30] *** pecastro left [23:33] *** Altai-man_ joined [23:35] *** sena_kun left [23:48] *** aborazmeh joined [23:48] *** aborazmeh left [23:48] *** aborazmeh joined [23:48] fwiw, i also like macports but have nothing against homebrew [23:49] also, afternoon all [23:51] supposedly with homebrew i can get the gnu tools with same behavior as on linux as opposed to rhe bsd-like in normal osx [23:52] tbrowder: coretools, gmake etc? [23:52] that's what i think they advertise [23:54] i'll check more closely. i got the advert for them when i was looking foe emacs on mac... [23:55] my son is giving me an old mac mini i plan to use with a large screen tv, and do a little rakuing with it on the side ;-) [23:56] tbrowder: if memory serves me right, homebrew has much lesser number of ports. [23:56] *** titsuki joined [23:57] ah, that may be a deal breaker... [23:57] the supposed advantage of homebrew over macports is that it leverages a lot of system-installed libraries [23:57] whereas macports tends to build its own, which in some cases are duplicates [23:57] the advantage is that everything is consistent and sandboxed [23:59] ok, thnx, i guess it will be a new learning experience. so macports are from bsd people?