One is the language of computers. The other crossed oceans with a wire and a key. Both use only two states, yet they built the modern world. This guide is fully interactive — translate, listen, tap, and run it in GNU Octave.
Gottfried Leibniz described base-2 in 1703. Claude Shannon proved in 1937 that electrical switches can do logic with it. From there: computers.
Place value. Tap bits above. This is how ASCII, images, and floating point are all stored.
| CHAR | BINARY | DEC | HEX |
|---|
Samuel Morse & Alfred Vail, 1836. International Morse (1865) standardizes it. SOS is not words — it's ...---..., chosen because it's unmistakable.
Uses Web Audio API. Visualizer syncs to timing units. No external files.
Tip: try tapping SOS: ··· ——— ···
All snippets run in Octave 7+. Copy, paste, and plot. Octave's dec2bin / bin2dec and containers.Map make these two codes trivial.
Morse optimizes for humans: common letters are short (Huffman-like, 1840 before Huffman). Binary optimizes for machines: fixed length, easy to clock, perfect for error correction.
| PROPERTY | BINARY | MORSE |
|---|---|---|
| Symbols | 0, 1 | ·, —, gaps |
| Length | Fixed (8-bit) | Variable (E=1, Q=4) |
| Clock | Crystal | Human ear |
| Error Tolerance | Needs ECC | Redundant timing |
| Density | 1 bit / symbol | ~0.6 bits / unit, slower |