🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). This channel is logged for the purpose of keeping a history about its development | evalbot usage: 'm: say 3;' or /msg camelia m: ... | Log inspection is still being worked out. If you're a beginner, check out the #raku-beginner channel!
Set by lizmat on 16 August 2021.
[Coke] should baghash have an .add that lets you specify a weight? 00:23
ah, you just treat $baghash<key> as a LHV. nevermind. 00:24
vrurg [Coke]: I'd also try adding a Pair. It feels natural that it should work. 00:26
m: my %h is BagHash; %h.add: :a(pi); say %h.raku 00:28
camelia Too few positionals passed; expected 2 arguments but got 1
in block <unit> at <tmp> line 1
vrurg m: my %h is BagHash; %h.add: "a" => pi; say %h.raku
camelia (:a(3.141592653589793e0)=>1).BagHash
[Coke] wonders how he never got sucked into project euler before. 00:44
perryprog [Coke] ack why'd you have to remind me, now I'll have to start doing it again 02:39
lizmat hopes everybody is having a good time while on vacation :-) 11:07
moritz_ weather sucks, otherwise cannot complain :D 11:58
lizmat yeah... it's pretty boring, slightly depressing weather here 12:00
not quite dry, overcast, windy
if I wouldn't know any better, I would think autumn already started
jdv sounds like decent sailing weather. id rather be. stuck doing stupid $work stuff:( 12:26
moritz_ well, we had winds at beaufort 5-7, too windy for me to sail (at least on the sea, after not having done any sailing for the past 12ish years) 12:47
jdv yeah, 7 is pushing it. 12:51
moritz_ even 6 is stressful 12:55
jdv can be. can be exciting too. 12:59
lizmat yeah, getting hit by the boom :-) 13:11
dakkar that's why they call it boom, because of the sound it makes against one's head 13:12
guer Rolls a 6 sided dice and gets 4 13:18
lizmat m: say (1..6).roll 13:19
camelia 1
lizmat you beat me!
guer :-) Just tryiing to figure out how I can get a grip of all the thngs You can do here without bother you all ... 13:20
i.e. is there a secret/hidden option or something like it? 13:22
lizmat you can privmsg camelia
same syntax as here
m: say "hello guer"
camelia hello guer
guer privmsg m: say "hi" 13:23
camelia: say "am i alone?" 13:24
hmm, those things above got saved forever in the live log ... 13:27
codesections camelia: help 13:28
camelia codesections: Usage: <(rakudo-jvm|debug-cat|nqp-jvm|nqp-js|p5-to-p6|star-m|prof-m|rakudo-moar|nqp-moarvm|r-j|rm|m|p56|star|nqp-m|r|nqp|nqp-q|r-jvm|p6|rj|rakudo|nqp-mvm|master|r-m|sm|perl6|j)(?^::\s(?!OUTPUT)) $perl6_program>
lizmat he... that needs updating :-) 13:29
Altreus what the heck :D 13:40
grondilu ping 15:51
[Coke] pong. 16:08
grondilu nevermind I was about to ask where is the new IRC server but I remembered it's indicated on raku.org/community/irc 16:28
Altreus a new one? 16:35
This confusion brought to you from libera.chat
grondilu nah I meant new as opposed to freenode 16:42
I only learned recently about the events there
[Coke] ugh. if I have a 2D array, is there really no way to extract a row from it? (Everything I'm trying complains about partially dimensioned views except for a single cell) 16:43
grondilu depends how you define your array. IIRC there are quite a few ways to define one in raku 16:45
ugexe @a[$row;*] ? 16:46
[Coke] m: my @a[2;2] = [1,2;3,4]; dd @a[0;*] 16:47
camelia Partially dimensioned views of shaped arrays not yet implemented. Sorry.
in block <unit> at <tmp> line 1
[Coke] m: my @a[2;2] = [1,2;3,4]; dd @a[0;0]
camelia Int element = 1
[Coke] m: my @a[2;2] = [1,2;3,4]; dd @a[0;0..1]
camelia Partially dimensioned views of shaped arrays not yet implemented. Sorry.
in block <unit> at <tmp> line 1
[Coke] m: my @a[2;2] = [1,2;3,4]; dd @a[0;0..*] 16:48
camelia Partially dimensioned views of shaped arrays not yet implemented. Sorry.
in block <unit> at <tmp> line 1
perryprog At least it apologizes.
[Coke] m: my @a[2;2] = [1,2;3,4]; dd @a[*;0]
camelia Partially dimensioned views of shaped arrays not yet implemented. Sorry.
in block <unit> at <tmp> line 1
[Coke] m: my @a[2;2] = [1,2;3,4]; dd @a[0]; # last one 16:49
camelia Partially dimensioned views of shaped arrays not yet implemented. Sorry.
in block <unit> at <tmp> line 1
[Coke] I'm just wasting time on euler, but would be nice if I didn't have to do the 2d <-> 1d conversion math on this array. 16:51
codesections [Coke]: it's just the combo with _explicit_ shapes that's NYI 18:21
m: my @a = [1,2; 3,4]; dd @a[*;0] 18:22
camelia (1, 3)
melezhik hi! 19:26
Uploaded file: uploads.kiwiirc.com/files/da449c6a...t-raku.png 19:27
if someone has a medium account they might be interested in giving their feedback to one Raku/Perl skeptic :] 19:28
medium.com/opsops/choosing-between...2a9329b3ec
lizmat doesn't have a medium account, only a small one :-) 19:35
melezhik lizmat if this "the medium" account the small one will be enough 19:36
lizmat alas, it is not :-)
melezhik no worries, I will stand for Raku there, trust me ))) 19:37
lizmat ++melezhik
El_Che good evening of good * 19:49
or
gfldex is there any way to make a EXPORTHOW dynamic? 19:55
moritz_ haven't tried it, but it's just a hash, no? you could bind a custom class to it that implements hash-y / associative interface 20:17
gfldex It's a Seq in a Package. 20:27
And World.nqp wants a nqp-hash at some point. 20:47
gfldex puts his hardhat on 20:48
melezhik weekly: dev.to/melezhik/oh-my-tomtit-alter...-raku-4oc5 22:20
notable6 melezhik, Noted! (weekly)
moon-child 'Unlike ohmyzsh plugins, Tomtit plugins could be written not just on Bash' I'm pretty sure that ohmyzsh plugins are written in ... zsh 22:22
melezhik oh, good point, technically, many of them are Bash compatible, but to have an accurate statement, yeah, they are written on zsh, will update my post, thanks 22:23
"Unlike ohmyzsh plugins which are written on Zshell, Tomtit plugins could be written on similar Bash and many other languages, supported by Sparrow ( on which the Tomtit is built on )" - is it better? 22:24
^^ moon-child
melezhik I've started discussion on yc as well - news.ycombinator.com/item?id=28227881 , feel free to put your comments here 23:04