Posts
Generate lambdas for clarity and performance
January 7, 2017•1,207 words
Higher order functions , functions that operate on other functions or returns functions, are familiar to those who have had some experience with fu...
Serializing structs with C++17 structured bindings
December 29, 2016•3,519 words
Serializing data in C++ is a surprisingly difficult problem. There are many libraries for it with varying degrees of finesse, power and ease of use...
Expressing strings as types with C++17 constexpr lambdas
August 25, 2016•650 words
Recently I stumbled upon a question by @arne_mertz of Simplify C++ fame — if you don't read that blog, start now! — about using string literals as ...
A flexible lexicographical comparator for C++ structs
January 1, 2016•1,329 words
We've all hand crafted comparison operators for structs with many members, and we've all cursed the tedium. It's all right for equality comparison,...
Cache optimizing a priority queue
August 3, 2015•1,609 words
I must begin by saying that, if you found this because you have a performance problem, you should almost certainly look elsewhere. It is highly unl...
Performance observations on a C++ vector of lambdas
June 5, 2015•1,341 words
Edit (June 2015):: The source code is now available on GitHub . When writing unit tests, you typically don't care much about execution speed, but c...