I have been working on a set of efficient C++ classes for storing N-bit (N<=64) values at arbitrary bit offsets into a buffer. Essentially a way to address memory bit-wise, rather than the usual byte-wise or word-wise. The classes support either fixed-sized bitfield storage (eg. say 27-bit values), or compressed values where small numbers are… Continue reading BIT-aligned storage
Tag: programming
Installing GCC-4.3.1
I sometimes see even seasoned developers be reluctant to use a different gcc version (ie. to reproduce a potentially compiler-specific issue or just to experiment with new optimisations or features). The reason is a fear of breaking their system by installing multiple compilers, or even by replacing their system compiler with a new one. But… Continue reading Installing GCC-4.3.1
Suduko solver
There are probably tons of these already available, but here is a quick suduko solver (in Perl): #! /usr/bin/perl # Example: # # echo $’ 2 \n 1 9 4 \n 2 1 5 9\n3 6 \n 68 41 5\n 427 8 \n 51 \n 7 3 \n79 5 ‘| perl suduko-solve.pl # use strict;… Continue reading Suduko solver
Visual Studio limitations
MySQL 5.1 is moving to a new system for building the source code on Windows, based on CMake (more on this another time). While finishing up the last bits of this, I ran into a very annoying limitation in Visual Studio (version 7.1 I think). The library include path in Visual Studio project files (.vcproj)… Continue reading Visual Studio limitations