Archive for the ‘C++’ Category

C++ introspection library and portable industrial graphical components for GPL and commercial use

Hi,
I’ve just found out two libraries which seem to be very interesting.
The first, CAMP, is an introspection library for C++. It appears to be well-thought and easily usable in concrete projects. Indeed, it isn’t (at all !) intrusive, which means you don’t have to modify existing classes to expose them to introspection. The example given [...]


Writing powerful concurrent video-games with ACCLib in C++

I’ve been recently involve in an amazing project, the first multithreaded game engine with real performance on multicore processors.
We are all aware of the lack of video game performance on multicore, this engine claim linear performance scaling on manycore processors.
About x4 performance gain on a quadcore HT corei7 (see here) . Independent results with cinebench [...]


Writing generic functors

Hi all,
Maybe you already know this trick… Maybe not.
Maybe one day, you would have liked to write a functor with a total genericity…
Let’s say you have this functor.

?View Code CPP1
2
3
4
5
6
7
struct Printer
{
void operator() (const MyClass& obj)
{
std::cout << obj.toString() << endl;
[...]


Road to C++0x : Variadic Templates

The C++ Standards Committee has worked on many new features that will be added to C++. Since the new version of C++ is not ready for the moment, everybody use the ‘C++0x’ name, hoping that the ‘x’ will become ‘9′, that’s to say the standard draft of C++0x will be the new official one during [...]


Generic Programming in C++

The “generic programming” paradigm is more and more used in C++.
For example, the Boost library uses intensively this paradigm, so that it makes all its modules adaptable and reusable.
I’ve written two articles, in French, about generic programming techniques on my French website on Developpez :

Trait and policy classes (Classes de traits et de politiques)
Template rebinding

I [...]