home mail me! RSS (2.0) feed

Brief intro to Boost and TR1

Boost is a library of helping constructs for modern C++ development. What sets Boost apart from most other libraries is that it is infrastructural and horizontal in that it extends the vocabulary of the developer in any kind of problem solving, no matter what the domain.
This quite unique feature - along with the fact that […]

cpsh 1.0

Ok, I finally finalized a first official version of cpsh, 1.0.
The project is found at Google Code, where there is a download area with precompiled binaries.
This version works on Mac OS X 10.4 (and probably older), with either G or Intel processor, and on Windows XP/2000.
Building
To build it on OS X, you need XCode 2.x […]

cpsh - scripting in C++

I woke up last night with a conviction that C++ is not a worse “scripting” language than Perl or Ruby. After a few minutes awake, I had to turn on the computer and prove this nightly conjecture. I created a draft scripting environment for C++ in a few hours.
I call my nocturnal embryo cpsh for […]

embed_type - wrapping types in C++

This is a C++ library I created to be able to wrap types while specifying - in compile-time - what operations, if any, are to be preserved, i.e., what homomophisms should be injected into the wrapping type. One can view it as a very flexible type alias system.
I issued this library as an informal proposal [...]

gen_hierarchy - injecting base classes in C++

Would you like to generate a hierarchy of types on the fly using C++? Well, at least on-the-compilation-fly…
You could always use Andrei’s magnificent Loki library, or you could use my proposal, gen_hierarchy.
In short, I allow for two distinct types of hierarchies:

Spine-like, with the given types protruding as maximal elements on that spine.
A “simple” chain.

Let us [...]

Spirit: parsing without leaving C++

When diving down among the various parser generators and compiler tools around, there is another one – beside BNFC – that sticks out: Spirit. A template-oriented library that is part of the terrific Boost libraries (http://www.boost.org.)
Whereas most tools rely on code generation, and even code generation generation (BNFC…), Spirit is a metaprogramming library that describes [...]