Hacker News new | ask | show | jobs
by hatred 2603 days ago
Does anyone know of any well known tools that generate bindings in other languages e.g., Python from C++ code?

IIUC, this tool does the opposite i.e., generate C++/other language bindings from Python

1 comments

The entirety of cpython’s runtime is exposed as a C api, so you can easily manipulate python objects in c or any language with a ffi. boost::python provides a c++ wrapper for cpython, which can be used to call both c/c++ in python and vice versa