3 ms·
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 wit
by jclay 8y ago
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/ https://cppyy.readthedocs.io/en/latest/
1. https://github.com/jclay/cppyy-knearestneighbors-example https://github.com/jclay/cppyy-knearestneighbors-example
- cheez 8y agoWow
- cozzyd 8y agoLooks a lot like what you can do with PyROOT... oh it's even based on cling.
- kyllo 8y agoI was just wondering if there was something like Rcpp but for Python, looks like this is it. Thanks for sharing
- mbeex 8y agoFrom 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?
- jclay 8y agoI 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 :)
- basementcat 8y agoThis reminds me of scipy weave https://docs.scipy.org/doc/scipy-0.18.1/reference/tutorial/weave.html https://docs.scipy.org/doc/scipy-0.18.1/reference/tutorial/w...