🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). Log available at irclogs.raku.org/raku/live.html . If you're a beginner, you can also check out the #raku-beginner channel!
Set by lizmat on 6 September 2022.
energizer i'm not a raku programmer but i read that it supports dispatching on arbitrary predicates using a `where` clause. is that true? do people use it? is it slow? 00:38
guifa where clauses used to be slow, but the new dispatch engine brought them up to snuff 00:55
energizer guifa: where can i read about that? 00:57
guifa They still require run-time checks, though there may be possibilities to optimize some of those out
on the programmer side or the internal side?
If the programmer side, docs.raku.org/type/Signature#Type_constraints discusses it 01:02
it's a feature that's surprisingly succinct to discuss, but probably required quite a bit more work to pull off internaally
energizer the dispatch algorithm is what i'm most interested in
guifa that is I think partially spread between MoarVM and Rakudo. jnthn is the one that knows the most about it, but he's not on IRC that much lately. 01:10
Here's a post on it from him 01:11
6guts.wordpress.com/2021/04/15/rak...ispatcher/
energizer thanks 02:12
tonyo . 13:44
tonyo hm, thought i saw something 14:50
[Coke] *boo* 14:51
tonyo heh 15:00
[Coke] .tell tbrowder looks like Digest 0.18.0 is now visible with 'zef info' (though for some reason still only in REA), so hopefully your issue should be fixed. 18:51
tellable6 [Coke], I'll pass your message to tbrowder
tbrowder thnx! 18:52
[Coke] I was going to open a ticket with Digest and was prepping the command output to show them, and was surprised with a fixed answer. 18:56
tonyo jjatria: you around? i want to look at what is not being indexed for you 19:35
tonyo or lizmat , if you can remember which module 19:37
lizmat and yet another Rakudo Weekly News hits the Net: rakudoweekly.blog/2022/09/19/2022-...ther-wave/ 19:40
gfldex Was `x` invented for Perl or was it borrowed from another language? 20:18
tonyo the operator? 20:22
gfldex yes
tonyo i think before that most things used `*` if they had a shortcut for it at all 20:26
leont x in perl is 2 different operators really, which one do you mean 21:13
(splitting x and xx in Raku was definitely a good call)
tonyo lizmat: looks like no extra processing is done on $thisname in that method - i'm basically just trying to inject some data into the `use` statement as a shortcut 21:18
so that i can do something like `use Dist [$?DISTRIBUTION]; use-dist X;` and I'm very sure that the `X` i get is from the distribution provided to `use Dist` 21:19
(use Dist would slang `use-dist` into scope) 21:20
Juerd leont: I'm annoyed by @foo x= 2 not doing anything in Perl :) 22:42