The World map of C++ STL Algorithms

I just found this little gem by watching this video by Jonathan Boccara Within it you will find the world map of STL algorithms. A handy thing to hang on your wall :-). You can get the map from the fluentcpp website. But if you don't fancy subscribing to a…

The pure bash bible

The pure bash bible is such an impressive resource of bash tips and tricks catalogued in a very readable way, with excellent examples. It shows how much you can do with bash built-in methods. Even though I am a bit split on how much these should be used, as most…

A Windows mutex is not a mutex

Well, it turns out that CreateMutex is not the right synchronization primitive when working with threads. Strictly speaking, it does work for synchronizing threads but it is far more powerfull than that and you are paying a needlessly high cost if you are using it just for threads.…

Lockless Single Producer Single Consumer bounded queue

Why lockless queue A few days ago, the thought of building a lockless queue was somehow implanted in my mind. Queues like these can be handy for passing messages or work packages between threads. Of course the reason people do these things (by 'these' I mean, beeing foolhardy enough to…