github.com/moarvm/moarvm | IRC logs at colabti.org/irclogger/irclogger_logs/moarvm
Set by AlexDaniel on 12 June 2018.
01:20 AlexDaniel left 01:30 AlexDaniel joined 03:16 coverable6 left, greppable6 left, unicodable6 left, releasable6 left, bloatable6 left, reportable6 left, committable6 left, quotable6 left, nativecallable6 left, benchable6 left, notable6 left, evalable6 left, squashable6 left, statisfiable6 left, bisectable6 left, shareable6 left, undersightable6 left, committable6 joined, greppable6 joined 03:17 nativecallable6 joined, evalable6 joined, notable6 joined, undersightable6 joined, bisectable6 joined 03:18 unicodable6 joined 03:19 shareable6 joined, quotable6 joined, benchable6 joined, reportable6 joined, squashable6 joined 03:20 statisfiable6 joined, bloatable6 joined, releasable6 joined, coverable6 joined 04:26 mtj_ left 07:20 mtj_ joined 07:46 domidumont joined 10:25 camelia joined 10:36 camelia left, camelia joined 11:16 AlexDani` joined, AlexDani` left, samcv left, samcv joined 11:17 AlexDani` joined, AlexDaniel left 11:58 camelia left 12:01 camelia joined 12:29 dalek left 12:31 camelia left 12:55 AlexDani` is now known as AlexDaniel, AlexDaniel left, AlexDaniel joined 13:01 AlexDani` joined 13:03 AlexDaniel left 13:05 AlexDani` left 13:06 AlexDani` joined 13:15 AlexDani` is now known as AlexDaniel, AlexDaniel left, AlexDaniel joined 13:32 Geth left
timotimo so, i've been wondering 14:48
if all the CBlah reprs get a "owner-of-the-memory" pointer
should it always ask the owner for the most up-to-date pointer?
so that a CStruct inside of a CArray that gets resized will immediately work?
i'm not actually sure it wouldn't already immediately work, tbh 14:49
but this also applies to things that are nativecast
m: use NativeCall; my $initial = CArray[uint8].new(1, 2, 3, 4); my $casted = nativecast(CArray[uint16], $initial); $casted.say; $initial.push($_) for 10..14; $casted.say 14:50
evalable6 (exit code 1) WARNING: unhandled Failure detected in DESTROY. If you meant to ignore it, y…
timotimo, Full output: gist.github.com/2c439cbcbf23df58f6...ed9bc8d17b
timotimo right 14:51
what
m: use NativeCall; my $initial = CArray[uint8].new(1, 2, 3, 4); my $casted = nativecast(CArray[uint16], $initial); $casted.say; $initial[$initial.elems] = $_ for 10..14; $casted.say
evalable6 NativeCall::Types::CArray[uint16].new
NativeCall::Types::CArray[uint16].new
timotimo m: use NativeCall; my $initial = CArray[uint8].new(1, 2, 3, 4); my $casted = nativecast(CArray[uint16], $initial); $casted[^2].say; $initial[$initial.elems] = 10 + $_ for 0..14; $casted[^2].say
evalable6 (513 1027)
(-3616 1712)
timotimo m: use NativeCall; my $initial = CArray[uint8].new(1, 2, 3, 4); my $casted = nativecast(CArray[uint16], $initial); $casted[^2].say; $initial[$initial.elems] = 10 + $_ for 0..1024; $casted[^2].say 14:52
evalable6 (513 1027)
(-13456 17870)
timotimo i didn't expect the data to be overwritten this quickly, but whatevs
it shows the potential issue 14:55
might of course say "if you're doing that, you're in trouble anyway, you'd also be in trouble in C"
but in C it's a lot less tiresome to just have casts of the original array/pointer whereever you use it
16:02 domidumont left 16:03 domidumont joined 16:20 AlexDaniel left 16:21 AlexDaniel joined 16:30 synopsebot left, dalek joined, synopsebot joined, Geth joined, p6lert_ joined, p6lert left 16:45 evalable6 left 16:46 evalable6 joined
ugexe time perl6 -e 'for 1..10000 { my $meta = from-json($*CWD.add("META6.json").slurp); $meta<version>; }' 16:52
in 2019.03.1 that takes 1m45s 16:53
blead it takes 18s
timotimo is that the json-fast performance improvements? 16:57
ugexe yeah 17:03
timotimo sweet 17:05
i mean it could be more
i mean more faster
ugexe it used to be that CURI read meta6.json for every installed module on startup (pre v6.c), and having 100 modules installed meant perl6 -e '' would take like 10 seconds 17:06
timotimo ouch 17:08
17:44 lucasb joined 17:52 zakharyas joined 18:07 AlexDaniel left 18:17 AlexDaniel joined 19:48 zakharyas left 19:49 domidumont left 21:03 lucasb left 21:56 squashable6 left 22:00 squashable6 joined
timotimo i wonder if we should go through gen2 size classes in parallel 23:43