japhb MasterDuke: intarray[int32]? 00:01
(Just guessing that the parameterization is on native int size) 00:02
MasterDuke ah
m: my int32 @a; say @a.^roles
evalable6 ((array::intarray[int32]) (Positional[int32]) (Iterable))
MasterDuke japhb++ 00:03
00:06 lucasb left
MasterDuke m: constant N = 1_000_000; my int @a[N]; @a[$_] = $_ for ^N; say @a[N-1]; say now - INIT now 00:27
evalable6 999999
MasterDuke ^^^ hits github.com/rakudo/rakudo/blob/mast...tch.nqp#L4 (find_method) 1_000_000 times where it's looking for ASSIGN-POS in array[int] 00:28
and github.com/rakudo/rakudo/blob/mast...ng.nqp#L14 is hit 2_000_000 times 00:30
m: constant N = 1_000_000; my int @a; @a[$_] = $_ for ^N; say @a[N-1]; say now - INIT now # the unshaped version doesn't hit those (find_method and type_check) 00:38
evalable6 999999
01:22 sena_kun joined 01:24 Altai-man_ left 02:10 epony left 02:48 jjatria left, jjatria joined 03:22 Altai-man_ joined 03:24 ZzZombo joined, sena_kun left 03:38 tobs left 03:39 tobs joined 04:18 epony joined 05:22 sena_kun joined 05:24 Altai-man_ left 05:58 lizmat left 06:19 lizmat joined 06:30 lizmat left 07:03 lizmat joined 07:22 Altai-man_ joined 07:24 sena_kun left 09:09 leont joined 09:23 sena_kun joined 09:24 Altai-man_ left 09:25 vrurg_ joined 09:26 vrurg left
|Tux| Rakudo version 2020.02.1-98-gcf01f7a25 - MoarVM version 2020.02.1-35-ga7fa6daad
csv-ip5xs0.694 - 0.694
csv-ip5xs-205.649 - 5.720
csv-parser23.081 - 23.299
csv-test-xs-200.361 - 0.361
test7.515 - 7.642
test-t1.839 - 1.863
test-t --race0.838 - 0.871
test-t-2030.356 - 31.413
test-t-20 --race8.911 - 9.106
10:20 lizmat left 11:21 Altai-man_ joined 11:24 sena_kun left 12:25 |Tux| left 12:26 |Tux| joined 12:46 camelia joined 12:48 camelia left, camelia joined 13:13 lucasb joined 13:22 sena_kun joined 13:24 kawaii left, Altai-man_ left 13:25 kawaii joined 13:27 lizmat joined 14:26 lizmat left 15:18 rypervenche left 15:22 Altai-man_ joined 15:23 rypervenche joined 15:24 sena_kun left 15:29 leont left 16:17 leont joined 17:22 sena_kun joined 17:24 Altai-man_ left 18:22 squashable6 left 18:23 squashable6 joined 19:22 Altai-man_ joined 19:24 sena_kun left 20:10 Xliff joined
Xliff . 20:10
I had an idea last night and I believe I've brought up parts of it, but I'd like to bring it up here for consideration. 20:11
I'd like to discuss the feasibility of having perl6 compile .moarvm code so that it can be stored in a database with BLOB support. 20:12
How feasible is this with the current implementation? I know I can do the storage part, already using --target and --output. 20:13
Retrieval is easy enough.
What about execution?
Would a `sub EVAL (Blob)` function work? In my mind, the return value would be a CompUnit that one could then massage into something executable. 20:15
jnthn What's the use case? 20:16
Xliff An application server.
jnthn Remember that a compiler upgrade invalidates all the blobs. :)
Or any dependent module update. 20:17
Xliff True, but that would be at the app server leve.
All modules would be in the database.
jnthn But anyway, I'd take a look at CompUnitRepo stuff
Also maybe precompilation store
I think alternative impls of those could be used to achieve this.
Xliff Yes. My thought were along those lines. I was falling asleep at the time, but was wondering if current rakudo would be up to this. 20:18
The application server would need to reimplement much of the loader functionality for this to work. I am wary that the current code is not modular enough to accommodate this. 20:19
jnthn In theory it's possible, and we won't know in practice until somebody tries. 20:20
Xliff OK. Then I will have to look into it. 20:21
Do you think a write-up of this might be worth a grant from the TPF?
vrurg_ Xliff: you should try, I think. 20:25
20:25 vrurg_ is now known as vrurg
Xliff vrurg: I think so, too. However my time has become very limited, these days. 20:28
Thanks, everyone! I have a some things to think about. :) 20:46
20:46 Xliff left
MasterDuke jnthn: got a couple minutes for questions? 20:53
21:04 MasterDuke52 joined, MasterDuke left 21:23 sena_kun joined 21:24 Altai-man_ left 21:25 squashable6 left 21:27 squashable6 joined 21:56 MasterDuke52 left, MasterDuke joined
discord6 <how-1ie> What's the TPF? 22:03
leont The Perl Foundation 22:04
22:17 lucasb left 22:50 leont left 23:22 Altai-man_ joined 23:24 sena_kun left 23:29 leont joined 23:33 lizmat joined