github.com/moarvm/moarvm | IRC logs at colabti.org/irclogger/irclogger_logs/moarvm
Set by AlexDaniel on 12 June 2018.
01:55 squashable6 left, squashable6 joined
nwc10 good *, #moarvm 06:13
07:24 sena_kun joined 07:29 zakharyas joined 07:41 brrt joined 07:59 TimToady joined
brrt \o 08:01
nwc10 o/ 08:23
08:46 vrurg left, vrurg joined 08:52 leont joined 09:00 brrt left
jnthn o/ 09:35
nwc10 \o 09:50
09:55 Altai-man joined 09:57 sena_kun left 11:20 zakharyas left 12:48 zakharyas joined 13:17 squashable6 left 13:19 squashable6 joined 13:22 MasterDuke joined 13:55 sena_kun joined 13:57 Altai-man left 14:50 colomon_ joined 16:09 MasterDuke left 16:39 brrt joined 16:50 brrt left 16:53 squashable6 left, squashable6 joined 17:02 vrurg_ joined 17:04 vrurg left 17:07 zakharyas left 17:54 Altai-man joined 17:57 sena_kun left 18:43 zakharyas joined 18:59 brrt joined
timotimo cu_map_from_file_handle has an "offset" parameter but i think if it's nonzero, things will break all over 19:07
19:14 squashable6 left 19:16 squashable6 joined
timotimo at the very least, it should set size to be the size of the underlying file minus the start position 19:18
and pos isn't checked to be in bounds after mapping the file either :) 19:19
19:24 patrickb joined 19:54 vrurg_ is now known as vrurg 19:59 zakharyas left 20:01 zakharyas joined 20:09 brrt left
timotimo wheee 20:17
we can only use MVM_memmem from one object file, because MVM_memmem (the version that just calls memmem) has its source in the header file 20:18
Geth MoarVM/dump-finds-moar-bytecode-header: 35db991a9c | (Timo Paulssen)++ | 2 files
make moar --dump use memmem to find "MOARVM\r\n" string

this is the magic marker that starts a moarvm bytecode file.
precomp folders have a bit of information prepended to the moar bytecode files, and having to manually cut it off can be tedious. Since moar --dump is a user-facing and debugging feature, it should be fine to have it do a skipping or searching step first.
20:29
MoarVM: timo++ created pull request #1340:
make moar --dump use memmem to find "MOARVM\r\n" string
20:34
20:34 zakharyas left 21:55 sena_kun joined 21:57 Altai-man left 23:22 patrickb left 23:27 sena_kun left 23:30 elcaro left, elcaro joined, AlexDani` joined, AlexDaniel left 23:51 leont left