🦋 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.
00:36 guifa joined 02:05 kjp left 02:24 kjp joined 02:26 kjp left 02:27 kjp joined 02:51 hulk joined, kylese left 02:56 guifa left 03:15 hulk left, kylese joined 03:26 guifa joined 03:34 nil78 left 03:36 nil78 joined 04:08 yewscion left 04:10 discord-raku-bot left 04:11 discord-raku-bot joined 04:14 guifa left 05:05 yewscion joined 05:12 Aedil joined 05:15 yewscion left 05:17 oodani left, oodani joined 05:18 oodani left 05:19 oodani joined 06:20 wbooze joined 06:34 wbooze left 08:20 yewscion joined 08:24 yewscion left 08:26 tgt joined 09:02 Sgeo left 10:01 sena_kun joined 10:07 tgt left 10:21 jpn joined 10:25 nil78 left 10:33 nil78 joined 10:34 lichtkind joined 10:36 tgt joined, apac joined 10:42 wbooze joined 10:52 apac left 11:30 apac joined 12:23 guifa joined 12:28 guifa left
lizmat drops a pin 12:45
12:45 yewscion joined 12:46 inline joined 12:50 yewscion left 12:56 apac left 13:09 BooK left, BooK joined 13:10 bloatable6 left, greppable6 left, bloatable6 joined, greppable6 joined 13:14 [Coke] left 13:18 nil78 left 13:19 yewscion joined 13:22 nil78 joined 13:24 yewscion left 13:37 apac joined 13:39 yewscion joined
antononcube I will drop a graph then: 14:21
cdn.discordapp.com/attachments/633...10ec7&
14:21 [Coke] joined
@lizmat See the above image, in case you are curious why am I looking into "Text::Emoji". 14:22
15:33 jgaz joined, yewscion left 15:41 wbooze left
lizmat antononcube Spock! 15:59
16:17 Sgeo joined 16:19 wbooze joined 16:37 yewscion joined 16:45 apac left 16:46 apac joined 16:59 apac left 17:00 apac joined 17:03 jpn left 17:17 apac left 17:18 apac joined
tbrowder lizmat: can one define a Set containing IntStr’s like (0 1 2 a b) without quotes? 17:54
if so, how would i check for membership of 1 or a? 17:55
lizmat "a" and "b" are not IntStr so that wouldn't work
tbrowder hm, i see. 17:56
lizmat m: 'my %h is Set[Str] = <0 1 2 a b>; dd %h<1>, %h{1}
camelia ===SORRY!=== Error while compiling <tmp>
Unable to parse expression in single quotes; couldn't find final "'" (corresponding starter was at line 1)
at <tmp>:1
------> Set[Str] = <0 1 2 a b>; dd %h<1>, %h{1}<HERE><EOL>
expecting any of:
…
lizmat m: my %h is Set[Str] = <0 1 2 a b>; dd %h<1>, %h{1} 17:57
camelia Bool::True
Bool::False
lizmat m: my %h is Set[Str] = <0 1 2 a b>; dd %h<1>, %h{1}, %h{"1"}
camelia Bool::True
Bool::False
Bool::False
tbrowder thnx, something to play with 17:58
lizmat note that constraining the Set to Str, does allow allomorphs 17:59
tbrowder ah, that’s the term i was forgetting, “allomorphs” 18:00
ok, cool
lizmat note that "1" and 1 are *not* allomorphs, so return False when checking for membership that way 18:01
18:07 apac left 18:13 nil78 left 18:19 nil78 joined 18:22 wbooze left 18:27 wbooze joined
[Coke] m: sub aa($a) {my $s=[+] $a.comb; $s.comb.elems > 1 ?? aa($s) !! $s}; say (5..*).grep(*.is-prime).rotor(2 => -1).grep({.[0]+2==.[1]}).map({.[0]*.[1]}).map({aa($_)})[^100] 18:28
camelia (8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8)
tellable6 2025-02-26T07:13:46Z #raku <melezhik> [Coke]: there is also GRPC/protobug thing - that serialize data in internal binary format but for end client this looks like remote procedure calls which are just native to a language data structures
18:31 wbooze left 18:35 jpn joined
[Coke] (apparently if you take twin primes starting with 5, multiple them together, then add the digits together iteratively until you're left with a single digit... it's 8.) 18:36
18:38 wbooze joined
[Coke] seen on a youtube short recently, apparently I watch too much maths. 18:43
ah, the proof is simpler than I thought. Nifty. 18:45
also, if anyone can golf that more... 18:46
18:46 jpn left
lizmat and there I was thinking at was just a very convoluted way to say (8 x 100).List 18:57
:-)
19:03 wbooze left 19:12 wbooze joined 19:13 wbooze left 19:18 wbooze joined 19:24 wbooze left 19:33 apac joined 19:34 wbooze joined 19:59 Aedil left
lucs [Coke]: Here's a very ungolfed version I made for my notes: gist.github.com/lucs/b5be63a3961b6...d235e667bc 20:23
[Coke] chalkdustmagazine.com/blog/digital...-primes-8/ 20:32
lucs Aha, thanks. 20:35
[Coke] www.youtube.com/shorts/I8lAobOidvo was the video, btw. 20:37
20:43 jpn joined, yewscion left 20:47 jpn left
japhb lizmat: Trying to build the world at Rakudo 2025.02, I can't install App::Rak::Complete because ParaSeq:ver<0.2.7>:auth<zef:lizmat> fails testing. It appears to be fine until passing 10-invert, and then it goes very low CPU and just stalls out until eventually the (Perl 5) harness kills it. 21:05
21:16 wbooze left
[Coke] How is the p5 harness involved? 21:19
(just kicked off a zef --serial install of R::A::C and it also appears to.... slow down on ParaSeq
japhb [Coke], lizmat: Clarified in github.com/lizmat/ParaSeq/issues/4 21:23
21:23 yewscion joined 21:25 yewscion left 21:27 apac left 21:52 guifa joined
[Coke] Oh, I forgot about this - it's still hanging. :) 22:03
22:04 jgaz left
[Coke] I'm on macOS 14.6.1 here 22:04
killed it by hand.
japhb OK, thanks for the confirmation that it's not just me. :-) 22:05
Mind if I add this to the bug report?
[Coke] that's fine 22:07
while running *11, the last output here is [ParaSeq] ok 3 - The object is-a 'ParaSeq' 22:08
(did an install with -serial, and then a zef look on paraseq and a zef test -v . 22:09
ugexe you can just run `raku -I. t/11-reduce.rakutest` after zef look ParaSeq to further isolate
japhb Bug updated, thanks 22:15
22:18 nil78 left 22:19 sjn left 22:26 nil78 joined, yewscion joined, sjn joined 22:31 yewscion left 22:44 yewscion joined 22:49 yewscion left 22:53 nil78 left 22:55 nil78 joined
lizmat japhb [Coke] weird, I thought I had removed the dependency on ParaSeq a little while ago... 23:05
ah,it's JSON::Fast::Hyper...
antononcube Agh, twin primes... 23:07
I was wondering should I make a twin-primes sub in "Math::NumberTheory". 23:08
It is border line trivial, but then, many of the subs in "Math::NumberTheory" are. (And that is one of its selling points.) 23:09
lizmat In a little while App::Rak::Complete should be installable again
[Coke] would a twin primes sub generate the list or verify if two numbers are? 23:12
antononcube @Coke Good question. In some sense I cannot stop with just making twin-primes -- I have to make twin-prime, cousin-primes, and sexy-primes. 23:13
twin-primes(n) : gives the first n pairs of twin primes. 23:14
The subs cousin-primes and sexy-primes are similar, but use difference 4 and 6 respectively. 23:15
twin-prime(n) -- just returns the first of a twin primes pair. 23:17
[Coke] I imagine "sixy" primes are harder since you can't just compare the two consecutive ones? 23:32
antononcube Hm... It is a simple intersection using two lists generated via the sub prime. I will commit the related-primes code with 10 min -- the procedure would be seen there. 23:35
23:36 lichtkind_ joined
japhb lizmat: Is ParaSeq a legacy module now? 23:36
lizmat no, it's been put into production too soon
also, now that we have -Mown-up I can finally figure out where it's deadlocking :-) 23:37
but first, sleep&
23:38 lichtkind left
japhb I missed too much while I was mostly out of commission, sigh. 23:39
23:54 nil78 left
antononcube @Coke See github.com/antononcube/Raku-Math-N...s.rakutest 23:54