Welcome to the main channel on the development of MoarVM, a virtual machine for NQP and Rakudo (moarvm.org). This channel is being logged for historical purposes.
Set by lizmat on 24 May 2021.
00:08 reportable6 left, reportable6 joined 00:35 coleman joined 02:43 Kaiepi left 03:43 committable6 left, statisfiable6 left, tellable6 left, greppable6 left, linkable6 left, nativecallable6 left, benchable6 left, shareable6 left, unicodable6 left, releasable6 left, sourceable6 left, bisectable6 left, evalable6 left, reportable6 left, quotable6 left, bloatable6 left, coverable6 left, notable6 left, committable6 joined, bloatable6 joined, evalable6 joined, coverable6 joined, linkable6 joined, bisectable6 joined 03:44 releasable6 joined, greppable6 joined 03:45 notable6 joined, unicodable6 joined, nativecallable6 joined, quotable6 joined, tellable6 joined, benchable6 joined, sourceable6 joined, statisfiable6 joined, shareable6 joined 03:46 reportable6 joined 04:35 frost joined 04:45 frost left 04:51 frost joined 05:52 bloatable6 left, statisfiable6 left, linkable6 left, reportable6 left, tellable6 left, releasable6 left, coverable6 left, evalable6 left, notable6 left, bisectable6 left, nativecallable6 left, shareable6 left, benchable6 left, sourceable6 left, greppable6 left, committable6 left, unicodable6 left, quotable6 left, statisfiable6 joined 05:53 tellable6 joined, greppable6 joined, shareable6 joined, quotable6 joined, coverable6 joined, bloatable6 joined 05:54 sourceable6 joined, nativecallable6 joined, notable6 joined, bisectable6 joined, reportable6 joined, benchable6 joined, unicodable6 joined 05:55 linkable6 joined, releasable6 joined, committable6 joined, evalable6 joined 06:07 reportable6 left 06:10 reportable6 joined 07:54 Kaiepi joined
MasterDuke yeah, i did `my $a := ...` also, almost no change in performance 08:34
08:56 sena_kun joined 11:02 sourceable6 left, evalable6 left, shareable6 left, unicodable6 left, nativecallable6 left, bisectable6 left, benchable6 left, statisfiable6 left, linkable6 left, notable6 left, coverable6 left, reportable6 left, bloatable6 left, committable6 left, tellable6 left, releasable6 left, quotable6 left, greppable6 left, bisectable6 joined, greppable6 joined, unicodable6 joined, nativecallable6 joined, releasable6 joined, bloatable6 joined 11:03 notable6 joined, sourceable6 joined, shareable6 joined, committable6 joined, coverable6 joined 11:04 benchable6 joined, evalable6 joined, statisfiable6 joined, quotable6 joined 11:05 reportable6 joined, linkable6 joined, tellable6 joined 12:07 reportable6 left, reportable6 joined
MasterDuke complete change of topics, but i think a lot of other languages have added a bitcount/popcount/whatever-you-want-to-call-the-function-that-returns-the-number-of-ones-set-in-the-binary-representation-of-a-number, should raku get one too? 13:36
lizmat MasterDuke: raku.land/zef:lizmat/Bits 13:41
13:42 linkable6 left, evalable6 left 13:43 evalable6 joined, linkable6 joined 14:43 linkable6 left, evalable6 left, linkable6 joined 14:45 evalable6 joined 15:16 frost left 15:55 Kaiepi left 16:29 Kaiepi joined 16:34 vrurg left 16:35 vrurg joined 17:00 Kaiepi left 17:01 Kaiepi joined 17:54 sena_kun left 17:55 sena_kun joined
japhb lizmat: There's some more that would be valuable there ... for example: least significant set bit, most significant set bit. Also, I think there are CPU instructions for some of these when dealing with native types, so that may be what MasterDuke was thinking of. 18:06
lizmat well.... yeah, I just wanted to point out there's an interface for it already :-)
18:07 reportable6 left
japhb :-) 18:07
18:08 reportable6 joined
MasterDuke yeah, i would propose a new nqp op. i think jvm/js have builtins for it, and so do libtommath and gmp 19:08
btw, any details on possible/planned dates for rakudo core conf? 19:09
lizmat MasterDuke: maybe we should start with people stating when they can *not* be there at all 19:12
MasterDuke ha. this little thing called covid has been annoying. i hoped that my couple years in the uk would mean a lot more european raku conferences and such, but no such luck. and now we're moving back to the states in july 19:16
lizmat ah... ok, so would June still work for you ?
or will you already be too busy packing ?
MasterDuke maybe i could do a day or two june 12-18, but i wouldn't want to promise anything 19:17
and probably a realistic estimate for when i'd be free after the move would be october, what with moving, stuff arriving, moving into the new house, etc 19:20
so i wouldn't recommend planning anything around me
(also, i'll probably have a lot less time for raku stuff for the next couple months (and then less conveniently time-zoned)) 19:22
19:34 evalable6 left, linkable6 left
lizmat MasterDuke :-( but understood 19:35
19:35 linkable6 joined 19:36 evalable6 joined
MasterDuke i have an annoying number of almost-finished-except-for-a-last-really-annoying-bit PRs, hopefully i can finish up at least one before my time is (even more) reduced 19:39
20:24 Kaipei joined 20:27 Kaiepi left 20:39 Kaipei left, Kaipei joined
MasterDuke interesting. using `@a = ` vs `$a :=` with the binary sha1 op gives a different digest 21:02
lizmat ah? 21:46
MasterDuke `rakudo-m -e 'use nqp; my int @a = "src/core.c/Int.pm6".IO.slurp(:bin); my $b; my $s = now; $b := nqp::binarysha1(@a) for ^10_000; say now - $s; say $b' gives AA4E6E40AB7A4F867CAE21A18D4A5024C2FBCAD2 21:50
`rakudo-m -e 'use nqp; my $a := "src/core.c/Int.pm6".IO.slurp(:bin); my $b; my $s = now; $b := nqp::binarysha1($a) for ^10_000; say now - $s; say $b'` gives D10659C9C57676112F06DEC45CA5D9FE93805A8B
`sha1sum src/core.c/Int.pm6` gives fc1db10480cc2f52cb11b22fff807c5db89a3474 21:51
`rakudo-m -e 'use nqp; my $a := "src/core.c/Int.pm6".IO.slurp; my $b; my $s = now; $b := nqp::sha1($a) for ^10_000; say now - $s; say $b'` gives FC1DB10480CC2F52CB11B22FFF807C5DB89A3474
but i'm off to bed, something to investigate later 21:52
lizmat when you slurp with :bin, any utf-8 in the file, will remain separate bytes, whereas with a string, they're normalized to codepoints ?
so: they would only be the same if the file would be pure ASCII ? 21:53
21:59 sena_kun left 22:59 benchable6 left, nativecallable6 left, tellable6 left, committable6 left, releasable6 left, shareable6 left, sourceable6 left, statisfiable6 left 23:00 linkable6 left, bloatable6 left, evalable6 left, unicodable6 left, coverable6 left, reportable6 left, notable6 left, quotable6 left, greppable6 left, bisectable6 left, bloatable6 joined, notable6 joined, committable6 joined, linkable6 joined 23:01 greppable6 joined, statisfiable6 joined, releasable6 joined, bisectable6 joined, nativecallable6 joined, unicodable6 joined, quotable6 joined, benchable6 joined, sourceable6 joined, evalable6 joined, shareable6 joined 23:02 coverable6 joined, reportable6 joined 23:03 tellable6 joined 23:40 [Coke] left