Get the latest tech news

C++ proposal: There are exactly 8 bits in a byte


1. Rationale C has the macro which contains the implementation-defined number of bits in a byte, without restrictions on the value of this number.

While this was historically relevant in computing’s early days, modern hardware has overwhelmingly converged on the assumption that a byte is 8 bits. The complexity of supporting non-8-bit byte architectures sprinkles small but unnecessary burden in quite a few parts of language and library; These architectures made sense in their era, where word sizes varied and the notion of a byte wasn’t standardized.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of bits

bits

Photo of byte

byte

Photo of C++ proposal

C++ proposal

Related news:

News photo

Fwupd 2.0 Released To Drop Legacy & Deprecated Bits, Adds New Features

News photo

Byte Ordering: On Holy Wars and a Plea for Peace (1980)

News photo

Bootstrap a Linux system from a 512 byte binary seed with 170 steps