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

Rule 34 by Charles Stross : You will never look at your email the same way again

This is one of the great reads of the year(with a terrible cover though). Charles Stross writes a near future police procedural in this one. Its a future where 3d printers are a reality and plans for printing almost anything are available online(This includes all sorts of weapons of course). This of course leads to a whole lot of materials being smuggled. Its a future where you have to bid to get a bus to go your way. The police instant messages and everything has gone digital. The rise of the internet has lead to an increase of unimaginable crimes. Our lead detective Liz works in the Rule 34 squad. A series of apparently connected murders take place. Only no one can figure out the perpetrator and the motive behind the crimes. Stross moves from the grissly murders to explanations of AI, singularity and spam with ease managing to keep you on the edge of your seat. Its a complex novel that virtually demands a reread. It is also written in a weird second person style that jar...

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...