[SciPy-Dev] Bundling Boost?

Pauli Virtanen pav at iki.fi
Sun Oct 7 12:48:15 EDT 2012


07.10.2012 19:21, Charles R Harris kirjoitti:
[clip]
> I think using the boost library is a good idea. It is well tested and
> looks to support quad precision, something we will probably want at some
> point. It also looks to be highly templated and tightly integrated, so I
> suspect getting it properly interfaced might be non-trivial. The same
> holds for the distributions, but we have done much the same. It might be
> worth looking over the boost classes for some ideas.
> 
> As to the size of the code, the current scipy/special library is ~40MB
> and I expect we can get rid of some of that. We should check for LLVM
> compatibility to make sure Apple isn't a problem, but it looks like most
> other C++ compilers will work, Boost does try hard for universality.
> 
> Compile times will probably increase if we keep all the templates.

Integrating it is actually not so hard, it's here if someone wants to
try (e.g. if it works at all on OSX):

	https://github.com/pv/scipy-work/commits/special-boost

and you get `scipy.special._ufuncs_cxx.jv`.

-- 
Pauli Virtanen




More information about the SciPy-Dev mailing list