C++ Polymorphism; Vector Programming with GCC

There is an interesting but rarely mentioned technique in a C++ context: signature-based polymorphism, a more permissive variation of subtype polymorphism, usually called duck typing. Two objects having nothing in common can share an implicit interface and be commonly manipulated by such an interface with no inheritance involved. Part I and Part II. Also, making use of SIMD units such as MMX, SSE, or AltiVec is usually a tradeoff of portability for speed. Recent versions of GCC include an extension that allows you to write vector code without sacrificing portability. Take a look at how to use it.

8 Comments

  1. 2007-04-22 10:10 am
  2. 2007-04-22 10:44 am
  3. 2007-04-23 7:08 am
  4. 2007-04-23 1:25 pm
    • 2007-04-23 6:15 pm
  5. 2007-04-23 4:30 pm
    • 2007-04-23 5:58 pm
  6. 2007-04-25 2:12 am