Follow

I find that the best way to experiment with new libraries with C API is using LuaJIT FFI. Throw in a bit of ffi-reflect [2] and inspect [3] and it's the perfect REPL combo to try out a new library (let's be honest, code extracted documentation a-la doxygen is rarely a good how-to guide).

[1] luajit.org/ext_ffi_tutorial.ht
[2] github.com/corsix/ffi-reflect
[3] github.com/kikito/inspect.lua

Sign in to participate in the conversation
Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!