Monthly Archives: November 2011

Compile-time binary literals [via pseudorandom noise]

This is a great post that shows off the new user-defined literals feature in C++11, using it to implement binary number literals such as 1011101010111110_binary. Paul also shows off some great template metaprogramming to achieve this end including template specialization, variadic templates (with template parameter packs and template recursion), and the sizeof… operator, which I’d not previously come across.

Quite a collection of features to discuss in one post, but done clearly and cohesively.

Continue reading

Link | Posted on by | Tagged , , , , , , | Leave a comment

Smoother fonts in Fedora

I’ve just discovered there’s a way to get Fedora to display fonts on screen much more legibly using sub-pixel rendering (what Microsoft’s ‘ClearType’ does) and font hinting. It makes a world of difference on my screen, and should on any … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment