<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Thanks for your advice, everyone, I'll look into pybind11.</p>
<p>Best</p>
<p>Simon<br>
</p>
<br>
<div class="moz-cite-prefix">Le 27/04/2018 à 20:05, Kevin Thornton a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CALciEZf0VEU6vyrN7UNh8MLNQUvhdboSTDDnv70ahzsVm3tsUw@mail.gmail.com">
<div dir="ltr">Hi all,
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>But the real issue will be separating out the guts of your
code from the Rcpp/pybind11-specific stuff, as others have
mentioned.</div>
<div><br>
</div>
<div>--Kevin<br>
<br>
<div class="gmail_quote">
<div dir="ltr">On Fri, Apr 27, 2018 at 5:14 AM Dirk
Eddelbuettel <<a href="mailto:edd@debian.org"
moz-do-not-send="true">edd@debian.org</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Some folks told me that pybind11, ie at<br>
<br>
<a href="https://github.com/pybind/pybind11"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://github.com/pybind/pybind11</a><br>
<br>
is the one to use as Boost Python is stagnant. I have no
personal experience<br>
with pybind11 though.<br>
<br>
The question is a good. This (old) CRAN package has been
doing both R and<br>
Python from a joint C++ basis for years:<br>
<br>
<a
href="https://cran.r-project.org/package=fastcluster"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://cran.r-project.org/package=fastcluster</a><br>
<br>
but I also never looked in real detail at what it does.<br>
<br>
Dirk<br>
<br>
-- <br>
<a href="http://dirk.eddelbuettel.com" rel="noreferrer"
target="_blank" moz-do-not-send="true">http://dirk.eddelbuettel.com</a>
| @eddelbuettel | <a href="mailto:edd@debian.org"
target="_blank" moz-do-not-send="true">edd@debian.org</a><br>
_______________________________________________<br>
Rcpp-devel mailing list<br>
<a href="mailto:Rcpp-devel@lists.r-forge.r-project.org"
target="_blank" moz-do-not-send="true">Rcpp-devel@lists.r-forge.r-project.org</a><br>
<a
href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a><br>
</blockquote>
</div>
</div>
</div>
-- <br>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<p dir="ltr">Kevin Thornton</p>
<p dir="ltr">Associate Professor</p>
<p dir="ltr">Ecology and Evolutionary Biology</p>
<p dir="ltr">UC Irvine</p>
<p dir="ltr"><a href="http://www.molpopgen.org"
moz-do-not-send="true">http://www.molpopgen.org</a></p>
<p dir="ltr"><a href="http://github.com/ThorntonLab"
moz-do-not-send="true">http://github.com/ThorntonLab</a></p>
<p dir="ltr"><a href="http://github.com/molpopgen"
moz-do-not-send="true">http://github.com/molpopgen</a></p>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Rcpp-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Rcpp-devel@lists.r-forge.r-project.org">Rcpp-devel@lists.r-forge.r-project.org</a>
<a class="moz-txt-link-freetext" href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a></pre>
</blockquote>
<br>
</body>
</html>