From Nothing to Everything: Zero in Modern Computing
How an ancient Indian concept powers every digital device
Explore how zero and binary logic, which have roots in Piṅgala's 200 BCE Chandaḥsūtra, form the foundation of all modern computing and digital technology.
The Grammarian Counting Poems
Some time in the 2nd century BCE, in a Sanskrit grammar school in north India, a teacher named Piṅgala sat with a stack of palm leaves and began to enumerate every possible rhythm of a Sanskrit verse. The rules were simple. A syllable was either laghu (light, short) or guru (heavy, long). Two states. Nothing in between. A foot of three syllables could therefore be any of eight combinations. A foot of four yielded sixteen. A foot of six, sixty-four. The numbers ran upward by powers of two faster than he could write them.

Piṅgala was not building a counting machine. He was trying to systematise the metres of his sacred poetry. But in the Chandaḥsūtra he wrote, he set down rules so terse and operational that a 21st-century engineer reading them recognises immediately what they are. Replace every laghu with 1 and every guru with 0, and Piṅgala's tables map directly onto modern binary numerals. His sūtras are telegraphic:
रूपे शून्यम्। द्विः शून्ये। तावदर्धे तद् गुणितम्।
rūpe śūnyam. dviḥ śūnye. tāvad ardhe tad guṇitam.
When it is one, write a zero. When the remainder is zero, double the result. When halving, square the partial result.
Chandaḥsūtra, c. 200 BCE
Twenty-two centuries before binary computing, a Sanskrit scholar wrote what is, operationally, a compact binary arithmetic routine.
The Computer in Your Pocket Remembers Bharat
Right now, between you and these words, there are roughly fifteen billion tiny electrical switches. Each one is either on or off, conducting or blocking, one or zero. Multiplied, patterned, and sequenced, these switches encode every character of this sentence, every photo in your gallery, every face on every video call you have ever taken. Modern computing is a cathedral built entirely out of two states: śūnya and eka. Zero and one.