lua-users home
lua-l archive

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


"Sooner, not later, you are going to run into something that requires you to understand what is going on."

I agree.  The C API looks big and scary at first, but once you get the fundamentals you'll find (if you're comfortable with C) that it's actually quite easy to use and incredibly well thought out.  You'll soon be able to write a quick C function to perform some function without really having to stop and think.

On 13 March 2016 at 17:20, Andrew Starks <andrew@starksfam.org> wrote:

On Sun, Mar 13, 2016 at 09:51 Nagaev Boris <bnagaev@gmail.com> wrote:
On Sun, Mar 13, 2016 at 5:42 PM, Jose Marin <jose_marin2@yahoo.com.br> wrote:
> Hi!
>
>
> What's the best/easier/faster Lua binding library, in your opinion?
>
> Thanks
>
>
> Jose
>
>

Lua C API.


--


Best regards,
Boris Nagaev


IMHO this is the only correct answer, if you are new to Lua. Sooner, not later, you are going to run into something that requires you to understand what is going on. Any binding generator is going to be built upon the C API and without a working understanding of how that works, you're likely to be lost.

You'll "get" it quickly. You may hate how tedious it feels at first, but you're likely to get a feel for how to avoid the tediousness or at least understand it, in short order.

To contrast, The C API is simple whereas binding generators attempt to make things easy. Start with simple, if you need to be successful.

- Andrew