lua-users home
lua-l archive

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


On Fri, Sep 24, 2010 at 4:08 PM, Alexander Gladysh <agladysh@gmail.com> wrote:
> Any volunteers to bring this wiki page up to date?
> http://lua-users.org/wiki/LuaVirtualization
> It still talks about 5.0.2...

Done.  Most of it remains the same in 5.1, except that the standard
library is virtualizable when accessed via method calls, which are
polymorphic, while function calls typically are not without special
redefinition.  A couple changes have been made in Lua 5.2 concerning
__pairs/__ipairs/__len.

Overall, Lua is not very virtualizable.  It's not like you can,
without invasive patching, define your own string type and have it be
used in all the places in the Lua language and C API where native
strings are used.  Neither can abstract the file system (virtual file
system) without patching places like the I/O that use the C stdio
[1-2].

[1] http://lua-users.org/lists/lua-l/2008-07/msg00345.html
[2] http://lua-users.org/lists/lua-l/2005-05/msg00178.html