Skip to content
Discussion options

You must be logged in to vote

Codon uses its own ABI (which is essentially just the C ABI) that's totally independent of CPython's. So you're right that nanobind / pybind won't work unless you go through CPython first and then call Codon from there, either as a JIT or Python extension. If you wanted to call C/C++ directly from Codon without going through CPython, you could do so with from C import (currently supports plain C / extern "C", but we're planning to support C++ natively as well in the future).

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@smcdow
Comment options

@arshajii
Comment options

Answer selected by smcdow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants