The Byte Was Born Under a Palm Tree: How Yorùbá Babaláwos Were Computing in Binary Centuries Before Silicon Valley By Kio Amachree (Letters from Stockholm 🇸🇪).
Long before Leibniz, long before IBM, long before a single transistor hummed in California, a priest sat on a mat in Yorùbáland, lifted a chain of eight seed shells, and cast it on the ground. What fell before him was not superstition. It was information — encoded, quite literally, in binary.
The instrument is called the Ọ̀pẹ̀lẹ̀, the divining chain of the Babaláwo, the Ifá priest whose very title means father of secrets. Each shell on the chain lands one of two ways: open side up, which corresponds to a binary one, or closed side up, a binary zero. One face, one. The other face, zero. There is no third possibility. This is the definition of a bit — the fundamental unit of all modern computing.
Now count the shells. The Ọ̀pẹ̀lẹ̀ carries eight of them, four on each arm. In computer science, four bits make a nibble and eight bits make a byte — so each arm of the chain is a nibble, and the full chain is a byte. The byte, of course, is the most common denomination in all of computing, the basic currency of every laptop, phone and server on earth.
And here the mathematics becomes breathtaking. Eight bits can produce exactly 2 to the power of 8 — 256 — different values. When the Babaláwo throws the Ọ̀pẹ̀lẹ̀ into the air and the shells spin freely and fall, the pattern that lands selects one of those 256 possibilities. Those 256 outcomes correspond precisely to the 256 Odù of Ifá — sixteen major books of knowledge, each containing sixteen chapters, believed to encompass every situation, action and consequence in human life. The chain is a random-input device. The Odù corpus is the database. The Babaláwo is the processor, trained for decades to retrieve and interpret the correct record. Scholars have described the entire operation as an expert system with a classic input-process-output structure, the pattern from the Ọ̀pẹ̀lẹ̀ analyzed against all 256 Odù and their verses to derive a solution to the client’s problem.
There is a slower, more sacred method too. The Babaláwo may throw sixteen sacred palm nuts, the Ikin Ifá, and mark the results in powder scattered on the carved divination tray, the Ọpọ́n Ifá, drawing a sign of eight marks that identifies one of the 256 Odù. Different hardware, identical mathematics.
The sceptic will say: coincidence. History says otherwise. The modern binary code was introduced by Leibniz around 1670, and Leibniz had been inspired by the logic machine of Ramon Lull, which was in turn inspired by the divination practice of geomancy — a system Islamic scholars had been using in North Africa since at least the ninth century, brought into Europe through twelfth-century Spain. The mathematician Ron Eglash, who spent years documenting African knowledge systems, concluded that the African origin of geomancy — and thus, via Lull and Leibniz, the binary code itself — is well supported. Even the Chinese I Ching, which Leibniz studied before publishing his binary theory, produces only 64 hexagrams. Ifá produces 256 — four times as many.
Think of what this means. Textbooks trace binary logic from Leibniz to Boole to Shannon to von Neumann — a story that begins in Europe and ends in California, with Africa nowhere in it. Yet the grandfathers of the grandfathers of today’s software engineers in Lagos and Ibadan were already casting bytes by hand, running a 256-record retrieval system under the Ìrókò tree, encoding medicine, ethics, law and memory into a combinatorial structure that any computer scientist would recognize instantly.
The Babaláwo was never a relic. He was a mathematician in ceremonial cloth. The West called it juju. It was, all along, the byte.
We do not need to romanticize this. The Yorùbás were not writing software. They were doing something arguably harder: building a binary knowledge architecture with no silicon, no electricity, no notation borrowed from anyone — only seeds, shells, memory and genius. The next time someone tells you Africa arrived late to the digital age, remind them gently: the digital age arrived late to Africa.
Yorubatoday.com showcases the dynamic efforts of the sons and daughters of Odùduwà who are agitating for the self-determination, self-governance, and the independence of a Yorùbá sovereign state.