Hi,

C FFI is very easy in Nim. There is essemtially 3 way of doing it :

  * Manually wrap the thing you need.
  * Use [c2nim](https://github.com/nim-lang/c2nim) to generate a starting point 
for your bindings and work from there
  * Use [futhark](https://github.com/PMunch/futhark) to generate bindings 
automatically at compile-time.



Example of C library wrqpped :

  * <https://github.com/SciNim/nimfftw3/tree/master>
  * <https://github.com/nim-lang/nim-zmq/tree/master/zmq>
  * <https://github.com/nim-lang/zip>


Reply via email to