macstl 0.3.1 review

Download
by rbytes.net on

A new C++ source library designed to bring the Macintosh into the world of modern generic programming.

License: Shareware
OS: Mac OS X
File size: 220K
Developer: Pixelglow Software
Buy Now
Price: $99.00
Updated: 25 Apr 2006
0 stars award from rbytes.net


A new C++ source library designed to bring the Macintosh into the world of modern generic programming. macstl gives you the elegance and efficiency of programming with templates. macstl is distinctly mac as well -- you program with Mac OS X concepts and technologies using a cutting-edge interface.macstl offers a new implementation of std::valarray optimized for the Altivec.

It runs inline arithmetic 7.76x faster than gcc 3.1 and inline transcendentals 14.21x faster than gcc 3.1. Even with Altivecoptimizations off, it is almost 2x faster than gcc, due to the ruthless weeding out of redundant loads and stores.

The Mach copy-on-write vector is a partial specialization of std::vector for the Mach allocator. It neatly uses the OS vm_copy facility to "get around" thread safety issues when doing copy-on-write and reference counting. As a result, std::vector can be copied, passed back by value and enlarged without the same overheads.

What's New:
Fixed class scope vector typedefs, missing PowerPC intrinsics header, vector initializer syntax for FSF 3.4 [ILi*].
Added complex conj function for vec and valarray [ILi*].
Improved valarray expression performance: v1 [slice].
Improved valarray code generation: CSE, inlining limits, literal terms, array term elements, statarray construction, compiling -faltivec without -maltivec for Apple gcc 4.0.
Added refarray class [PBa].
Fixed buffer overflow in integral valarrays for SSE2; added optimizations for valarray expressions: v1 >> k and v1

macstl 0.3.1 keywords