@neauoire It turns out it'd look like embedding Lua or something similarly small and putting it in charge of any allocations & lifecycle management.

Source:
That's what I did.