🦋 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 getting closer to beta. If you're a beginner, you can also check out the #raku-beginner channel!
Set by lizmat on 25 August 2021.
Petr where i can find simple tutorial about modules? 12:30
perryprog Petr, docs.raku.org/language/modules is probably what you want 12:31
xinming_ m: (+^1).say
camelia -2
xinming_ In this case, Can we make the -2 unsigned int? 12:33
What I mean is something like, bitwise not on a char, and get the integer for that char
Petr Thanks ) 12:48
Thanks 12:49
dakkar xinming_: I was going to say `ord(~^…)`, but apparently that's NYI docs.raku.org/language/operators#prefix_~^ 12:59
tonyo that's pretty low hanging fruit to implement at this point 14:06
lizmat tonyo: re prefix ~^ I think it's more bikeshedding on the exact semantics? 17:23
tonyo yes but if someone just does the work and submits it they're more likely to have it than if they just comment somewhere about it while no one does the work 17:26
lizmat clickbaits rakudoweekly.blog/2021/10/18/2021-...ning-with/ 17:55
pony clicks 18:39
perryprog "Learn Raku with balls" I can't be the only one who read that as that 18:40
Whoa, lizmat, this is the two year anniversary of rakudo weekly?! :O 18:42
lizmat indeed it is :-) 18:43
pony heh, I like the reddit about what grammars are
lizmat my first weekly was in January 2015 though, so I've been at it a bit longer already
perryprog That's amazing. Congratulations, and thank you for your always-wonderful posts. I've said it before, but I want to say it again: Rakudo weekly is one of the number one reasons I have always enjoyed Raku outside of the language itself. 18:44
lizmat thank you for your kind words :-)
perryprog It's a real shame that not many other new and developing languages have something similar. (LOOKING AT YOU, JULIA!)
gfldex We put all lazyness into the language so there is nothing left for ourselves. 18:45
lizmat gfldex: there's that :-)
perryprog Speaking of nice things, this log site looks seriously nice. 18:46
perryprog 🪵 18:46
gfldex Blogging is a lot of work. My posts are quite short and it's still a few hours per post.
lizmat perryprog: again, thank you, still needs some tweaks, but we're getting there 18:47
perryprog gfldex: not to mention having live links referencing everything for further details...
melezhik . 18:53
Uploaded file: uploads.kiwiirc.com/files/0c4f1ab2.../image.png 18:54
mybfio reviews now support markdown
mybf.io/project/AWS::SNS::Notification/reviews
RaycatWhoDat QQ: Can I access the intermediate value of a gather/take block? 22:18
guifa Racyat: What do you mean by intermediate value? 23:21
Mondenkind m: my \x = gather take x; say x 23:23
camelia (\List_79007952 = (List_79007952))
guifa m: my \fib = gather { state $i = 0; once take 1; loop { take fib[$i] + (fib[$i++ - 1] // 0) } }; say fib[0..5] 23:31
camelia (1 1 2 3 5 8)
guifa but you'd need to set it outside, I don't believe there's a way to access it wholely within the gather block
guifa BTW, if you're going to do a fib style (peaking back at X elements), you could just use the sequence generator instead 23:47