[C++-sig] Need strategic advice designing Boost/Python program

Ralf W. Grosse-Kunstleve rwgk at yahoo.com
Fri Apr 27 05:01:32 CEST 2007


> As a fairly new boost.python user, I would like some expert advice on
> which strategy to use in using Boost and Python, so that I don't go
> down a dead end.  A clean interface is more important to me than
> efficiency.

I think you can have both. Only the implementations tendy to
become dirty if you go for speed.

> I am writing a numerical solver.  I want most of the code to be in
> Python for ease of development.  However, I want to implement some
> objects in C++ for speed, because they use iterative solution methods.

This is exactly our situation. You may want to look at the
"scitbx", which is a library for a bigger project (cctbx.sf.net).
It is built from day one on top of Boost.Python. There is a little
bit of an introduction here:

  http://cci.lbl.gov/~hohn/scitbx-tour.html

The backbone of our system is the array family, with the most important
types being reference-counted C++ arrays (af::shared, af::versa):

  http://cci.lbl.gov/~hohn/array-family-tour.html

The pages are a bit rough and slightly out of date. You can get
standalone scitbx bundles here:

  http://cci.lbl.gov/scitbx_bundles/

They come with and without Python included and have no external
dependencies (other than an OS and a C++ compiler).

Ask questions here or at:
  http://www.phenix-online.org/mailman/listinfo/cctbxbb

Ralf




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20070426/4276343b/attachment.htm>


More information about the Cplusplus-sig mailing list