lua-users home
lua-l archive

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





On Thu, Dec 6, 2012 at 4:59 AM, steve donovan <steve.j.donovan@gmail.com> wrote:
On Thu, Dec 6, 2012 at 2:43 PM, Craig Barnes <craigbarnes85@gmail.com> wrote:
> Do you already have an idea of how you will integrate Go and Lua? This is
> something that I've been considering for a while but haven't been entirely
> satisfied with the current options.

Yes, golua (several forks available, one for 5.2) does the basics of
providing the API in a Go-consumable form.

But still, it's a pain to make Go functions available in Lua.  I have
an extension library around which makes it much easier to register Go
functions (uses reflection, yay!) and marshalls maps and slices
appropriately.  I can dig it out if anyone is interested.


You should put it on github!

That can be interesting, and if there are some cool libraries in Go they could be accessible to Lua with that.

Matthieu