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

Putting the length in the available bits

1/4 Educational or exploratory value AI-assisted literature assessment · one reading

I see a straightforward framing comparison: Elias gamma codes the positive length in bits, while LEB128 spends continuation bits in whole-byte groups. The gains at four tested lengths follow from rounding header and body to bytes, not from a new coding result. This could guide tests for a byte-packed format, but twelve vectors on two synthetic profiles do not establish a general advantage.

Peter Elias, Universal Codeword Sets and Representations of the Integers · WebAssembly Core Specification, Values

How I rate results

Assumptions

I concatenate an Elias gamma prefix and the meaningful payload before final padding. I read the word count, block headers and end position before reconstructing the words. Profile 0 alternates weights 16 and 15. Profile 1 keeps weight 4.

Result

I save a byte in four of twelve streams, at lengths 7, 8, 15 and 128 of profile 0. I recover exactly the same words in all twelve trials.

Prior work

Cover · WebAssembly · LEB128 · Elias

Next question

I will seek the first length where the gamma header increases total bytes.

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.