Skip to main content

The implications of Sanskrit as a programming language

People talk a lot about how Sanskrit would make the perfect programming language. They claim its rigorousness and flexibility make it the ideal choice but everyone fails to grasp the implications. Mostly they speak as if they wish to make Sanskrit a programming language.
If Sanskrit were a programming language back in the day its greatest feature would be the fact that everyone spoke it which meant that everyone was a programmer by default. There is no need to learn to code.
However what this would imply would be the fact that the best talkers would be the best programmers and the best programmers would be wielders of power. This is of course why training Brahmins in the Vedas makes sense since childhood because every word they intone is potentially a program waiting to be executed.
Let me give you an example of the power. There is this Shloka in Sanskrit which gives you the value of pi when looked at with a few substitutions. These substitutions of course can be expressed as Sanskrit.
gopeebhaagya maDhuvraathaH shruMgashodhaDhi saMDhigaH
khalajeevithakhaathaava galahaalaa rasaMDharaH
if you apply the following transformation
ga-3, pa-1, bha-4, ya -1, ma-5, Dhu-9, ra-2, tha-6, shru-5, ga-3, sho-5, dha-8, Dhi -9, sa-7, Dha- 9, ga-3, kha-2, la-3, jee-8, vi-4, tha-6, kha-2, tha-6, va-4, ga-3, la-3, ha-8, la-3, ra-2, sa-7, Dha-9, ra-2
You get the value of pi
So in a way any one can take what someone else has uttered and transform it into something else entirely with just a few transformations both of which can be carried out by anyone who has a speaking knowledge of Sanskrit.
Imagine now if Sanskrit is a language that both humans and machines are equally proficient. All of a sudden there is the potential to build these small devices that control the environment based on what the user says and this isn't some machine trying to decipher what a human means to say the way they have to do with English. In this case the machine understands precisely what is meant and the human doesn't have to do anything because he is speaking as he normally does. If you embed these devices on weapons of warfare all of a sudden you have very sophisticated weaponry that can be spoken to which is what the Astras of Mahabharata essentially are. Different weapons may have been invented by different kingdoms and Devas. Warriors would seek weapons from the Devas and in effect these weapons would be environment manipulators with language as the interface. In effect Sanskrit would be the universal interface between computers and humans.
Let us go a step further. Imagine if nano tech was invented during that time and these nano bots were cast by Great Rishis throughout the region. The nano bots would respond to very specific codes or mantras as they would call them.
This could imply that the Indus valley civilizations were indeed very advanced because it gives us a basis as to how they could have manipulated their environments in such organized fashion. All the Yagnas performed actually make sense in this context because they were actually manipulating the environment while the Shlokas were spoken and that rather than being just some rudimentary rites. It also explains how Rishis gained the ability to have their curses translated into reality.
There is another subtle point at play here. What all of it boils down is that interfaces matter. Engines existed for quite a while but it took someone to slap an accelerator, brake and clutch to make it truly revolutionary. It took Apple who added touch interfaces to devices to make computers more of an extension to ourselves rather than just devices so having Sanskrit as the universal interface to everything would be in short a major achievement and maybe a possible explanation for all their technological wizardry which is almost magic.

Comments

Popular posts from this blog

The Broken Empire by Mark Lawrence

What a great read this turned out to be.  I was completely engrossed and fascinated. Jorg Ancrath starts of as a young prince who wants to get his throne back, get back everything he has lost and most importantly get revenge and he is prepared to do anything to achieve his aims. The thing is that Jorg Ancrath is a despicable violent bastard. He does things that should curdle your blood. But despite all of it, Jorg's voice is compelling. I couldn't help but put myself in his shoes. For most of the trilogy I was Jorg Ancrath even through his dastardly deeds(especially through his dastardly deeds). There was a part of me that couldn't help identifying with his ruthless streak of getting what he wants no matter what the cost. I have yet to find another character who embodies "The end justifies the means" more than Jorg Ancrath. The world itself set on an Earth of the far future. (Similar to the dying earth series by Jack Vance and Book of the new sun by Gene

On Hans Zimmer

I have been listening to quite a lot of soundtracks lately. Two composers in particular stand out, Hans Zimmer and Clint Mansell. I have written about Clint Mansell over here . Hans Zimmer has somehow managed to score a lot of my favorite movies including Inception, Batman Begins, The Dark Knight , the Gladiator, Sherlock, Pirates of the Caribbean just to name a few. In fact chances are that if there is a movie's score you like in the last decade its by Zimmer.(Apart from Lord of the rings of course :)) The thing about Zimmer though is that he is able to deliver even in movies that are not particularly good. Da Vinci Code and Angels and Demons come to mind immediately which feature some great violin solos courtesy Joshua Bell. Here are a few of my favorite tracks. Put your headphones on and listen. Discombulate from Sherlock Red Warrior from The Last Samurai Time from Inception Jack Sparrow's Theme Science and Religion from Angels and Demons

Announcing the first part of the Karna trilogy

Finally after a lot of procrastination and some hard work the novel is done or at least the first part of it. Its about Karna in the Mahabharata. It also revolves around Kunti. From my reading experience Karna is highly readable and is short as well. (Novella length). You can read the whole book online here or if you want to get the pdf/epub for your reading devices you can get them from Leanpub Let me know what you think of Karna Part One. Two more parts are on their way.