Re:Cppyy – Automatic Python-C++ bindings
by gshulegaard on Tuesday May 07, 2019 @11:59AM
(#19850708)
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.
[ Parent
| on HN ]
Re:Cppyy – Automatic Python-C++ bindings
by carlsonmark on Tuesday May 07, 2019 @12:43PM
(#19851128)
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.
Cython unfortunately doesn't have a very good pypy story, which cppyy does.
Re:Cppyy – Automatic Python-C++ bindings
by arcticbull on Tuesday May 07, 2019 @02:42PM
(#19852220)
Check out the Rust python bindings too; specifically PyO3. If you're starting from scratch it's worth exploring. [1]
[1] https://www.benfrederickson.com/writing-python-extensions-in...