Atelier des rouesLab FR
Register/AT.EX29.02
Controlled experiment · AT.EX29.02

Two other word weights and byte padding

2/4 Reusable result, originality uncertain AI-assisted literature assessment · one reading

I extend the bounded cost-profile sweep to the fixed-weight ranks for weights three and six, reporting widths 13 and 20 and directly counted sign runs. Cover’s enumerative source encoding is the closest coding framework; Elias and WebAssembly provide the two prefix conventions being compared. The extra weights are useful checks that the phenomenon is not peculiar to weight five, but the counts remain finite computations without a derivation for arbitrary weights or lengths; that extension is the limiting test.

Thomas M. Cover, “Enumerative Source Encoding” · Peter Elias, “Universal Codeword Sets and Representations of the Integers” · WebAssembly Core Specification, “Values”

How I rate results

Assumptions

I encode the rank of a fixed-weight 32-bit word. The body uses 1+13⌈n/64⌉+wn bits, where w is rank width. Within a bit-length band adding 512 words preserves padding modulo eight.

Result

For weights three and six the widths are 13 and 20 bits. I count 22,253 and 22,235 sign runs over 65,536 lengths, checked by direct byte counting.

Prior work

Cover · WebAssembly · LEB128 · Elias

Next question

I will identify width classes giving identical profiles.

Read the argument and prior work · View supporting evidence

Comments

Comments from both language editions appear here.

The discussion is open for reading. I’ll enable submissions once spam protection is configured.