Hi Gang: I have a tangential question. We have several R packages based on Rcpp to call C++ code. Rcpp makes it so easy! However, I am often asked by Python users: can we make similar packages for that platform? I’m a newb with respect to Python (after 30 years with S/R and C++ I am still learning!) So, I have a question. Is there something like an equivalent with respect to Rcpp for Python? By that I mean, I want to call C++ code from Python with the ability to pass R-like objects, or similar, to C++. Exposing the Python RNG to C++ would also be extremely helpful. Please let me know. Thanks Happy Holidays! -- Rodney Sparapani, Associate Professor of Biostatistics Director, Wisconsin Chapter of the American Statistical Association Institute for Health and Equity, Division of Biostatistics Medical College of Wisconsin, Milwaukee Campus -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20221203/71f2188f/attachment.html>
[Rcpp-devel] Rcpp equivalent for Python?
3 messages · rsparapa at mcw.edu, Ilya Kipnis, Dirk Eddelbuettel
I've heard of things like Cython? But in any case, you should be able to get pretty far on the various "official" packages IIRC.
On Sat, Dec 3, 2022 at 10:09 AM Sparapani, Rodney <rsparapa at mcw.edu> wrote:
Hi Gang: I have a tangential question. We have several R packages based on Rcpp to call C++ code. Rcpp makes it so easy! However, I am often asked by Python users: can we make similar packages for that platform? I’m a newb with respect to Python (after 30 years with S/R and C++ I am still learning!) So, I have a question. Is there something like an equivalent with respect to Rcpp for Python? By that I mean, I want to call C++ code from Python with the ability to pass R-like objects, or similar, to C++. Exposing the Python RNG to C++ would also be extremely helpful. Please let me know. Thanks Happy Holidays! -- Rodney Sparapani, Associate Professor of Biostatistics Director, Wisconsin Chapter of the American Statistical Association Institute for Health and Equity, Division of Biostatistics Medical College of Wisconsin, Milwaukee Campus
_______________________________________________ Rcpp-devel mailing list Rcpp-devel at lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20221203/c091892d/attachment.html>
On 3 December 2022 at 15:08, Sparapani, Rodney wrote:
| I have a tangential question. We have several R packages | based on Rcpp to call C++ code. Rcpp makes it so easy! | However, I am often asked by Python users: can we make | similar packages for that platform? I’m a newb with | respect to Python (after 30 years with S/R and C++ I am | still learning!) So, I have a question. Is there something | like an equivalent with respect to Rcpp for Python? | By that I mean, I want to call C++ code from Python | with the ability to pass R-like objects, or similar, to C++. | Exposing the Python RNG to C++ would also be | extremely helpful. Please let me know. Thanks pybind11 comes to mind but because Python has a richer set of base types (and other differences) there is no one-to-one match to Rcpp. The thread is off-topic here so let's maybe try to keep the list focussed. Dirk
dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org