|
The intended audience of my efforts is "Matlab crowd" who are accustomed to a concept of free lunch.
Then you can at least try and use lazy evaluation: http://lua-users.org/lists/lua-l/2006-05/msg00204.html That gives a lot of free lunch.Since Lua GC means that lifetime of _any_ object can extend arbitrarily long (or until next gc "collect"), there is no way to automatically reclaim temporaries other than writing hacks that will be incorrect in corner cases.