C++ + luajit FFI = horrible cross-platform messes.
A global mutex.
Measure times down to the nanosecond. Except not really.
Download things with libcurl without blocking Lua.
Load C libraries using package.path
.
The preferred build system is meson, but a basic makefile is also provided for those who do not wish to install it.
You will need:
- A recent version of meson.
- A working c99 compiler.
- A working c++11 compiler.
- A working Moonscript compiler.
- Either libcurl installed in some place meson/your linker will think to look for it or, on Windows and OSX, a working CMake installation.
Building on OSX and Linux should be as simple as running the following:
cd /path/to/ffi-experiments
meson build
meson compile -C build
If you are on Windows, you should do this from the relevant VS native tools command prompt.
Should you wish to statically link dependencies, simply include -Ddefault_library=static
with the meson build
command.