github.com/moarvm/moarvm | IRC logs at colabti.org/irclogger/irclogger_logs/moarvm
Set by AlexDaniel on 12 June 2018.
nwc10 good *, #moarvm 06:13
brrt \o 08:01
nwc10 o/ 08:23
jnthn o/ 09:35
nwc10 \o 09:50
timotimo cu_map_from_file_handle has an "offset" parameter but i think if it's nonzero, things will break all over 19:07
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
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