lua-users home
lua-l archive

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


Thanks for the reply.  So if I'm not supporting userdata (a Lua
implementation which doesn't speak to C, nor allow any C extension)
and coroutine, is a copying collector doable?

I apologize if this sounds pretty silly...

Harry Xingzhi Pan

On Fri, May 27, 2011 at 7:46 AM, Doug Currie <doug.currie@gmail.com> wrote:
> 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
>
>
>