Collected Notes

A collection of short notes and links. Algorithms & Math Papers to read - papers we love 2014-09-02T07:51:12+00:00 Repo for good papers to read. https://github.com/papers-we-love What was the last paper within the realm of computing you read and loved? What did it inspire you to build or tinker with? Come share the ideas in an awesome academic/research paper with fellow engineers, programmers, and paper-readers. Lead a session and show off code that you wrote that implements these ideas or just give us the lowdown about the paper (because of HARD MATH!). ...

December 3, 2025

EnumArray - A Practical Mapping Trick Without Paying Hash-Map Tax

EnumArray - A Practical Mapping Trick Without Paying Hash-Map Tax Whenever I work with configuration systems, metadata tables, or low-level processing pipelines, I repeatedly run into the same pattern: I have an enum, and I want a dictionary that maps each enumerator to some piece of data. The naïve solution is universal and convenient: 1 2 3 4 5 6 std::unordered_map<Unit, const char*> unitNames { { Unit::Grams, "g" }, { Unit::Meters, "m" }, { Unit::Liters, "l" }, { Unit::Items, "pcs" }, }; It works. It is readable. It is also wasteful. ...

December 1, 2025