🦋 Welcome to the IRC channel of the core developers of the Raku Programming Language (raku.org #rakulang). This channel is logged for the purpose of history keeping about its development | evalbot usage: 'm: say 3;' or /msg camelia m: ... | Logs available at irclogs.raku.org/raku-dev/live.html | For MoarVM see #moarvm
Set by lizmat on 8 June 2022.
00:00 reportable6 left 00:03 reportable6 joined 04:22 linkable6 left, evalable6 left 04:23 linkable6 joined 04:25 evalable6 joined 04:32 Kaiepi left 06:00 reportable6 left 06:03 reportable6 joined 07:51 notable6 left, bisectable6 left, benchable6 left, statisfiable6 left, quotable6 left, greppable6 left, linkable6 left, tellable6 left, unicodable6 left, reportable6 left, bloatable6 left, shareable6 left, evalable6 left, committable6 left, releasable6 left, sourceable6 left, coverable6 left, nativecallable6 left, squashable6 left, committable6 joined 07:52 squashable6 joined, unicodable6 joined, nativecallable6 joined, coverable6 joined, bloatable6 joined 07:53 evalable6 joined, shareable6 joined, bisectable6 joined, releasable6 joined, linkable6 joined 07:54 notable6 joined, greppable6 joined, sourceable6 joined, quotable6 joined, statisfiable6 joined, tellable6 joined, benchable6 joined, reportable6 joined 08:54 reportable6 left, coverable6 left, committable6 left, statisfiable6 left, greppable6 left, squashable6 left, linkable6 left, shareable6 left, notable6 left, sourceable6 left, releasable6 left, evalable6 left, bloatable6 left, bisectable6 left, quotable6 left, benchable6 left, tellable6 left, unicodable6 left 08:55 notable6 joined, squashable6 joined, releasable6 joined, tellable6 joined, shareable6 joined 08:56 sourceable6 joined, unicodable6 joined, bisectable6 joined, greppable6 joined, statisfiable6 joined, benchable6 joined, quotable6 joined 08:57 coverable6 joined, bloatable6 joined, reportable6 joined, committable6 joined, evalable6 joined, linkable6 joined 09:00 AlexDaniel left 09:49 Kaiepi joined 10:03 Xliff left, sena_kun joined
Geth rakudo/lizmat-classify-identity: a398cdbab2 | (Elizabeth Mattijsen)++ | src/core.c/Any.pm6
Allow * to be used as identity on classify|categorize

In response to github.com/rakudo/rakudo/issues/5134
Note that this also allows the :as parameter to be used, such as creating lists of indices of a particular value in a list:
   $ raku -e 'say (1,1,1,2,1,2).classify(*, :as({$++}))'
   {1 => [0 1 2 4], 2 => [3 5]}
11:47
rakudo: lizmat++ created pull request #5140:
Allow * to be used as identity on classify|categorize
12:00 reportable6 left 12:01 reportable6 joined
[Tux] Rakudo v2022.12-1-gd52342eb0 (v6.d) on MoarVM 2022.12-3-g06856f0b2
csv-ip5xs0.875 - 0.883
csv-ip5xs-205.238 - 5.478
csv-parser3.529 - 3.707
csv-test-xs-200.414 - 0.419
test6.406 - 6.420
test-t1.443 - 2.011
test-t --race0.843 - 0.938
test-t-2020.402 - 20.933
test-t-20 --race6.747 - 7.005
12:43
13:06 linkable6 left, evalable6 left 13:08 linkable6 joined, evalable6 joined 15:34 sena_kun left 15:43 sena_kun joined 15:49 Kaiepi left, Kaiepi joined
Kaiepi i'm wary of what the locking the parameterization Array::Shaped!RE-INITIALIZE does via RI.SHAPED-ARRAY-STORAGE might do in a threaded environment, but i'm not sure on how to prove anything happens as a result... 17:12
17:13 melezhik joined
Kaiepi i tried making 4 threads parameterize a bunch at the same time, but they seem to do it about the same speed? 17:14
compared to changing it not to parameterize
17:14 melezhik left
lizmat Kaiepi link? 17:18
Kaiepi lizmat, this is the benchmark script atm gist.github.com/Kaiepi/937162e3ca6...436a33a080 17:22
i'm testing through Array::Shaped.STORE on my list-copying branch, haven't tried main yet
lizmat I meant link to code in the core you're worried about 17:24
17:30 codesections left
Kaiepi here github.com/rakudo/rakudo/blob/main...s.pm6#L489 17:33
Geth rakudo/main: 665375bab8 | (Elizabeth Mattijsen)++ | src/core.c/Cool.pm6
Improve error message on "foo".Order

By preventing the Failure of the conversion to Int to be eaten and thus cause an LTA "This type cannot unbox to a native integer" error
17:58
18:00 reportable6 left, reportable6 joined 18:02 sena_kun left 18:04 sena_kun joined 18:19 Kaiepi left, Kaiepi joined 18:46 codesections joined 18:55 melezhik joined 19:00 melezhik left 20:00 linkable6 left, evalable6 left 20:01 linkable6 joined 20:02 evalable6 joined 23:18 vrurg_ joined, vrurg left 23:51 sena_kun left