Skip to content

barcodes: fold the spec tables into qr.rip - #314

Merged
shreeve merged 2 commits into
mainfrom
fold-spec
Sep 16, 2026
Merged

shreeve merged 2 commits into
mainfrom
fold-spec

Conversation

@shreeve

@shreeve shreeve commented Sep 16, 2026

Copy link
Copy Markdown
Owner

Summary

spec.rip had one consumer, qr.rip. Its tables and primitives (codeword counts, block layout, alphanumeric alphabet, alignment centers, BCH format and Golay version words, GF(2^8), mask predicates, popcount) now open qr.rip as its first section, unexported. The test suite reaches the six it pins through the _tests internals object, like the other internals. The manifest's file list and the browser-safety test's file list drop the entry.

Verification

  • Package tests: 33/33
  • Encoder parity oracle: 1452 checks, 0 mismatches; decoder oracle: 192 checks, 0 mismatches

The ISO/IEC 18004 tables and bit-level primitives (codeword counts,
block layout, the alphanumeric alphabet, alignment centers, the BCH
format and Golay version words, GF(2^8), the mask predicates, popcount)
had only one consumer, the QR encoder/decoder file. They now live at
the top of qr.rip as its first section; nothing is exported, and the
test suite reaches the six it pins through the `_tests` internals
object like the other internals.

Package tests 33/33; encoder oracle byte-identical on 1452 checks;
decoder oracle identical on 192.
@shreeve
shreeve merged commit 473bc9d into main Sep 16, 2026
2 checks passed
@shreeve
shreeve deleted the fold-spec branch September 16, 2026 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant