A Better UTF-8 Automaton
3 comments · c, performance
- Comments3
3 comments · c, performance
Story details from Lobsters ↗ · linked article on orlp.net.
A Better UTF-8 Automaton was first seen on Lobsters · Hottest on Nov 30, 2026. Since then it has appeared in 28 checks on 2 different days. Its best position was #4 of 25, reached on Nov 30, 22:22 UTC. It is #4 right now, holding steady at #4 over the last 6 checks.
Position on Lobsters · Hottest at every check (lower is better).
Best rank per day (UTC).
▲ as reported by Lobsters.
A few top-level comments from Lobsters, shortened. Read the full thread on Lobsters.
The use of SAT solvers to produce DFA lookup tables is interesting.
I wonder what makes you skeptical. The LUT is sufficiently small to not put much pressure on L1d and the load is not on the critical path. I highly recommend reading @pervognsen 's original gist on shift-DFA. The point is to reduce the work to 3 operations per input byte. Load the byte, load transition row, shift.…
I haven't benchmarked this, but I'm a bit skeptical of using a lookup table for parts other than validating the combination of first and second byte in three-byte or four-byte UTF-8 sequence. My utf8_iter crate does that. (Smaller lookup table. Like here, the table read by second byte does not depend on the table…
Archived daily, weekly and monthly lists that include this entry.
Yes. As of Dec 1, 06:52 UTC it is #4, holding steady at #4 over the last 6 checks.
#4 on Lobsters · Hottest, on Nov 30, 22:22 UTC. Trendoday checks this list every 30 minutes.
It was first seen on Nov 30, 2026 and has been on the list on 2 days (28 checks) since.