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.


Popular posts from this blog

An ode to Hall 1

This goes out to Hall 1, the hostel where all the 4th year students of IIT Kanpur live. Indeed this hostel serves as a meeting ground between familiar foes some of who go on to become friends. A lot of factors make Hall 1 what it is. It acquires a mythic quality right from the first year when juniors are often threatened with “Aaj raat hall 1 main chal”. The seniors who live in Hall 1 seem to have a totally different existence as compared to the rest of the campus. On a visit to the hostel in the first year all one hears is the constant swearing, and sees everyone in shorts or in suits. Legends surround Hall 1 and in our first year the stories we hear are of Hall 1 and none other. Indeed Hall 1 residents perpetuate this myth as well acting as if they are the scariest beings on the campus. Indeed the fear is such that if a fresher goes to Hall 1 they are not expected to come back. There is something about Hall 1 that separates it from the rest of the Halls. For starters, Hall 1 has

Places to eat in Kanpur

Our real exploration of Kanpur began in our 5th year when we had our stipend to spend so hopefully this article will prove helpful to all the foodies out there. Surprisingly(and I really mean this) there are a number of terrific places to eat in Kanpur. Hopefully this article will prove helpful to many who are looking forward to spend their stipends. By far the best way to reach places to eat in Kanpur is to catch the bus that the institute provides. The bus runs everyday(except Sunday) at 8:00 pm and 9:00 pm. The bus returns at around 10:15 pm. Murgi(Our food and snacks Coordinator, every wing should have one) always takes the phone number of the conductor so that he can stay updated about where the bus is and so that the return is convenient. The bus service is really a life saver and unless you have a bike should be the first option. It is also better to roam during weekdays than weekends simply because there is lesser ruckus everywhere. Going to a restaurant on a weekend is an ab

The best of Paul Graham

Paul Graham is a startup incubator. He also happens to write essays which are really really good. In general I wish I had them read them a lot earlier. I have been reading his essays for a while now. Here are some extracts which I liked and so it begins. Addictive things have to be treated as if they were sentient adversaries—as if there were a little man in your head always cooking up the most plausible arguments for doing whatever you're trying to stop doing. If you leave a path to it, he'll find it. And my main computer is now freed for work. If you try this trick, you'll probably be struck by how different it feels when your computer is disconnected from the Internet. It was alarming to me how foreign it felt to sit in front of a computer that could only be used for work, because that showed how much time I must have been wasting. From Disconnecting Distraction How do you avoid copying the wrong things? Copy only what you genuinely like. That would have sav