lua-users home
lua-l archive

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

On Mon, May 11, 2009 at 12:03 PM, John Hind <> wrote:
> In my view, it is better to re-package the API in a more sane and minimalist
> way taking advantage of multiple returns, flexible parameter lists and
> object orientation in Lua.

Absolutely. And first prize if most functionality can be made
cross-platform, i.e. do an abstraction layer.

There are of course things which are peculiar to Windows, such as
registry stuff, but a lot is common, e.g. think of how the Java
libraries abstract the underlying platform.

> It's a matter of philosophy: some prefer to write as little C as possible
> and get straight into the Lua domain (shallow binding); some (like me)
> prefer to write more C against the Lua C API, to present a more structured,
> Lua-friendly interface (deep binding).

There is something in between; write the minimum amount of C, and
complete the binding in Lua itself. For instance, luasocket.

steve d.