[00:08] *** normanrockwell joined [00:08] *** normanrockwell left [00:41] *** sena_kun left [00:58] *** sena_kun joined [00:58] *** uzl joined [00:58] .seen jmerelo [00:58] uzl, I saw jmerelo 2020-01-19T20:05:35Z in #raku: * jmerelo goes AFK to dinner. See ya! [00:59] .tell jmerelo Hi, JJ. I've sent you an email related to your Raku Advent article about containerizing Raku modules. [00:59] uzl, I'll pass your message to jmerelo [01:00] *** uzl left [01:13] *** sarna left [01:21] *** sarna joined [01:26] *** hungrydonkey joined [02:25] *** gabiruh joined [02:28] *** Poohman left [02:29] *** hungrydonkey left [02:30] *** hungrydonkey joined [02:42] *** sena_kun left [02:42] *** Tirifto left [02:55] *** sena_kun joined [03:06] *** xh-78 left [03:35] *** gabiruh left [04:35] *** Doc_Holliwood joined [04:35] *** Doc_Holliwould joined [04:39] *** cpan-raku left [04:40] *** cpan-raku joined [04:40] *** cpan-raku left [04:40] *** cpan-raku joined [04:43] *** sena_kun left [04:54] *** atroxaper joined [04:56] *** sena_kun joined [05:01] .tell jnthn Hi. About my yesterday issue with Cro on mac. The problem was because of the OpenSSL library. I described it here: https://stackoverflow.com/questions/59817157/why-raku-crashes-with-abort-trap-6-while-using-cro-on-a-macos-catalina [05:01] atroxaper, I'll pass your message to jnthn [05:39] *** xinming_ left [05:40] *** xinming_ joined [06:06] *** hungryd76 joined [06:09] *** hungrydonkey left [06:16] *** jmerelo joined [06:42] *** sena_kun left [06:48] *** MasterDuke left [06:49] *** domidumont joined [06:50] *** kensanata joined [06:50] *** aluaces joined [06:54] *** domidumont left [06:55] *** sena_kun joined [07:03] ¦ doc: a65db64a81 | (JJ Merelo)++ | doc/Language/operators.pod6 [07:03] ¦ doc: Second example from #3177 added [07:03] ¦ doc: review: https://github.com/Raku/doc/commit/a65db64a81 [07:04] *** stoned75 left [07:23] *** jmerelo left [07:34] *** domidumont joined [07:35] *** Doc_Holliwood left [07:35] *** Doc_Holliwould left [07:35] *** rindolf joined [07:39] *** abraxxa joined [07:40] *** atroxaper left [07:58] *** abraxxa left [07:59] *** abraxxa joined [08:08] *** MasterDuke joined [08:42] *** sena_kun left [08:58] *** Kaiepi left [08:58] *** sena_kun joined [09:00] *** leah2 left [09:03] *** leah2 joined [09:04] *** kensanata left [09:21] *** Guest39290 left [09:21] *** libertas left [09:40] *** abraxxa left [09:40] *** abraxxa joined [09:43] *** atroxape_ joined [09:53] *** Kaiepi joined [10:13] *** wamba joined [10:20] *** atroxape_ is now known as atroxaper [10:25] *** wamba left [10:32] *** wamba joined [10:37] *** Doc_Holliwould joined [10:37] *** Doc_Holliwood joined [10:42] *** sena_kun left [10:53] *** wamba left [10:54] *** libertas joined [10:58] *** sena_kun joined [11:39] *** hungryd76 left [11:40] *** atroxaper left [11:41] *** hungrydonkey joined [11:47] *** normanrockwell joined [11:51] *** Tirifto joined [12:07] *** normanrockwell left [12:20] *** kensanata joined [12:28] *** NODE left [12:29] *** gabiruh joined [12:29] *** NODE joined [12:30] *** NODE left [12:32] *** NODE joined [12:33] *** NODE left [12:34] *** veesh_ joined [12:35] *** gabiruh left [12:35] *** NODE joined [12:36] *** veesh left [12:36] *** veesh_ is now known as veesh [12:42] *** sena_kun left [12:46] *** gabiruh joined [12:57] *** sena_kun joined [13:10] *** mensvaga left [13:17] *** mensvaga joined [13:19] *** NODE left [13:21] *** NODE joined [13:25] *** daemon joined [13:25] *** wamba joined [13:30] *** lucasb joined [13:34] *** kensanata left [13:37] *** veesh_ joined [13:38] *** veesh left [13:39] *** veesh_ is now known as veesh [13:48] *** Doc_Holliwould left [14:06] m: say (10|-10) + (90|-90) ~~ 100 [14:06] rakudo-moar 06ae7d614: OUTPUT: «True␤» [14:07] is there a way to find out which values the junctions collapes into? here 10 and 90 [14:10] m: say (10|-10) + (90|-90) [14:10] rakudo-moar 06ae7d614: OUTPUT: «any(any(100, -80), any(80, -100))␤» [14:10] hey jnthn, you have a message: https://gist.github.com/3d65eb97ec49811911e4e6b3a3ea8bc5 [14:21] *** scimon joined [14:21] Hi [14:21] *** mensvaga left [14:26] *** mensvaga joined [14:32] *** atroxaper joined [14:41] *** sena_kun left [14:41] *** renormalist left [14:41] *** Tirifto left [14:50] *** kensanata joined [14:56] *** kensanata left [14:56] *** sena_kun joined [14:57] *** kensanata joined [15:14] Doc_Holliwood: I did some reading on that question a while ago (because it pops up every now and then). See https://github.com/taboege/raku-Junction-Guts for how to do it and hopefully the appropriate amount of warnings. I don't know how robust the code is, anyway, and never actually used it so far :P [15:17] *** xinming_ left [15:17] *** xinming_ joined [15:24] Something like a collapse operator would be useful methinks [15:24] So that my $a = 10|-10; my $b = 90|-90; say $a + $b Ψ 100; ok $a == 10; [15:24] Doc_Holliwood: what would that be ? [15:24] ^^ [15:25] m: my $a = 10|-10; my $b = 90|-90; say $a + $b [15:25] rakudo-moar 06ae7d614: OUTPUT: «any(any(100, -80), any(80, -100))␤» [15:26] note that by the time the + is done, there is no sign of + anymore in the junctions [15:26] so? [15:26] so how would it know what $a was ? [15:27] if Ψ has a lower precedence than + [15:27] I guess the question is: how would you express Ψ using subs ? [15:28] what do mean, no sign of +? [15:28] m: my $a = 10|-10; my $b = 90|-90; say $a + $b; say $a [15:28] rakudo-moar 06ae7d614: OUTPUT: «any(any(100, -80), any(80, -100))␤any(10, -10)␤» [15:28] $a is unchanged [15:29] i mean i can say [15:29] my $a = 10|-10; my $b = 90|-90; say $a + $b ~~ 100 [15:29] Doc_Holliwood, rakudo-moar 06ae7d614: OUTPUT: «True␤» [15:30] so, some codepath "knows" that 10 + 90 matches 100 [15:30] i want that information [15:34] Doc_Holliwood: it's stored in the junction internals. You can get it using nqp, but not otherwise to my knowledge, because junctions are not intended to expose their state. [15:37] *** atroxaper left [15:38] oh, but if you want to combine junctions by +, you create a new junction that is matched with 100. The expression `$a + $b` in `$a + $b Ψ 100` has no ties to $a nor $b anymore. Collapsing junctions according to a function on them would be much harder to achieve than just listing the states of a Junction in Rakudo. [15:38] but I think Damian Conway once wrote a quantum computation-lookalike module which does this. [15:42] Doc_Holliwood: the talk he showed this in is very nice if you haven't seen it. The code has also been made public somehow: https://www.reddit.com/r/perl6/comments/6prdkv/quantumcomputing/ [15:45] But there the superposition part of Junctions is reimplemented in a way that allows to keep track of the ingredients to various expressions, so that collapsing one value can propagate the observation to the ingredients. [15:53] *** scimon left [15:53] *** scimon joined [16:07] *** Doc_Holliwood left [16:19] *** hungrydonkey left [16:19] *** Kaeipi joined [16:23] *** Kaiepi left [16:24] *** locsmif joined [16:39] *** Doc_Holliwood joined [16:40] *** domidumont left [16:41] *** sena_kun left [16:45] *** Kaeipi left [16:45] *** hacktor left [16:48] c: releases say (^3).pick [16:48] AlexDaniel, https://gist.github.com/5289eb2c3dbd6aff5fe4ac9f9420bbaf [16:48] melezhik: ↑ [16:48] *** Kaiepi joined [16:50] tobs: Good info. Tx [16:54] *** kensanata left [16:56] *** sena_kun joined [17:03] AlexDaniel: were monthly releases something policy-wise or just the practice in the past? [17:03] El_Che: it was just the practice [17:03] if so, did rakudo moved to the "release when ready" mode? [17:03] (both are fine with me) [17:03] ok [17:04] AlexDaniel: is your successor already in place ? [17:04] yes, very much so [17:04] good to hear [17:05] sena_kun is doing a great job, btw [17:07] *** mahmudov joined [17:08] sena_kun++ [17:08] m: my @a = Array.new(:1shape); @a[$[0]] = $[1] for (0..2 [Z] 'a'..'c'); say @a [17:08] rakudo-moar 06ae7d614: OUTPUT: «5===SORRY!5=== Error while compiling ␤Name must begin with alphabetic character␤at :1␤------> 3my @a = Array.new(:1shape); @a[$7⏏5[0]] = $[1] for (0..2 [Z] 'a'..'c'); s␤ expecting any of:␤ infix␤ infi…» [17:08] *** cpan-raku left [17:09] m: my @a = Array.new(:1shape); @a[0] = 'a'; @a[1] = 'b'; say @a [17:09] rakudo-moar 06ae7d614: OUTPUT: «[a b]␤» [17:09] *** cpan-raku joined [17:09] *** cpan-raku left [17:09] *** cpan-raku joined [17:09] m: my @a[1]; @a[0] = 'a'; @a[1] = 'b'; say @a [17:09] rakudo-moar 06ae7d614: OUTPUT: «Index 1 for dimension 1 out of range (must be 0..0)␤ in block at line 1␤␤» [17:10] Aside from post-circumfix [], is there a similar syntax to Array.new() to create fixed-sized arrays? [17:12] uzl[m]: Yes, pass the shape named arg [17:12] You got the Array.new(:1shape) bit right, but then threw away the array by copying out of it into @a [17:13] Use := instead of = [17:13] That and one other odd char somewhere in the cdoe [17:16] *** scimon left [17:17] m: my @a := Array.new(:1shape); @a[0] = 'a'; @a[1] = 'b'; say @a [17:17] rakudo-moar 06ae7d614: OUTPUT: «Index 1 for dimension 1 out of range (must be 0..0)␤ in block at line 1␤␤» [17:18] Thanks, jnthn ! [17:18] *** domidumont joined [17:23] *** locsmif left [17:32] *** Kaiepi left [17:33] *** Kaiepi joined [17:38] *** xinming_ left [17:39] *** xinming_ joined [17:48] *** xinming_ left [17:49] *** xinming_ joined [17:58] *** xinming_ left [17:59] *** xinming_ joined [18:07] *** chloekek joined [18:41] *** sena_kun left [18:53] *** wildtrees joined [18:57] *** sena_kun joined [19:03] and another Rakudo Weekly News hits the Net: https://rakudoweekly.blog/2020/01/20/2020-03-traittraced/ [19:15] *** wamba left [19:27] *** sauvin left [19:29] thx, lizmat [19:39] *** domidumont left [19:46] *** sena_kun left [19:50] *** veesh_ joined [19:51] *** gabiruh left [19:52] *** veesh left [19:52] *** veesh_ is now known as veesh [19:56] ¦ doc: dumarchie++ created pull request #3178: Use pod formatting [19:56] ¦ doc: review: https://github.com/Raku/doc/pull/3178 [20:04] *** chloekek left [20:08] *** gabiruh joined [20:15] *** wamba joined [20:25] BTW, we'll bring some new Raku stickers to FOSDEM. Make sure to come and get some! :-D [20:25] (picture of them in lizmat++'s Rakudo Weekly) [20:26] reification-target [20:26] https://rakudoweekly.files.wordpress.com/2020/01/s_yui3sx.jpeg [20:29] lizmat: why are we using #rakulang when we can use just #raku? [20:29] python folks don't use #pythonlang, right? [20:30] because you don't have that many snake lovers on Twitter, but you do have a lot of pottery lovers on Twitter [20:31] and since we've been accused of squatting on a name for many years, it seemed wrong to me to start squatting on #raku on Twitter [20:31] but people will use #raku anyway [20:31] so why make it more difficult [20:32] there are so few tweets about pottery [20:33] and even those who “accidentally” use #raku already account for like more than half [20:33] or maybe around half [20:34] and then we gave up r/raku… which had the last pottery post 1 year [20:34] 1 year ago* [20:34] https://twitter.com/search?q=%23raku&src=typd&f=live [20:35] I'd say that's not dead [20:35] it's not dead [20:36] in any case, I think we've had this discussion a few months ago... [20:37] https://twitter.com/martinoneill19/status/1218499402832269312 hah :) [20:38] it's just hilarious, we're going through all this trouble to fix the name only to do the wrong thing again and come up with social tags that just won't work [20:39] I guess it would've made sense if we were using rakulang github org and rakulang.org, but we don't [20:40] I mean… I guess it doesn't matter, and everyone will use #raku anyway [20:41] AlexDaniel: if you think so, why bother reopening the discussion if time will result in what you prefer? [20:41] still though I don't know why we're making it harder for ourselves so that we have to go and police people to use a different tag [20:42] https://github.com/Raku/problem-solving/blob/master/solutions/language/Path-to-Raku.md#social-media [20:42] El_Che: it's just gonna be messy, that's it [20:42] because we decided? [20:43] while raku is shorter, I like that rakulang is specific for the language [20:43] so you don't get mixed content [20:43] and no, python is an other case [20:44] it was a major language before twitter arrived [20:44] I don't see the document as policing (users will do what they like), but it's good to have a media strategy for the project [20:45] if it fails it can be amended, but I think it's way to soon for that [20:46] (I think the #rakulang thing is going as well as it could be expected) [20:46] I have three thoughts on the matter: 1) it's good to have and promote an option that will be unambiguous, 2) people can be context aware and "raku" is not ambiguous in other places like it is on twitter, 3) it's not the end of the world when it's used on twitter, since it's not easy to confuse the content of one for the other [20:47] [21:37:06] https://twitter.com/martinoneill19/status/1218499402832269312 hah :) [20:48] :-) [20:48] with the exception of that one :) [20:48] it looks like genitals to me :) [20:49] AlexDaniel: If there's a place (e.g. an issue in the problem-solving repo) where tags are discussed and at the end decided upon, I'd love to hear about it. :) [20:49] sjn: lizmat linked to it a few paragraphs above [20:49] (messages) [20:50] ah, didn't see that [20:50] in that case, I won't return those stickers quite yet :) [20:50] it was a small part of the renaming discussion [20:51] mm [20:51] what's wrong with the stickers? [20:51] they say #rakulang [20:51] which was just put into question [20:51] El_Che: they're fine. One sticker says #rakulang [20:51] they would be fine either way, but #rakulang is prefered [20:51] the others say "Raku" [20:52] * lizmat goes afk& [20:56] *** rindolf left [20:57] *** patrickb joined [21:01] sjn: I think your confused. It's only about hthe hastag, not the name itself [21:05] *** rindolf joined [21:12] m: say x⁽1+3⁾ [21:12] rakudo-moar 06ae7d614: OUTPUT: «5===SORRY!5=== Error while compiling ␤Bogus postfix␤at :1␤------> 3say x7⏏5⁽1+3⁾␤ expecting any of:␤ infix␤ infix stopper␤ postfix␤ statement end␤ statement modifier␤ …» [21:13] m: my $x=10; say $x⁽1+3⁾ [21:13] rakudo-moar 06ae7d614: OUTPUT: «5===SORRY!5=== Error while compiling ␤Bogus postfix␤at :1␤------> 3my $x=10; say $x7⏏5⁽1+3⁾␤ expecting any of:␤ infix␤ infix stopper␤ postfix␤ statement end␤ statement mod…» [21:21] up [21:28] So I managed to get my password generator script working the way I wanted. I have no idea of I used any really bad practices. I'm sure there are better ways to do what I did, but yeah. I'd appreciate any feedback on how I can make this better or if there are better syntaxes I could use. Thanks. https://gist.github.com/rypervenche/a4604ebba04b66a1c1f1f3a6bf273b6d [21:45] *** guifa2 joined [21:47] *** mahmudov left [21:56] rypervenche: You really, really want a minimum lenght > 4. Make it 8. Or better 12. [21:57] You can't really use gather/take for your loop, because your exit condition is the size of the array. But `gather`ed arrays don't get update until the gather loop is done. [21:58] this doesnt work at all [21:58] m: say my @a = gather until @a.elems > 5 { take 1 } [21:58] rakudo-moar 06ae7d614: OUTPUT: «5===SORRY!5=== Error while compiling ␤Cannot use variable @a in declaration to initialize itself␤at :1␤------> 3say my @a = gather until @7⏏5a.elems > 5 { take 1 }␤ expecting any of:␤ term␤» [21:58] m: say my @a = gather loop { take 1; last if @a.elems > 5 } [21:59] this is an endless loop [21:59] *** rindolf left [21:59] rakudo-moar 06ae7d614: OUTPUT: «(timeout)» [21:59] and this is just as ugly, since it requires a counter [21:59] m: my $i = 0; say my @a = gather until $i == 5 { take $i++; } [21:59] rakudo-moar 06ae7d614: OUTPUT: «[0 1 2 3 4]␤» [22:00] so, for/push is fine here, methinks [22:06] *** guifa2 left [22:07] *** guifa2 joined [22:11] *** aluaces left [22:19] lizmat: Are you using CPAN for module updates on weekly? I've noticed some of my updates / new modules haven't landed on it and wanted to make sure they'd get the shout out if possible (but mine are only listed on ecosystem on github) [22:25] *** wamba left [22:26] *** wamba joined [22:32] *** Doc_Holliwould joined [22:33] *** maggotbrain left [22:35] *** maggotbrain joined [22:36] *** Doc_Holliwood left [22:43] ¦ ecosystem: alabamenhu++ created pull request #479: Add Carp to the ecosystem [22:43] ¦ ecosystem: review: https://github.com/Raku/ecosystem/pull/479 [22:45] *** gabiruh left [22:51] ¦ doc: a422997151 | (Richard Hainsworth)++ (committed using GitHub Web editor) | doc/Language/compilation.pod6 [22:51] ¦ doc: formatting errors [22:51] ¦ doc: review: https://github.com/Raku/doc/commit/a422997151 [22:59] AlexDaniel: sorry! Fixed the URL now. Can I get it to review the check or do I need to submit a new PR? [23:00] guifa2: I clicked the button, it should update in a few minutes [23:01] Alright, awesome. And apologies. 'Tis what I get for not double checking everything [23:03] Doc_Holliwould: Thanks. I ran into the infinite loop as well and thought I just might be doing something wrong. [23:18] *** lucasb left [23:38] New module released to CPAN! Sys::HostAddr (0.0.1) by 03JMASLAK [23:48] *** gabiruh joined [23:53] *** wamba left