<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">> As a fairly new boost.python user, I would like some expert advice on<br>> which strategy to use in using Boost and Python, so that I don't go<br>> down a dead end. A clean interface is more important to me than<br>> efficiency.<br><br>I think you can have both. Only the implementations tendy to<br>become dirty if you go for speed.<br><br>> I am writing a numerical solver. I want most of the code to be in<br>> Python for ease of development. However, I want to implement some<br>> objects in C++ for speed, because they use iterative solution methods.<br><br>This is exactly our situation. You may want to look at the<br>"scitbx", which is a library for a bigger project (cctbx.sf.net).<br>It is built
from day one on top of Boost.Python. There is a little<br>bit of an introduction here:<br><br><span> <a target="_blank" href="http://cci.lbl.gov/%7Ehohn/scitbx-tour.html">http://cci.lbl.gov/~hohn/scitbx-tour.html</a></span><br><br>The backbone of our system is the array family, with the most important<br>types being reference-counted C++ arrays (af::shared, af::versa):<br><br><span> <a target="_blank" href="http://cci.lbl.gov/%7Ehohn/array-family-tour.html">http://cci.lbl.gov/~hohn/array-family-tour.html</a></span><br><br>The pages are a bit rough and slightly out of date. You can get<br>standalone scitbx bundles here:<br><br><span> <a target="_blank" href="http://cci.lbl.gov/scitbx_bundles/">http://cci.lbl.gov/scitbx_bundles/</a></span><br><br>They come with and without Python included and have no external<br>dependencies (other than an OS and a C++ compiler).<br><br>Ask questions here or at:<br><span> <a target="_blank"
href="http://www.phenix-online.org/mailman/listinfo/cctbxbb">http://www.phenix-online.org/mailman/listinfo/cctbxbb</a></span><br><br>Ralf<br><br></div></div><br>
<hr size=1>Ahhh...imagining that irresistible "new car" smell?<br> Check out
<a href="http://us.rd.yahoo.com/evt=48245/*http://autos.yahoo.com/new_cars.html;_ylc=X3oDMTE1YW1jcXJ2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDbmV3LWNhcnM-">new cars at Yahoo! Autos.</a>
</body></html>