ACM Comm 2011 09 The Most Expensive One-Byte Mistake (Notes)
Link to publication |
The Most Expensive One-Byte Mistake |
The Most Expensive One-Byte Mistake
Did Ken, Dennis, and Brian choose wrong with NUL-terminated text strings?
People
Ideas
- Creating a World Record, for good or bad, requires intent. A spectacular fiasco or bonanza do not count.
- Changes that cannot be made directly at the statement level. (e.g., \( \textbf{matmul}(b, a) \) should be \( \textbf{matmul}(a, b)\) ).
- C/UNIX/POSIX use NUL-terminated text strings.
- Another option is the address followed by the length. No counting needed.
- This required altering CPU designs to determine the length, and THEN process the string.
References
Internal Links
Parent Article: Reading Notes