codon
codon copied to clipboard
Can I use codon with Cffi?
I didn't find any discussion group.
You can call C functions with from C import in Codon (docs). See also "Other types and features" for how to express some C types in Codon. Generally calling C functions is very seamless/efficient (e.g. no object conversions are needed) since it's all LLVM-based anyway.
I am closing this issue for now.
You can (if you really want) use cffi via from python import ctypes, although this is highly discouraged---please use Codon's native from C import if possible.