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 00:11 reportable6 joined 00:27 linkable6 joined 03:05 unicodable6 left, coverable6 left, linkable6 left, squashable6 left, nativecallable6 left, releasable6 left, quotable6 left, evalable6 left, sourceable6 left, bloatable6 left, reportable6 left, statisfiable6 left, bisectable6 left, notable6 left, benchable6 left, greppable6 left, tellable6 left, committable6 left, shareable6 left 03:06 statisfiable6 joined, unicodable6 joined, reportable6 joined, evalable6 joined 03:07 nativecallable6 joined, tellable6 joined, releasable6 joined 03:08 bloatable6 joined 04:02 Colt_ joined 04:04 Colt left 04:05 sourceable6 joined, bisectable6 joined 04:06 quotable6 joined, coverable6 joined, greppable6 joined 04:07 committable6 joined, shareable6 joined 04:45 ggoebel_ left 04:58 frost joined 05:08 benchable6 joined 06:08 benchable6 left, shareable6 left, quotable6 left, evalable6 left, tellable6 left, statisfiable6 left, bloatable6 left, coverable6 left, committable6 left, greppable6 left, sourceable6 left, releasable6 left, nativecallable6 left, reportable6 left, unicodable6 left, bisectable6 left, statisfiable6 joined 06:09 quotable6 joined, committable6 joined, tellable6 joined 06:10 benchable6 joined, bloatable6 joined, sourceable6 joined 06:11 evalable6 joined, nativecallable6 joined, greppable6 joined 06:44 Colt_ is now known as Colt 07:05 notable6 joined 07:07 squashable6 joined 07:09 shareable6 joined 07:11 releasable6 joined 08:07 linkable6 joined 08:09 bisectable6 joined 08:10 unicodable6 joined
Nicholas good *, #moarvm 08:44
today is clearly a good day to call MVM_repr_box_int, MVM_repr_box_num, MVM_repr_box_str, MVM_repr_box_uint 08:45
nine I thought this was the day for nqp::unbox_i, nqp::unbox_n, nqp::unbox_s and nqp::unbox_u 09:04
Nicholas wouldn't *that* be *Un*boxing day? 09:05
nine Well the name has always confused me because of that :) 09:08
09:08 linkable6 left 09:09 coverable6 joined 09:26 ggoebel_ joined
nine MasterDuke: there's no additiional bug wrt Curlie. The segfault and valgrind issues you see are bugs in LibCurl::EasyHandle. They are also restrictions in the NativeCall API wrt memory management. 09:49
What happens is that libcurl expects to be passed a char** which it fills with a char*. LibCurl::EasyHandle therefor allocates a CArray[Str] with 1 element and passes that to libcurl. However, libcurl does not pass ownership of the string to the caller while CArray assumes that if the array is managed, the array elements must be managed as well. 09:50
So CArray frees a string that it doesn't actually own. That's a case that my NativeCall memory management rework is supposed to cover. 09:52
MasterDuke is there something LibCurl::Easy could do differently? or do they just require NYI functionality? 10:03
nine: btw, you've seen dev.azure.com/MoarVM/MoarVM/_build...bf4bfaf11c ? 10:04
i can confirm that branch does fix the other spesh issue with Curlie for me 10:05
10:30 patrickb joined
Geth MoarVM/fix_rw_native_calls: d783bf2717 | (Stefan Seifert)++ | src/spesh/disp.c
Fix speshed native calls with rw args assigning into wrong target

For rw args of native calls we emit appropriate assign_i instructions after the call to write back the native values from the argument registers to the NativeRef. However the register holding the NativeRef will already have been released at the callsite (as for non-speshed calls writing back is handled by MVM_nativecall_dispatch). If one of the ... (9 more lines)
nine MasterDuke: thanks for the heads up! Seems like I always fall into this particular trap
MasterDuke: maybe LibCurl::Easy can pass a Str as rw arg instead of the CArray. Don't know off the top of my head if there's a way to avoid MoarVM freeing that string though. I really need to continue work on my branch. Planning to do so right after the uint fixes are done. 10:57
11:07 patrickb left 11:09 linkable6 joined 12:09 evalable6 left, linkable6 left 12:12 linkable6 joined 12:34 TempIRCLogger left, TempIRCLogger joined 12:38 TempIRCLogger left, TempIRCLogger joined 12:43 TempIRCLogger left, TempIRCLogger joined 13:10 reportable6 joined 13:11 evalable6 joined 13:40 discord-raku-bot left, discord-raku-bot joined
timo .o( i should have done a little survey of existing file formats before making the moarvm heap snapshot format ... like RIFF for example ) 14:01
yup! let's store moarvm heap dumps in .avi files
sena_kun timo, tooling >>>>>> formats 14:31
timo being able to use avidemux2 to wrangle heap snapshots sounds absolutely delightful 14:33
14:56 Geth left 14:57 Geth joined 14:58 RakuIRCLogger__ joined, RakuIRCLogger__ left 15:01 Geth left, Geth joined
lizmat logs.liz.nl now running on 2021.12 15:07
15:11 frost left 15:16 Colt left, Colt joined 15:19 Colt left 15:20 Colt joined 15:26 Colt left, Colt joined 15:31 ggoebel_ left 15:33 Colt left 15:35 Colt joined, Colt left 16:37 Colt joined 17:38 discord-raku-bot left, discord-raku-bot joined 17:50 discord-raku-bot left, discord-raku-bot joined 17:54 discord-raku-bot left 17:55 discord-raku-bot joined 17:59 discord-raku-bot left, discord-raku-bot joined 18:07 reportable6 left 18:09 reportable6 joined 19:31 linkable6 left, evalable6 left 19:33 linkable6 joined 21:24 tellable6 left, committable6 left, greppable6 left, sourceable6 left, reportable6 left, nativecallable6 left, coverable6 left, unicodable6 left, linkable6 left, bisectable6 left, notable6 left, squashable6 left, quotable6 left, statisfiable6 left, releasable6 left, benchable6 left, shareable6 left, bloatable6 left, greppable6 joined, benchable6 joined, nativecallable6 joined, bloatable6 joined 21:25 quotable6 joined 21:26 bisectable6 joined, squashable6 joined, coverable6 joined, shareable6 joined 21:27 releasable6 joined 22:23 sena_kun left 22:24 notable6 joined 22:26 reportable6 joined 22:31 evalable6 joined 23:25 sourceable6 joined 23:27 linkable6 joined, unicodable6 joined