In my application most modules aren't pure Lua, or pure C, but hybrid.
I wonder what's the recommended "layout" for such modules.
So far I've found two approaches:
The posix module uses the name "posix_c" for the C module. Users aren't supposed to use this module. The Lua module, simply named "posix", imports (and augments) this module.
The Awesome window manager exports the C part of the module to the global namespace. Since this name isn't in
package.loaded, the Lua module can have the same name.
What is the method you recommend? Are there other approaches?