lua-users home
lua-l archive

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


On Tue, Aug 31, 2010 at 2:29 AM, Pan Shi Zhu <pan.shizhu@gmail.com> wrote:
> For example, if you have a vanilla lua without any modules, how can
> you do socket communication without writing any C code? how can you
> play music without any C code?

True, but that is why there are semi-standard external libraries like
LuaSocket and LuaFileSystem.

Alien provides a FFI and there are some impressive examples of Lua
speaking to libraries just using that bridge.

The question is more, how can you justify _application_ code in C?