A Better UTF-8 Automaton
Comments on “A Better UTF-8 Automaton”
Claim-checked. Scored by all three judges, and its checkable claims were compared with the sources it cites. How far stories are checked
Orson Peters (orlp.net) presents a UTF-8 validation automaton built as a shift-DFA, where each byte indexes a table of 32-bit constants and the transition is a single shift. A SAT solver (Z3) packed the constants, halving the table to 1 KiB. An added SYNC state allows two overlapped chunks to be validated in parallel, and unmerged states make error recovery simple. The author's figures, which come from one benchmark on an Apple M5 and are unverified: about 2.5x slower than simdutf on Chinese text, and 9x faster than Höhrmann's validator.
Why it ranked
No. 11 of 57 with a score of 0.61. The panel rated it highest on technical depth (0.95) and new information (0.92), lowest on significance (0.45). Placed No. 11, No. 20 by score alone: the placement terms moved other stories past it.
- AI judgeJudge 2claude-haiku-5-5
- Detailed, reproducible low-level engineering write-up on a fast UTF-8 validator via shift-DFA with SAT-derived constants; strong technical depth, modest breadth, no new-project framing.
- AI judgeJudge 3gpt-5.6-luna
- A highly technical UTF-8 validation design includes runnable C, a SAT-based packing method, parallelization details, and benchmarks. It is useful to systems programmers, though its significance and adoption remain niche.
Each judge wrote its line after answering the rubric, with the site and the author still hidden. Every answer behind this is in the table under Score.
Score
0.61total under rubric v2.3
- Significance0.45
- Reader interest0.74
- Audience breadth0.48
- Practical relevance0.62
- Substantiated0.83
- Technical depth0.95
- New information0.92
- Counts against: Promotional0.03
- Counts against: Overclaim0.19
Each judge’s answer per question (0–1), their mean and spread, and what the question adds to the score (weight × mean).
| Question | Judge 1 | Judge 2 | Judge 3 | Mean | Spread | Weight | Contribution (weight times mean) |
|---|---|---|---|---|---|---|---|
| SignificanceHow much does this change what people in tech know or can do? | 0.49 | 0.30 | 0.55 | 0.45 | 0.25 | +0.24 | +0.107 |
| Reader interestWould a well-informed senior engineer or tech founder want to read this today, and likely pass it on? | 0.63 | 0.72 | 0.86 | 0.74 | 0.23 | +0.26 | +0.192 |
| Audience breadthHow many people who build technology does it concern? | 0.50 | 0.35 | 0.58 | 0.48 | 0.23 | +0.13 | +0.062 |
| Practical relevanceHow useful is it to someone who builds software or tech products? | 0.58 | 0.55 | 0.72 | 0.62 | 0.17 | +0.22 | +0.135 |
| SubstantiatedHow well is it backed? Consider whether it is the primary source, and whether its main claims come with data, code, a demo, a reproducible method or citations. | 0.94 | 0.70 | 0.86 | 0.83 | 0.24 | +0.05 | +0.042 |
| Technical depthHow technically substantive is it? | 1.00 | 0.92 | 0.94 | 0.95 | 0.08 | +0.05 | +0.048 |
| New informationDoes it contain information absent from the stories covered in the last 7 days (list provided)? | 0.87 | 0.90 | 0.98 | 0.92 | 0.11 | +0.05 | +0.046 |
| PromotionalIs it mainly marketing with little substance (a press release, ad or sponsored post with no real information)? A launch post that carries real news is not promotional. | 0.05 | 0.03 | 0.01 | 0.03 | 0.04 | −0.19 | −0.006 |
| OverclaimDo the headline or conclusions claim more than the body supports? | 0.33 | 0.15 | 0.08 | 0.19 | 0.25 | −0.11 | −0.021 |
| Sum of contributions | +0.605 | ||||||
| Claim-check penalty | 0.000 | ||||||
| Total, as published | 0.605 | ||||||
Spread is the highest minus the lowest judge answer. marks a spread above 0.40: the judges disagree, and the story is marked contested.
The badge for this ranking, for the author's page or anyone's: one line of HTML, and it links back here.
<a href="https://rubric.hrih.si/editions/2026-11-30/11/"><img src="https://rubric.hrih.si/badge/2026-11-30/11.svg" alt="Ranked #11 on Rubric, 30 Nov 2026" width="245" height="28"></a>Claim check
Claim check: 7 no source given · 1 couldn’t check. Each claim is compared with the source the article itself cites; a flag is published only when both checkers agree.
No source givenBenchmark result
The author's UTF-8 validation code runs only about 2.5x slower than simdutf when validating Chinese text on an Apple M5 laptop.
The article gives no link or citation for it.
The article says “it runs only ~2.5x slower on my Apple M5 laptop when validating Chinese”
The source says No source to compare with.
No source givenBenchmark result
The author's validator runs 9 times faster than Björn Höhrmann's minimal C UTF-8 validator in the same benchmark.
The article gives no link or citation for it.
The article says “Compared to Björn Höhrmann’s minimal C UTF-8 validator, the above runs 9 times faster in the same benchmark”
The source says No source to compare with.
No source givenBenchmark result
The new automaton's SYNC state enables parallel validation that runs almost twice as fast as previous shift-DFA UTF-8 validators.
The article gives no link or citation for it.
The article says “allowing the shift-DFA to run almost twice as fast as previous shift-DFA UTF-8 validators due to instruction-level parallelism”
The source says No source to compare with.
Couldn’t checkNumber
Per Vognsen's original shift-DFA implementation packed the constants as uint64_ts, while this one fits them in uint32_ts using a SAT solver and overlapping constants, shrinking the lookup table from 2 KiB to 1 KiB.
The source was unreachable, paywalled or too long, or the two checkers disagreed.
The article says “Their original implementation packed the constants as uint64_ts, this one fits them in uint32_ts through the use of a SAT solver and overlapping the constants, reducing the lookup table from…”
The source says No passage could be compared.
Source cited by the article: gist.github.com/pervognsen/218ea17743e1442e59bb60d29b1aa725
No source givenNumber
The Z3 code that finds the magic DFA constants runs in about 15 minutes on the author's machine.
The article gives no link or citation for it.
The article says “it runs in ~15 minutes on my machine”
The source says No source to compare with.
No source givenNumber
The automaton has 32 possible states, of which 12 are valid and 20 are invalid.
The article gives no link or citation for it.
The article says “we have 32 possible states, of which 12 are valid and 20 are invalid”
The source says No source to compare with.
No source givenCausal conclusion
Overlapping chunks by 4 bytes suffices for parallel validation because no valid codepoint is longer than 4 bytes.
The article gives no link or citation for it.
The article says “overlap the end of one chunk of bytes with the start of the next chunk by 4 bytes (since no valid codepoint can be > 4 bytes”
The source says No source to compare with.
No source givenCausal conclusion
Because states that have consumed different numbers of bytes of a partial codepoint are not merged, error recovery is trivial.
The article gives no link or citation for it.
The article says “Because we do not merge states which have consumed a different number of bytes of a partial codepoint, error recovery is trivial”
The source says No source to compare with.
Also covered by
No other coverage was clustered with this story.
Elsewhere
Elsewhere: HN 11 pts, front page
Recorded for context only, checked 30 Nov 2026, 05:47 UTC. It played no part in the ranking.