<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><div style="text-align: left;">

</div><style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
<div style="text-align: left;">Hi again!<br><br>&gt; How would you use C code with a C++ template library? Blender renderer <br>&gt; (which is the time consuming module) is written in C, Blitz++ is <br>&gt; written in C++. <br><br>Wouldn't
creating extern "C" functions which wrap the C++ templated code work?
Ugh no, well yes but no, I just did some tests and I understand there
are problems in other places like the fact that at one point one would
need to expose the C++ types directly to the C code. That would then
require the C++ compiler a bit everywhere ( just renaming legitimate .c
files to .cpp would do it, but that is bad ). A problem indeed. Doing
mainly C++ didn't help me in foreseeing that issue!<br><br>&gt; Personally, I would choose SIMDx86 (http://simdx86.sourceforge.net), <br>&gt; which provides optimized versions of each arch (SSE/3dNow, and I'm <br>&gt; working on the AltiVec/Cell parts myself, check <br>&gt; http://freevec.org/category/simd/algorithms/algebra/matrix_multiplication) <br>&gt; and includes both C and C++ interfaces, but that would require a <br>&gt; fundamental change in Blender. Such a thing has been discouraged <br>&gt; (from discussions in #blendercoders), so unless you're prepared to <br>&gt; redo most of Blender code only to have a rejected patch of ~3MB, I'd <br>&gt; suggest you help in reworking the existing infrastructure instead. <br>&gt; Same goes for GSL and other math libraries.<br><br><br>Convinced!
:) However, I'll let math people do the math job, I don't have the
knowledge to actually CODE math-related things ( although I have learnt
some bits in the last months ). I'm more interested in MVC and UI (
that is my full time job ) so when the 2.5 branch takes off I'll look
into it ( and try to get rid of the C++ habits )!<br><br>Ciao<br>Daniel<br><br>PS:I didn't know SIMDx86  ! thanks for the link!<br>PPS: Konstantinos: sorry if you already received this mail, I messed up with the reply buttons!<br></div><br /><hr />Plus de 15 millions de français utilisent Windows Live Messenger !  <a href='http://www.windowslive.fr/messenger/' target='_new'>Téléchargez Messenger, c'est gratuit !</a></body>
</html>