just in general the fact that it leaks memory suggests to me that it's not something high quality and well maintained, which makes me not want to commit myself to it

I completely understand the worry. Just to clarify, the reason I wasn't too worried about the module was that the module's author, Father Chrysostomos / sprout, is one of the Perl 5 Porters. However, I just used Test::LeakTrace on a simple script, and unfortunately, according to that module it does appear to leak a lot.

use warnings; use strict; use Devel::Size 'total_size'; $Devel::Size::warn = 0; use Test::LeakTrace; use JE; leaktrace { my $j = JE->new; $j->eval('function foo (x) { return x / 10; }'); my $rv = 0+$j->{foo}->(50); }; my $j = JE->new; print total_size($j), "\n"; # e.g. 434280 $j->eval('function foo (x) { return x / 10; }'); print total_size($j), "\n"; # e.g. 440614 for (1..100_000) { my $rv = 0+$j->{foo}->(50); } print total_size($j), "\n"; # e.g. 441601

In reply to Re^7: Extending a perl program with Scheme, Lua, or JS by haukex
in thread Extending a perl program with Scheme, Lua, or JS by bcrowell2

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.