New UTF-8 DFA automaton improves branchless validation

orlp.net5 min read

The author presents a non-minimal UTF-8 shift-DFA state machine designed for quick branchless transitions, instruction-level parallelism, and trivial error recovery. By leveraging a SAT solver to pack transition constants into uint32_t magic values, the automaton achieves speeds roughly 2.5 times slower than simdutf while remaining compact. Open article →