2 ms·
Followup, since it's too long since my reply to edit: How are you assuming Inline::Perl5 works? Did you look into it and these are issues you found, or are th
by kbenson 11y ago
Followup, since it's too long since my reply to edit:
How are you assuming Inline::Perl5 works? Did you look into it and these are issues you found, or are these from how you assume it works?
Inline::Perl5 spins up an embedded perl5 interpreter (libperl I assume), and handles the data marshaling transparently. I assume (having not looked too closely at it's implementation), that it's sort of like a reverse XS. It looks into the perl5 guts, runs perl5 code, and exposes variables and functions to Perl 6. I see no reason to assume it wouldn't be using SVREFCNT_int and SVREFCNT_dec or equivalents as needed on scope changes to handle this.
In fact, looking at the Inline::perl5 repo now, it appears they are doing quite a bit with the refcnt functions[1].
1: https://github.com/niner/Inline-Perl5/search?utf8=%E2%9C%93&q=refcnt&type=Code https://github.com/niner/Inline-Perl5/search?utf8=%E2%9C%93&...