lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tue, 04 Aug 2009 15:50:35 +0300, Leo Razoumov <slonik.az@gmail.com> wrote:
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.