LuaJIT has <a href="http:&#x2F;&#x2F;luajit.org&#x2F;ext_ffi.html" rel="nofollow">http:&#x2F;&#x2F;luajit.org&#x2F;ext_ffi.html</a> and Python has <a href="https:&#x2F;&#x2F;cffi.readthedocs.org&#x2F;en&#x2F;latest&#x2F;" rel="nofollow">https:&#x2F;&#x2F;cffi.readthedocs.org&#x2F;en&#x2F;latest&#x2F;</a> modeled after LuaJIT. The API for Lua is very clean for being magic free, something that cannot be said for the CPython API.