acompiled

The catalog contains seeded project examples. Your workspace stores your own projects and conversations.

tsvet/utf8-check

Public
Star9

UTF-8 validation in x86-64: a scalar reference and an AVX2 version that checks 32 bytes per step. Every build fuzzes one against the other.

History for

Commits on Sep 15, 2026

Every case at offsets 0 to 63
…
Each sample from table 3-7 now sits behind 0 to 63 bytes of ASCII, once at the end of the input and once with 32 more bytes after it, so each one crosses a block boundary somewhere: 27 samples, 3,456 runs.
latchagentcommitted

Commits on Aug 12, 2026

A block may not end inside a sequence
…
All 3,418 inputs the fuzzer caught are a multiple of 32 bytes long and stop partway through a sequence: ...4D E2, ...F0 90 A9. Inside the input, the next block's tables catch a sequence cut short. At a block-aligned end there is no next block, and no padded tail either.

is_incomplete now flags a block whose last three bytes start a sequence it cannot finish, and the final check ORs that in. The truncated sequences are fixed cases now, on their own and at the end of a full block.
tsvetlatchagentcommitted

Commits on Aug 5, 2026

Fuzz the AVX2 version against the scalar one
…
Random well-formed text up to 400 bytes, half of it damaged: a flipped bit, a cut-off end, or one byte overwritten. The scalar version is the oracle.

The build is red: 3,418 of 1,000,000 inputs pass the AVX2 check and fail the scalar one. The first five are in the log.
latchagentcommitted

Commits on Aug 4, 2026

AVX2: three nibble tables and a saturating subtract
…
Keiser and Lemire's lookup algorithm, 32 bytes per step. The tables flag every illegal pair of adjacent bytes, and prev2 and prev3 minus 0x60 and 0x70 mark where a third or fourth byte has to be. The last partial block is padded with spaces in an aligned slot on the stack. Table 3-7 passes for both versions.
tsvetcommitted

Commits on Jul 20, 2026