🦋 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.
antononcube My approach of computing related primes in Raku is probably slow, i.e. it can be optimized. But it is easy to verify. 00:12
melezhik . 08:19
melezhik .tell antononcube: I've migrated your modules to sparky, you may need to remove sparky.yaml from repos ( no longer required ) and update markdown badges, according build pages - gist.github.com/melezhik/2aaa9e013...888d8f0bb1 08:37
tellable6 melezhik, I'll pass your message to antononcube
melezhik to pick up a badge, just go a module build page, say sparky.sparrowhub.io/report/antono...ions/23757 and then artifact -> badge.txt 08:38
wayland76 Hi! :) 09:24
wbooze morning 09:28
wayland76 wbooze: morning :) . Though it's 10pm here :) 11:02
tbrowder lizmat: ref digits and non-digits unable to be in a single set. other than a custom class, could enabling that in core be feasible? 14:55
numeric and non-numeric... 14:56
librasteve tbrowder: hi. I am probably in a minority, but I am a fan of Allomorphs and I think that this is the kind of use case that the perl6 designers had in mind 14:58
for example
m: my %h is Set = <0 1 2 a b>; say %h<1>, %h<a> 14:59
evalable6 TrueTrue
Raku eval TrueTrue
librasteve or more clearly... 15:01
tbrowder m: my $aset = <a b>.Set 15:03
camelia ( no output )
librasteve m: my %h is Set[NumStr()] = <0 1 2 a b>; say %h<1>, %h<a>
evalable6 TrueTrue
Raku eval TrueTrue
tbrowder m: my $aset=<a b>.Set; my $bset = <1 2 3>.Set; $aset (|) $bset; 15:05
camelia WARNINGS for <tmp>:
Useless use of "(|)" in expression "$aset (|) $bset" in sink context (line 1)
tbrowder m: my $a=<a b>.Set; my $b = <1 2>.Set; my $c = $a (|) $b; say $c.gist 15:07
camelia Set(1 2 a b)
tbrowder m: my $a=<a b 1 2>.Set; my $b = <b>.Set; my $res = $b (<=) $a; say $res 15:10
camelia True
librasteve yeah - seems like that dwims by the look of your example - or am I missing something? 15:11
tbrowder hm? surprising, didn't get same result in own code, but my syntax was not quite the same 15:12
librasteve yeah - I imagine your were aiming to show some errors / limitations
tbrowder that result ^^ is what i wanted, let me try here what i did offline, a short eg. 15:13
librasteve sure
tbrowder m: my $a = <1 2 a b>.Set; my $res = <1>.Set (<=) $a; say $res 15:15
camelia True
tbrowder hm? must have been to tired!!! this is very encouraging! 15:16
tbrowder *too 15:16
librasteve it does mean that the literal <> syntax and index <> syntax are carrying a lot of the load 15:17
tbrowder that's ok with me! 15:17
librasteve and as lizmat mentioned yesterday - you cannot use {1} or {'1'} to index digits - has to be <1> 15:18
I'll add to my "reasons to hug an allomorph" 15:20
tbrowder yes, but that get's hidden behind the $, and i think i can live with that...back to the drawing board... 15:20
librasteve m: my $a=<a b 1 2 10e0>.Set; my $i = <10e0>; say $i (<) $a 15:22
evalable6 True
Raku eval True
tbrowder m: my $a=<1 2 a b>.Set; my $b =<1 a>.Set; my $res = $b (<=) $a; say $res
camelia True
librasteve ^^ checks (i find I remember stuff better when I try it)
tbrowder \o/ touchdown!
librasteve m: say "c\[THUMBS UP SIGN]" 15:23
evalable6 c[THUMBS UP SIGN]
Raku eval c[THUMBS UP SIGN]
tbrowder 👍 raku is so sweet! 15:24
librasteve m: say "c\[THUMBS UP SIGN]" 15:25
Raku eval c[THUMBS UP SIGN]
evalable6 c[THUMBS UP SIGN]
tbrowder i can't believe the perl peeps keep struggling with that stuff. with arrows and messed sigils 15:26
librasteve m: say "\c[THUMBS UP SIGN]"
Raku eval 👍
evalable6 👍
tbrowder gotta go. later gator
tbrowder ok, got it to work for me: programmatic creation of sets and proper subsets of alphanumeric words and then testing various inputs. essentially i hid all the word chars as individual stir chars and all works. in timo's words, i "hid the sausage making" that lizmat showed inside a couple of subs. 21:23
*Str chars
i 💗 raku! 21:24
tbrowder and the chief core dev! 21:46
wayland76 Does anyone know whether we've looked at having a Raku module for Umbrello? 23:46