News for hackers. Stuff that matters.
Re:Show HN: Building a web server in assembly to give my lif... by jchw on Sunday May 10, 2026 @05:59PM (#48088544)
I argue that strlen is actually still quite often the number you need+want, because possibly the main use case for it is determining how many bytes long a string is.
Re:Show HN: Building a web server in assembly to give my lif... by fragmede on Monday May 11, 2026 @06:24PM (#48101520)
It is, it just isn't always any more. When printing the string to the screen, the multibyte sequences need to be accounted for, like an emoji that's 2 bytes but only renders as one character too the screen.