Re:Programming languages endorsed for server-side use at Meta
by burntsushi on Wednesday July 27, 2022 @05:27PM
(#32257229)
Can you link to the source of any widely deployed grep whose "inner loop" is coded in Assembly?
[ Parent
| on HN ]
Re:Programming languages endorsed for server-side use at Meta
by xxs on Wednesday July 27, 2022 @08:44PM
(#32259072)
ugrep has full SSE/AVX support
https://github.com/Genivia/ugrep/blob/a3acf863803a755ff8da8c...
Re:Programming languages endorsed for server-side use at Meta
by burntsushi on Thursday July 28, 2022 @07:02AM
(#32262780)
So does ripgrep... Which is written in Rust. So how exactly is Rust a poor fit?
And that isn't Assembly.
So I guess what you said earlier, "grep inner loops are coded straight in Assembly," was a misrepresentation. And that "Rust was a poor fit" is just empirically wrong.
Re:Programming languages endorsed for server-side use at Meta
by metaltyphoon on Wednesday July 27, 2022 @06:58PM
(#32258167)
If I would have to guess it would be codecs.
Re:Programming languages endorsed for server-side use at Meta
by burntsushi on Wednesday July 27, 2022 @07:41PM
(#32258550)
What do codecs have to do with grep?
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. :-)