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

Murgi’s fun facts

This one goes out to Mrigank Gupta aka Murgi. Murgi is such an awesome dude that even Chuck Norris and Rajnikanth can’t hold a candle to him. Below are Some facts that are indeed facts When Murgi was an infant he changed his own diapers Murgi was born toilet trained Murgi is actually the eldest in his house. He let the others enter this world before him When Murgi was born he got his own birth certificate from the doctor’s office Murgi never sits idle. He is just pretending to be like us Murgi never listens to excuses on the phone. He simply tells you what to do and disconnects. When Murgi will finally take a vacation the world will stop spinning While Chuck Norris counted to infinity twice, Murgi had already finished counting thrice and was solving everyone else's problems. Natural selection does not apply to Murgi. (Courtesy Ikka) Murgi caught an electron at rest.(Courtesy Ikka) When Arthur Eddington was asked if he really believed there were just three peop...

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 travails of a frustrated compiler

I was thinking about what would happen in case a compiler becomes sentient. Rather than just translating code it would be able to understand things but I suppose because the programs are written by humans are so often wrong the best part would be the error messages. Here are a few I could think of "Hello World again and again. Do you know how many times I have had to print that bloody nonsense. You can do anything else, print your name for gods sake but it always has to Hello fucking World." "Look Lad, not so fast, take a step back, a deep breath and your fingers away from the keyboard, and now think for a second" "Son, you have been trying to do this for an hour now. Honestly speaking you are not cut out to be a programmer. I would suggest you look for the nearest river or the tallest building or best of all find something you are better at" "Does any decent person code at this time in the morning. How would you feel if I dragged you out of your slee...