Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provide an FFI binding for pure Lua luaposix #177

Open
gvvaughan opened this issue Nov 3, 2014 · 3 comments
Open

provide an FFI binding for pure Lua luaposix #177

gvvaughan opened this issue Nov 3, 2014 · 3 comments
Labels

Comments

@gvvaughan
Copy link
Contributor

luajit is much faster at FFI calls than marshaling types into and out of a C API call. As long as all the C API bindings we have at the moment are sufficiently minimal, we can certainly provide luajit FFI equivalents that the Lua wrapper functions will still work with.

I don't know that it's worth also providing an Alien FFI binding, unless the syntax is similar enough to luajit FFI that it's possible to generate one from the other or otherwise automate the process of keeping them all in sync. ISTR there is a luajit FFI compatible FFI library for Lua 5.1/5.2 though, which would be a better option.

With a full set of FFI bindings, we could drop the Lua C API bindings entirely, and make luaposix into a pure Lua module!

@gvvaughan gvvaughan added the idea label Nov 3, 2014
@capr
Copy link

capr commented May 1, 2015

I am currently looking at starting a POSIX ffi binding myself. Where do I get a set of clean and complete POSIX (2008 I suppose?) headers?
Thanks.

@gvvaughan
Copy link
Contributor Author

I'm not sure there is such a thing. I've been following the SUSv3 specifications for posix from the open group. You can reach the relevant pages from the most recent luaposix html documentation, or a bit of search engine archaeology - although it takes a little patience to navigate to the free online specs from the top of their website.

@capr
Copy link

capr commented May 2, 2015

Thanks for the tips. I'll look at SUSv3 and try to sort out how all
these standards overlap and what to pick from each one (I'm only
interested the parts that work on Mac & Linux right now).

On 5/1/15, Gary V. Vaughan notifications@github.com wrote:

I'm not sure there is such a thing. I've been following the SUSv3
specifications for posix fro. The open group. You can reach the relevant
pages from the most recent luaposix html documentation, or a bit of
searching engine archaeology - although it takes a little patience to
navigate to the free online specs from the top of their website.


Reply to this email directly or view it on GitHub:
#177 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants