For some of us who earn our daily bread from programming computers, making the connection between Ifá binary notation and programming is a no brainer.
The parallel between a Babalawo and a computer programmer is striking. We write on sand (silicon/cpu), a Babalawo writes on Iyerosun (camwood powder).
In essence, a computer code is Àfọ̀ṣẹ par excellence! In Yoruba, Àfọ̀ṣẹ means “oun tí a fọ̀ tí ó sì ṣẹ” – something commanded to happen.
Below is the Yoruba perspective of the Binary System…
Èjèèji ni mo gbè
N ò gbe ọ̀kan ṣoṣo mọ́
Translation…
I will only support two
I will no longer support one
The power of the Binary system has been harnessed in the computing industry since the dawn of the Information age
Below is a computer machine code that adds the numbers from 1 to 10 together and prints out the result:
0 0 1 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 1 1 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1
0 1 0 1 0 0 0 1 0 0 0 0 1 0 1 1 0 0 0 0 0 0 1 0
0 0 1 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0
0 1 0 0 0 0 1 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0
0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1
0 1 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
In Ifa, the patterns of bits above translate to…
owonrin-osa ogbe-osa ogbe-osa
owonrin-meji ogbe-osa ogbe-otura
ofun-osa ogbe-oturupon ogbe-otura
otura-meji ogbe-otura ogbe-ogunda
irete-osa ogbe-osa ogbe-osa
osa-ogbe ogbe-otura eji-ogbe
edi-otura eji-ogbe eji-ogbe
Effectively, the meaning of the 1s and 0s in the code above is as follows:
2. Store the number 1 in memory location 1.
3. Store the value of memory location 1 in memory location 2.
4. Subtract the number 11 from the value in memory location 2.
6. Add the value of memory location 1 to memory location 0.
7. Add the number 1 to the value of memory location 1.
9. Output the value of memory location 0.
Using names in place of numbers for memory and instruction locations, we can do the following:
Set the value of “count” to 1.
[loop] Set the value of “compare” to the “count” value.
Subtract 11 from the value of “compare” .
If “compare” is zero, continue at [end].
Add “count” to the value of “total”.
Add 1 to the value of “count”.
[end] Output “total”.
In a modern programming language like Python, we can write the following:
count = 1
while count <= 10:
total = total + count
count = count + 1
print total