Bits vs Bytes Encoding

Discussions center on efficient bit-level data encoding and storage, debating the use of bits versus bytes, optimal bit allocations, and techniques like Huffman coding for minimal representation.

➑️ Stable 0.5x Programming Languages
3,558
Comments
20
Years Active
5
Top Authors
#1387
Topic ID

Activity Over Time

2007
4
2008
2
2009
19
2010
50
2011
48
2012
90
2013
92
2014
136
2015
148
2016
166
2017
181
2018
205
2019
180
2020
208
2021
303
2022
349
2023
435
2024
535
2025
363
2026
44

Keywords

ECC NAND DB UTF8 bits bytes bit 01 encode byte 00 10 values 32

Sample Comments

muzani β€’ Apr 6, 2023 β€’ View on HN

Why allocate more bits than you ever need?

giancarlostoro β€’ Aug 28, 2022 β€’ View on HN

Sounds like a bytes vs bits hack.

amelius β€’ May 20, 2021 β€’ View on HN

What if you were counting bits instead of bytes?

joshu β€’ Aug 7, 2025 β€’ View on HN

someone suggested 10-bit bytes. this will not be enough. 11-bit bytes should be plenty, though

rkagerer β€’ Jul 29, 2022 β€’ View on HN

Did they want to cram a coarse measurement into a smaller amount of bits?

gregoriol β€’ Aug 6, 2021 β€’ View on HN

The important part is the number of bits used for storage; the textual version is only for humans

xanderlewis β€’ Dec 29, 2023 β€’ View on HN

What makes it 2-bit rather than 1-bit?

LeonB β€’ Apr 17, 2025 β€’ View on HN

It’s β€œ1-bit, for particularly large values of β€˜bit’”

eviks β€’ Aug 10, 2023 β€’ View on HN

No way to use bytes instead of bits in the output?

fsh β€’ Apr 15, 2022 β€’ View on HN

Only if they figure out how to encode 21 with two bits.