← Back to team overview

dolfin team mailing list archive

Re: Boost Python

 

On Tue, Oct 04, 2005 at 07:29:48PM -0400, Faheem Mitha wrote:

...

> See the Boost Python tutorial at 
> http://www.boost.org/libs/python/doc/tutorial/doc/html/index.html.
> 
> Also, see http://www.boost-consulting.com/writing/bpl.html
> 

...

This looks quite nice, the benefit it has over SWIG is that it uses
the C++ compiler itself instead of its own parser.

I think SWIG is very hard to beat though: it requires zero changes to
the source you want to convert, I just feed it the header files. It
can convert to Tcl, Python, Perl, Guile, Java, Ruby, Scheme, Ocaml,
etc. (basically any language) by just giving another switch, and it's
very mature and widely used.

>From a time-saving and maintainability point of view, SWIG definitely
has the edge on Boost.Python. We should keep an eye on it though, it
does seem to have a cleaner architecture.

  Johan




Follow ups

References