CPU INFOrmation library: a cross-platform library to discover supported instruction sets, microarchitecture, and cache parameters of the CPU. Started as a "oh, I can do it over the weekend" project at first, took close to a year to get to production quality.
https://github.com/Maratyszcza/cpuinfo