2 ms·
LuaJIT has http://luajit.org/ext_ffi.html http://luajit.org/ext_ffi.html and Python has https://cffi.readthedocs.org/en/latest/ https://cffi.readthedocs.org/en/
by sitkack 11y ago
LuaJIT has http://luajit.org/ext_ffi.html http://luajit.org/ext_ffi.html and Python has https://cffi.readthedocs.org/en/latest/ https://cffi.readthedocs.org/en/latest/ modeled after LuaJIT. The API for Lua is very clean for being magic free, something that cannot be said for the CPython API.