šŸ¦‹ 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:08 normanrockwell joined, normanrockwell left 00:41 sena_kun left 00:58 sena_kun joined, uzl joined
uzl .seen jmerelo 00:58
tellable6 uzl, I saw jmerelo 2020-01-19T20:05:35Z in #raku: * jmerelo goes AFK to dinner. See ya!
uzl .tell jmerelo Hi, JJ. I've sent you an email related to your Raku Advent article about containerizing Raku modules. 00:59
tellable6 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, Tirifto left 02:55 sena_kun joined 03:06 xh-78 left 03:35 gabiruh left 04:35 Doc_Holliwood joined, Doc_Holliwould joined 04:39 cpan-raku left 04:40 cpan-raku joined, cpan-raku left, cpan-raku joined 04:43 sena_kun left 04:54 atroxaper joined 04:56 sena_kun joined
atroxaper .tell jnthn Hi. About my yesterday issue with Cro on mac. The problem was because of the OpenSSL library. I described it here: stackoverflow.com/questions/598171...s-catalina 05:01
tellable6 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, aluaces joined 06:54 domidumont left 06:55 sena_kun joined
Geth doc: a65db64a81 | (JJ Merelo)++ | doc/Language/operators.pod6
Second example from #3177 added
07:03
07:04 stoned75 left 07:23 jmerelo left 07:34 domidumont joined 07:35 Doc_Holliwood left, Doc_Holliwould left, 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, sena_kun joined 09:00 leah2 left 09:03 leah2 joined 09:04 kensanata left 09:21 Guest39290 left, libertas left 09:40 abraxxa left, 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, 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, NODE joined 12:30 NODE left 12:32 NODE joined 12:33 NODE left 12:34 veesh_ joined 12:35 gabiruh left, NODE joined 12:36 veesh left, 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, 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
Doc_Holliwood m: say (10|-10) + (90|-90) ~~ 100 14:06
camelia True
Doc_Holliwood is there a way to find out which values the junctions collapes into? here 10 and 90 14:07
jnthn m: say (10|-10) + (90|-90) 14:10
camelia any(any(100, -80), any(80, -100))
tellable6 hey jnthn, you have a message: gist.github.com/3d65eb97ec49811911...b3a3ea8bc5
14:21 scimon joined
scimon Hi 14:21
14:21 mensvaga left 14:26 mensvaga joined 14:32 atroxaper joined 14:41 sena_kun left, renormalist left, Tirifto left 14:50 kensanata joined 14:56 kensanata left, sena_kun joined 14:57 kensanata joined
tobs Doc_Holliwood: I did some reading on that question a while ago (because it pops up every now and then). See 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:14
15:17 xinming_ left, xinming_ joined
Doc_Holliwood 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;
lizmat Doc_Holliwood: what would that be ?
Doc_Holliwood ^^
lizmat m: my $a = 10|-10; my $b = 90|-90; say $a + $b 15:25
camelia any(any(100, -80), any(80, -100))
lizmat note that by the time the + is done, there is no sign of + anymore in the junctions 15:26
Doc_Holliwood so?
lizmat so how would it know what $a was ?
if ĪØ has a lower precedence than + 15:27
I guess the question is: how would you express ĪØ using subs ?
Doc_Holliwood what do mean, no sign of +? 15:28
m: my $a = 10|-10; my $b = 90|-90; say $a + $b; say $a
camelia any(any(100, -80), any(80, -100))
any(10, -10)
Doc_Holliwood $a is unchanged
i mean i can say 15:29
my $a = 10|-10; my $b = 90|-90; say $a + $b ~~ 100
evalable6 True
Doc_Holliwood so, some codepath "knows" that 10 + 90 matches 100 15:30
i want that information
tobs 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:34
15:37 atroxaper left
tobs 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.
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: www.reddit.com/r/perl6/comments/6p...computing/ 15:42
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:45
15:53 scimon left, scimon joined 16:07 Doc_Holliwood left 16:19 hungrydonkey left, 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, hacktor left
AlexDaniel c: releases say (^3).pick 16:48
committable6 AlexDaniel, gist.github.com/5289eb2c3dbd6aff5f...9f9420bbaf
AlexDaniel melezhik: ā†‘
16:48 Kaiepi joined
Doc_Holliwood tobs: Good info. Tx 16:50
16:54 kensanata left 16:56 sena_kun joined
El_Che AlexDaniel: were monthly releases something policy-wise or just the practice in the past? 17:03
AlexDaniel El_Che: it was just the practice
El_Che if so, did rakudo moved to the "release when ready" mode?
(both are fine with me)
ok
AlexDaniel: is your successor already in place ? 17:04
AlexDaniel yes, very much so
El_Che good to hear
AlexDaniel sena_kun is doing a great job, btw 17:05
17:07 mahmudov joined
El_Che sena_kun++ 17:08
uzl[m] m: my @a = Array.new(:1shape); @a[$[0]] = $[1] for (0..2 [Z] 'a'..'c'); say @a
camelia 5===SORRY!5=== Error while compiling <tmp>
Name must begin with alphabetic character
at <tmp>: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
uzl[m] m: my @a = Array.new(:1shape); @a[0] = 'a'; @a[1] = 'b'; say @a 17:09
camelia [a b]
17:09 cpan-raku joined, cpan-raku left, cpan-raku joined
uzl[m] m: my @a[1]; @a[0] = 'a'; @a[1] = 'b'; say @a 17:09
camelia Index 1 for dimension 1 out of range (must be 0..0)
in block <unit> at <tmp> line 1
uzl[m] Aside from post-circumfix [], is there a similar syntax to Array.new() to create fixed-sized arrays? 17:10
jnthn 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
Use := instead of = 17:13
That and one other odd char somewhere in the cdoe
17:16 scimon left
uzl[m] m: my @a := Array.new(:1shape); @a[0] = 'a'; @a[1] = 'b'; say @a 17:17
camelia Index 1 for dimension 1 out of range (must be 0..0)
in block <unit> at <tmp> line 1
uzl[m] Thanks, jnthn ! 17:18
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
lizmat and another Rakudo Weekly News hits the Net: rakudoweekly.blog/2020/01/20/2020-...aittraced/ 19:03
19:15 wamba left 19:27 sauvin left
El_Che thx, lizmat 19:29
19:39 domidumont left 19:46 sena_kun left 19:50 veesh_ joined 19:51 gabiruh left 19:52 veesh left, veesh_ is now known as veesh
Geth doc: dumarchie++ created pull request #3178:
Use pod formatting
19:56
20:04 chloekek left 20:08 gabiruh joined 20:15 wamba joined
sjn 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)
lizmat reification-target 20:26
rakudoweekly.files.wordpress.com/2...ui3sx.jpeg
AlexDaniel lizmat: why are we using #rakulang when we can use just #raku? 20:29
python folks don't use #pythonlang, right?
lizmat because you don't have that many snake lovers on Twitter, but you do have a lot of pottery lovers on Twitter 20:30
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
AlexDaniel but people will use #raku anyway
so why make it more difficult
there are so few tweets about pottery 20:32
and even those who ā€œaccidentallyā€ use #raku already account for like more than half 20:33
or maybe around half
and then we gave up r/rakuā€¦ which had the last pottery post 1 year 20:34
1 year ago*
lizmat twitter.com/search?q=%23raku&s...amp;f=live
I'd say that's not dead 20:35
AlexDaniel it's not dead
lizmat in any case, I think we've had this discussion a few months ago... 20:36
tadzik twitter.com/martinoneill19/status/...2832269312 hah :) 20:37
AlexDaniel 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:38
I guess it would've made sense if we were using rakulang github org and rakulang.org, but we don't 20:39
I meanā€¦ I guess it doesn't matter, and everyone will use #raku anyway 20:40
El_Che AlexDaniel: if you think so, why bother reopening the discussion if time will result in what you prefer? 20:41
AlexDaniel 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
lizmat github.com/Raku/problem-solving/bl...cial-media 20:42
AlexDaniel El_Che: it's just gonna be messy, that's it
lizmat because we decided?
El_Che while raku is shorter, I like that rakulang is specific for the language 20:43
so you don't get mixed content
and no, python is an other case
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
if it fails it can be amended, but I think it's way to soon for that 20:45
(I think the #rakulang thing is going as well as it could be expected) 20:46
Grinnz 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
lizmat [21:37:06] <tadzik>twitter.com/martinoneill19/status/...2832269312 hah :) 20:47
:-) 20:48
Grinnz with the exception of that one :)
El_Che it looks like genitals to me :)
sjn 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
El_Che sjn: lizmat linked to it a few paragraphs above
(messages)
sjn ah, didn't see that 20:50
in that case, I won't return those stickers quite yet :)
El_Che it was a small part of the renaming discussion
sjn mm 20:51
El_Che what's wrong with the stickers?
lizmat they say #rakulang
which was just put into question
sjn El_Che: they're fine. One sticker says #rakulang
El_Che they would be fine either way, but #rakulang is prefered
sjn the others say "Raku"
lizmat goes afk& 20:52
20:56 rindolf left 20:57 patrickb joined
El_Che sjn: I think your confused. It's only about hthe hastag, not the name itself 21:01
21:05 rindolf joined
sjn m: say xā½1+3ā¾ 21:12
camelia 5===SORRY!5=== Error while compiling <tmp>
Bogus postfix
at <tmp>:1
------> 3say x7ā5ā½1+3ā¾
expecting any of:
infix
infix stopper
postfix
statement end
statement modifier
ā€¦
sjn m: my $x=10; say $xā½1+3ā¾ 21:13
camelia 5===SORRY!5=== Error while compiling <tmp>
Bogus postfix
at <tmp>:1
------> 3my $x=10; say $x7ā5ā½1+3ā¾
expecting any of:
infix
infix stopper
postfix
statement end
statement modā€¦
mojca up 21:21
rypervenche 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. gist.github.com/rypervenche/a4604e...a6bf273b6d 21:28
21:45 guifa2 joined 21:47 mahmudov left
Doc_Holliwood rypervenche: You really, really want a minimum lenght > 4. Make it 8. Or better 12. 21:56
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:57
this doesnt work at all 21:58
m: say my @a = gather until @a.elems > 5 { take 1 }
camelia 5===SORRY!5=== Error while compiling <tmp>
Cannot use variable @a in declaration to initialize itself
at <tmp>:1
------> 3say my @a = gather until @7ā5a.elems > 5 { take 1 }
expecting any of:
term
Doc_Holliwood m: say my @a = gather loop { take 1; last if @a.elems > 5 }
this is an endless loop 21:59
21:59 rindolf left
camelia (timeout) 21:59
Doc_Holliwood and this is just as ugly, since it requires a counter
m: my $i = 0; say my @a = gather until $i == 5 { take $i++; }
camelia [0 1 2 3 4]
Doc_Holliwood so, for/push is fine here, methinks 22:00
22:06 guifa2 left 22:07 guifa2 joined 22:11 aluaces left
guifa2 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:19
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
Geth ecosystem: alabamenhu++ created pull request #479:
Add Carp to the ecosystem
22:43
22:45 gabiruh left
Geth doc: a422997151 | (Richard Hainsworth)++ (committed using GitHub Web editor) | doc/Language/compilation.pod6
formatting errors
22:51
guifa2 AlexDaniel: sorry! Fixed the URL now. Can I get it to review the check or do I need to submit a new PR? 22:59
AlexDaniel guifa2: I clicked the button, it should update in a few minutes 23:00
guifa2 Alright, awesome. And apologies. 'Tis what I get for not double checking everything 23:01
rypervenche Doc_Holliwould: Thanks. I ran into the infinite loop as well and thought I just might be doing something wrong. 23:03
23:18 lucasb left
cpan-raku New module released to CPAN! Sys::HostAddr (0.0.1) by 03JMASLAK 23:38
23:48 gabiruh joined 23:53 wamba left