HN2new | past | comments | ask | show | jobs | submitlogin

For anyone looking for a more usable version of C++/Python interop, I can't recommend Cppyy[0] highly enough. You can use any C++ code/libraries from Python without the need to write any bindings. I created an example project here to test it out[1].

0. https://cppyy.readthedocs.io/en/latest/

1. https://github.com/jclay/cppyy-knearestneighbors-example



From your second link:

" Note: I'm using Python 2

This is because even the latest clang-python in Debian (for clang 6) provides Python 2 bindings only. "

Is this still true?


I believe it's no longer the case. The maintainer of Cppyy was cautioning that the Python 3 support was somewhat experimental at the time, but I believe it's officially supported now. Either way, it could have been solved by building from source, but I was feeling lazy :)


I was just wondering if there was something like Rcpp but for Python, looks like this is it. Thanks for sharing



Looks a lot like what you can do with PyROOT... oh it's even based on cling.


Wow




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: