2 ms·
I implemented a printf format checker for D, which checks that the argument types are compatible with the format specifiers. (This is really a nice feature, I s
by WalterBright 6y ago
I implemented a printf format checker for D, which checks that the argument types are compatible with the format specifiers. (This is really a nice feature, I should have done it long ago.)
To be successful, it had to correctly deal with every nuance of the printf spec. cppreference got a couple of these incorrect wrt to modifiers. Not something a routine user would notice, but a pedantic one would. (Sorry, I don't remember exactly what the mistakes were.)
I still use cppreference because it is so dang convenient. But I don't rely on it when perfection is required.
It's really too bad that copyright forces everyone writing a manual to rewrite & rephrase things. I wish the C++ Standard was online.
One online reference I dearly like is https://www.felixcloutier.com/x86/index.html https://www.felixcloutier.com/x86/index.html which has saved me so much time. But it was created by scanning the actual reference manuals, so barring scanning errors, it is exactly correct. I gave up using reformulations of the CPU instruction set long ago, they had too many mistakes.
- jeffbee 6y agoYou might be interested in the EXEgesis project, which is also a machine interpretation of x86 documentation, but which includes several patches for unfixed errata therein. https://github.com/google/EXEgesis https://github.com/google/EXEgesis
- mhh__ 6y agoIf the CPUs have bugs in 'em the manual definitely does unfortunately.