A post on orlp.net presents a UTF-8 validator that encodes 12 states as bit shifts inside 256 32-bit constants. It runs 2.5 ...