github.com/moarvm/moarvm | IRC logs at colabti.org/irclogger/irclogger_logs/moarvm
Set by AlexDaniel on 12 June 2018.
Altai-man_ github.com/MoarVM/MoarVM/issues/1246 09:21
sena_kun anyone around with knowing how to write C carefully to help with dyncall? 17:39
Voldenet I'd help, but I have no idea to code carefully ;/ 18:49
Voldenet maybe that's a silly question, but does anything actually use dlGetLibraryPath(NULL, …) except github.com/MoarVM/dyncall/blob/b3a...ain.c#L158 ? 19:36
sena_kun not really, but something can use dynload_plain and... well, it was decided it's better to wait a response from official maintainer. 19:38
Voldenet otherwise I'm not sure how to test it in context of compiling moarvm, it might be better to run test/dynload_plain.c instead 19:42
nine The constants involved in the offending code seem to be totally undocumented and the whole thing is highly platform dependent. I'd just not dare to fix it myself. 19:44
Voldenet to fix this probably `#if (defined(RTLD_DI_LINKMAP) || defined(OS_SunOS)) && !defined(DL_USE_GLIBC_ITER_PHDR)` should have RTLD_SELF added as a requirement 20:40
because there's "else" section for environments that support nothing ;) 20:41
lizmat and another Rakudo Weekly News hits the Net: rakudoweekly.blog/2020/02/24/2020-...red-noise/ 21:37
jnthn \o/ 21:39
lizmat++ # wow, busy week 21:44
MasterDuke brrt: how would we create templates for a lot of the sp_* ops? the interp code and lego jitted versions have loops in them 22:12
tellable6 MasterDuke, I'll pass your message to brrt
jnthn MasterDuke: Which ones, ooc?
I don't think many of 'em have loops... Conditionals maybe 22:13
MasterDuke sp_getlex_o was the one i was just looking at
jnthn How does it do the non-specialized getlex? 22:14
MasterDuke dunno, there is no getlex_o
but the regular getlex template is just `(template: getlex (copy $1))` 22:16
and the other getlex_(ni|nn|ns|no) just call MVM_frame_find_lexical_by_name 22:17
*other templaes
**templates
fwiw, a spesh log i was just looking at had these as the reason for the next most frequent expr jit bails: sp_bindlex_os, sp_getvt_o, sp_getvc_o, sp_fastbox_i_ic, getattr_o, sp_getlex_ins, sp_get_i64, sp_fastbox_bi_ic, assign, sp_bindlex_in, bindattr_o 22:21
jnthn I suspect sp_getvt_o, sp_getvc_o and sp_get_i64 are the easiest of them 22:22
Well, the last one is in theory trivial
Others a bit less so 22:23
MasterDuke heh, i was just looking at sp_get_i64 and i'm not sure how to do that somewhat complicated cast in a template
but maybe it's not needed
i've seen sp_fastbox_i_ic in a bunch of spesh logs 22:25
Voldenet i've kind of fixed the musl issue in dyncall, maybe everything will work now ¯\_(ツ)_/¯ 23:22
sena_kun Voldenet, wrote another email to the maintainer(s) and asked for a review, thanks for your efforts. 23:56