[Rcpp-devel] advice on sharing C++ code across R and Python

Simon Barthelmé simon.barthelme at gipsa-lab.fr
Sat Apr 28 13:50:03 CEST 2018


Thanks for your advice, everyone, I'll look into pybind11.

Best

Simon


Le 27/04/2018 à 20:05, Kevin Thornton a écrit :
> Hi all,
>
> pybind11 is the best choice here.  It goes quite a bit beyond what 
> Boost Python did, including nice support for Numpy arrays, the buffer 
> protocol more generally, and an Eigen interface.  I've used it quite a 
> bit.
>
> But the real issue will be separating out the guts of your code from 
> the Rcpp/pybind11-specific stuff, as others have mentioned.
>
> --Kevin
>
> On Fri, Apr 27, 2018 at 5:14 AM Dirk Eddelbuettel <edd at debian.org 
> <mailto:edd at debian.org>> wrote:
>
>
>     Some folks told me that pybind11, ie at
>
>     https://github.com/pybind/pybind11
>
>     is the one to use as Boost Python is stagnant. I have no personal
>     experience
>     with pybind11 though.
>
>     The question is a good.  This (old) CRAN package has been doing
>     both R and
>     Python from a joint C++ basis for years:
>
>     https://cran.r-project.org/package=fastcluster
>
>     but I also never looked in real detail at what it does.
>
>     Dirk
>
>     -- 
>     http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
>     <mailto:edd at debian.org>
>     _______________________________________________
>     Rcpp-devel mailing list
>     Rcpp-devel at lists.r-forge.r-project.org
>     <mailto:Rcpp-devel at lists.r-forge.r-project.org>
>     https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
>
> -- 
>
> Kevin Thornton
>
> Associate Professor
>
> Ecology and Evolutionary Biology
>
> UC Irvine
>
> http://www.molpopgen.org
>
> http://github.com/ThorntonLab
>
> http://github.com/molpopgen
>
>
>
> _______________________________________________
> 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/20180428/b312b8ad/attachment.html>


More information about the Rcpp-devel mailing list