3 ms·
Is performance really the first thing we should worry about when it comes to string libraries for C? Given the dismal history of character arrays in C, I'd exp
by sevensor 8y ago
Is performance really the first thing we should worry about when it comes to string libraries for C? Given the dismal history of character arrays in C, I'd expect safety to be the first thing on the mind of any library implementer, and the first thing mentioned in the README. Also, the second, third, and fourth things.
- tonto 8y agoIn what sense would safety be such a high priority for a high performance string library? I found this blog post was good at illustrating why undefined...similar to unsafe...operations exist https://nullprogram.com/blog/2018/07/20/ https://nullprogram.com/blog/2018/07/20/
- drfuchs 8y agoAnd though it’s peculiar that the readme doesn’t mention it, the code is (trying to be) safe, at least when assertions aren’t disabled.