Gerrit Voss wrote:
> Hi,
> 
> On Mon, 2007-10-01 at 14:26 +0200, Marcus Lindblom wrote:
>> May I mention that the quest for performance is a bit at odds with
>> usability?
> 
> If you do it right not really, it is really nice if you can write the
> following:

[snip]

> executed without any performance penalty, where vel and acc are
> really OSG::Vec3f values. That is actually one of the few things that
> makes Fortran beautiful ;-). Ok the usual drawback of really ugly error
> messages applies ;-)

Yeah. Expression templates are kool. :) I suppose it will be better with 
C++0x and Concepts. However, clever use of +=/*= leads to efficient code 
too, without long compile times and horrible error messages.

>> For instance, if you want peak performance, you should not have
>> zero-initializing default ctors for vec/pnt classses.
> 
> that is true but changing this won't make us any friend ;-)

I'd love you more if you did. :) But I think you're right. :)

Also, perhaps it would make sense to make a Simd4f-class (that has it's 
MFSimd4f and GeoProp, and perhaps a Simd2d / Simd8ub, etc) for that 
extra over-teh-top speed. :)

Anyway, I think I'm rooting at some way to separate these concerns a bit 
so that one could focus fully on each:

  * Default user-friendly lib with most code inside a dll
  * Expression template lib
  * SIMD stores (so that one at least avoids copies)

Cheers,
/Marcus

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to