lua-users home
lua-l archive

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


On May 27, 2011, at 2:28 AM, Xingzhi Pan wrote:

> wondering if it's possible to replace it with a moving collector (e.g., a copying collector)

There are many Lua libraries written in C that depend on userdata not moving. If your implementation supports C libraries, then you will need to keep these pinned down. If your implementation does not support loadable libraries, then you may be able to eliminate userdata altogether.

There are some Lua libraries written in C that depend on threads not moving. 

e