A Better UTF-8 Automaton
0 comments · c, performance
- Comments4
0 comments · c, performance
Story details from Lobsters ↗ · linked article on orlp.net.
A Better UTF-8 Automaton was first seen by Trendoday on Nov 30, 2026. Since then it has appeared in 91 checks on 3 different days. It reached #4 on Lobsters · Hottest on Nov 30, 2026 UTC. It was last seen on Lobsters · Hottest on Dec 2, 14:22 UTC.
Position on Lobsters · Hottest at every check (lower is better).
Best rank per day (UTC).
Platform metric 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.…
This is very cool! There are many embedded systems that need small but performant utf-8 decoders. Looking at code size compiled with -Oz/Os on ARM Cortex-M, with a bit of code added to get code points out (my typical use case), I get: - Simpler decoder with no LUT: ~170B - Hoehrmann's: ~412B - Yours: ~1200B Modern…
Archived daily, weekly and monthly lists that include this entry.
Not at the moment. Its last recorded appearance was on Dec 2, 14:22 UTC.
#4 on Nov 30, 2026 UTC.
It was first seen on Nov 30, 2026 and has been on the list on 3 days (91 checks) since.