<div dir="ltr">Hey Geoffrey, <div><br></div><div>Let's definitely take this off (this) list.  The discussion could get involved :).</div><div><br></div><div>Be Well</div><div>Anthony</div></div><div class="gmail_extra">

<br><br><div class="gmail_quote">On Tue, Jul 16, 2013 at 7:15 PM, Geoffrey Irving <span dir="ltr"><<a href="mailto:irving@naml.us" target="_blank">irving@naml.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">On Tue, Jul 16, 2013 at 4:51 PM, Anthony Scopatz <<a href="mailto:scopatz@gmail.com">scopatz@gmail.com</a>> wrote:<br>
> Hi Geoffrey,<br>
><br>
> Not to toot my own horn here too much, but you really should have a look at<br>
> xdress (<a href="http://xdress.org/" target="_blank">http://xdress.org/</a> and <a href="https://github.com/xdress/xdress" target="_blank">https://github.com/xdress/xdress</a>).  XDress<br>
> will generate a wrapper of the Force class for you and then also create a<br>
> custom numpy dtype for this class.  In this way, you could get exactly what<br>
> you want.<br>
<br>
</div>Unfortunately it's unlikely to work out of the box, since it uses<br>
gccxml which appears to still be based on gcc 4.2.  All of our code is<br>
C++11, and we need to preserve portability to horrible places like<br>
Visual Studio (yes, these two constraints are just barely compatible<br>
at the moment).<br>
<div class="im"><br>
> If you run into any trouble, let me know and I'll be sure to help you out!<br>
> This is the kind of thing that xdress is supposed to do so bugs here are a<br>
> big priority for me personally =)<br>
<br>
</div>We're currently using a custom Python binding layer which I wrote a<br>
while ago after getting fed up with boost::python.  Our system is<br>
extremely lightweight but also limited, and in particular is missing a<br>
few key features like automatic support for named and default<br>
arguments (since these can't be introspected inside C++).  It'd be<br>
great to chat more about our two feature sets and whether there are<br>
opportunities for collaboration and/or merging.  I'm not sure if this<br>
list is a good place for that discussion, so we could optionally take<br>
it off list or to skype if you're up for that (send me an email<br>
directly if so).<br>
<br>
Here are links to our system, which unfortunately is undocumented at the moment:<br>
<br>
    <a href="https://github.com/otherlab/core" target="_blank">https://github.com/otherlab/core</a><br>
    <a href="https://github.com/otherlab/core/blob/master/python/ClassTest.cpp" target="_blank">https://github.com/otherlab/core/blob/master/python/ClassTest.cpp</a><br>
# Unit test for wrapping a class<br>
<div class="HOEnZb"><div class="h5"><br>
Geoffrey<br>
_______________________________________________<br>
NumPy-Discussion mailing list<br>
<a href="mailto:NumPy-Discussion@scipy.org">NumPy-Discussion@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/numpy-discussion" target="_blank">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a><br>
</div></div></blockquote></div><br></div>