News for hackers. Stuff that matters.
Re:Programming languages endorsed for server-side use at Meta by int_19h on Wednesday July 27, 2022 @07:54PM (#32258680)
grep respects LC_CTYPE, so it has to handle text encoding (or rely on something else that does, like libc or iconv).

However, by the same token, we might as well count any assembly in the kernel that gets executed due to some syscall from grep.

Re:Programming languages endorsed for server-side use at Meta by burntsushi on Wednesday July 27, 2022 @08:19PM (#32258900)
Those are locales. I've never heard them referred to as "codecs."

In any case, I'd still like to see a grep whose inner loop is written in Assembly. :-)

Re:Programming languages endorsed for server-side use at Meta by int_19h on Wednesday July 27, 2022 @09:03PM (#32259205)
"en_US.UTF-8" is a locale. The "UTF-8" part is the encoding of that locale. Codec would be whatever piece of code parses the encoding.
Re:Programming languages endorsed for server-side use at Meta by xxs on Wednesday July 27, 2022 @08:46PM (#32259087)
>in the kernel that gets executed due to some syscall from grep

That won't be considered 'inner loop'