On Tue, Dec 27, 2016 at 5:15 PM, Marc Balmer <marc@msys.ch> wrote:
(The last part is annoying, I don't know yet how to hook that to the
Java garbage collector, Java lacks metamethods...)
There's finalize(), but people say, don't use it, because you don't
know when it happens. Although no more evil than when we do in Lua,
not so?
The most challenging part of mixing Lua and Java (I found) is keeping
two garbage collectors going. I managed to cut down on the garbage
generation created by Java reflection. Relevant because generally in
Android you release big resources manually anyway - better to be
explicit.