Live data from Hacker News

Cppyy – Automatic Python-C++ bindings

cppyy.readthedocs.io

1–10 of 25 posts

Re: Cppyy – Automatic Python-C++ bindings

#3
This is super interesting but if I am looking to bring C++ into my Python code base it would be because performance is important enough to do so. With that in mind I am not sure how this stacks up against compiled half steps like Cython or foreign function interfaces likes ctypes or CFFI instead.

Re: Cppyy – Automatic Python-C++ bindings

#7
post #6

How does this compare to pybind11?

If you have a C++ project, you want to have Python bindings, and you don't want to share your header files, pybind11 is the way to go.

If you want to / can share your header files, cppyy is a very convenient way of being able to call your C++ code from Python. I'm not sure if there is a way to use it without headers.

Re: Cppyy – Automatic Python-C++ bindings

#8

This is super interesting but if I am looking to bring C++ into my Python code base it would be because performance is important enough to do so. With that in mind I am not sure how this stacks up against compiled half steps like Cython or foreign function interfaces likes ctypes or CFFI instead.

If you have a Python code base and are looking to speed up some part of it, Cython is the way to go. Pybind11 and cppyy are more for cases where you have a bunch of C++ code that you want to provide a Python interface for.
Post reply on HN