Showing posts with label NASA. Show all posts
Showing posts with label NASA. Show all posts

Thursday, 18 April 2013

Bits and Bytes

In the Spring of the year 1985, a NASA scientist by the name of Rick Briggs, working at Roacs-NASA Ames Research Center(California), composed and presented an article by the name of "Sanskrit and Artificial Intelligence" for AI Magazine, published by NASA. Needless to say, C++ was still in its naive form by then, JAVA still hadn't arrived, and programmers were having a real tough time trying to deal with the machine-like computer languages in mnemonic codes.

In simpler terms, Mnemonic codes are part of Assembly Language, which comprise of operations like ADD(to add), SUB(to subtract), etc, which a computing machine can understand. Even to perform simplest of calculations in series, people were still feeding in scores of mnemonic codes, which they could neither comprehend nor understand properly. The Mnemonic codes formed a part of low level language and were completely different from the natural languages which humans speak or understand.
The search for a comprehensive programming language which would be compatible with natural languages was still on. C/C++ had provided glimpses of hope, albeit after years of research and money being pumped into it. Mr Briggs commented that the scientists have got beaten heavily by some 2,600 years in  being able to develop semantics for such a programming language, when a certain Indian sage, by the name of Panini, belonging to 7 BC, had all the answers to the problems the scientists were facing. Now why would Rick Briggs, a NASA scientist, claim such a thing? Had he found certain elements in Panini's work which compelled him ascertain such a notion?

Namaste and welcome to the eighth post of this blog. This post, like all the previous ones is indeed very special, but more so, because I personally found it the toughest to compose till now. I really hope you guys like it much more than all of the previous posts.

Panini was the man who designed the entire grammar for Sanskrit. The semantics, which comprise of some 4000 rules in total, are so scientific and logical in nature, that it could very well be the baseline of structures used by various computer scientists. Panini composed a book by the name of Ashtadhyayi which comprise of exhaustive set of rules for Sanskrit Grammar. The grammar is based purely on mathematical and algebraic algorithms, and is powerful enough to be used to model a generator, which could churn out the rules for languages like Chinese or Thai.


Alright enough of the theory, time for some practicals. Lets take up certain concepts of modern day computer programming and see how well they match up with the rules of Panini's Sanskrit.

Database and Metadata: In layman terms, Database is a collection of data. Raw data is meaningless. Metadata, in programming terms, means data about data. In other words, raw data, which is meaningless as such, assumes meaningful patterns and collection when metadata is applied to it. Panini's Sanskrit, in the form of 4000 rules, form four compact databases. Aksharasam Amanaya, Sutrapatha, Datupatha and Ganpatha are the databases of Sanskrit, and the metadata are the rules contained within these databases.

Recursion: Those who are not aware, recursion is a process of repeating items in a self-similar way. In computer programming, whenever a method call is made from within the method itself, it is called recursion
The picture below would explain recursion better
It is interesting to note that Panini has extensively used recursion in Sanskrit grammar. Each of the 4000 rules are called Sutras, and each complete word to define those rules was called Pada. Panini did not use all the Padas in a Sutra to fully explain the Sutra. He, at times refers to previous Sutras where the Pada has already been defined or used (method invocation). There are instances when Panini has called a Sutra from within itself to refer to the Pada.

मार्जारः श्रावितृ मूषकम् अपश्यत् (The cat, who hears, saw the rat)

Here there is a recursion of मार्ज(The Cat). May sound easy now, but think of it as a semantic being composed 2600 years ago

Arrays and null values: Panini has defined a term called Lop, which would be equivalent to Null. A null can be assigned to a variable, or a pada in Sanskrit, and then used for simple Array operations in Sanskrit like Join(Sandhi in Sanskrit). A number of array joins can result in a complex term, which again can be broken down(disjoint). The below example shows A simple Sanskrit word as three distinct String arrays with Null
नमःस्तुते = न             मः           लोपः           स्                तु             लोपः         ते
             S1[0]     S1[1]         Null            S2[0]          S2[1]       Null           S3[0]

Polymorphism: Literally, polymorphism simply means one word having more than one meanings. My software industry friends would understand better, but the below image can be of help for the others.

If "cut" is called, it maybe for a surgeon, hair stylist or an actor. A single action can mean different to different audience.
लम्बोदर: could mean A person with big Stomach, and could also mean Lord Ganesha. The user of the word has the freedom to define the meaning of the word in his context(run time polymorphism)

Distributive Law(Inheritance and Sets):  Panini used Brevity extensively in his Sanskrit Grammar rules. Consider this:
सुरेश: विपणिं गच्छति : Suresh went to the market(Suresh(s)Market(b))
सुरेश: त्रिचक्रिका क्रयक्रीत Suresh bought a cycle(Suresh(s)Cycle(b))
Suresh went to the market, brought a cycle(s(a+b))


Conditional Prgramming(If-Then-Else): Panini had made strict rules when two words were being joint or disjoint. At times, it would happen, that these rules may conflict. He again had a set of conditional statements, as per which every time there was a conflict, some rules can "block" other rules based on certain conditions

If X then Y(माथरा कौनदिन्य: न्याय: )
If X then Y else Z(तक्र कौनदिन्य: न्याय: )
If(not X) then Y(निसेधा)
If X then(Y and Z) (विभास: )

And the similarities, rather derivations dont end there. Sanskrit grammar has full support of multiple inheritance, function overloading, data abstraction, transformations...the list is endless. If certain scientists at NASA, and in India are to be believed, Sanskrit could very well be the language for all future communications, including interstellar communication. With hopes that one day this may be true, I would like to bring my post to an end. At some later time, I would wish to pick up the remaining of the software programming paradigms and their Sanskrit origins. But, as of now, I would love to know what you felt about this post.

Coming up with a book based on Indian history/mythology.
Please join the Facebook page and invite others as well to do the same.
Please help me promote the book and the page and make it a huge success.

Please click here and like the page which comes up - Finders, Keepers

If you are on Facebook and are interested in such topics, please click on the link below and like the page which comes up.
Rediscovering India

Goodbye and Namaste!!

References:
1.) R. Briggs, 1985, “Knowledge representation in Sanskrit and artificial intelligence", AI Magazine, vol.6,pp. 22-38.
2.) The methods used inside the ashtadyayi is similar to today's arrays, inheritance (including multiple inheritance), polymorphism, etc. used in OOPS - Reference: Recent Research in Science and Technology, 2011, 3(7): 109-111,  ISSN: 2076-5061, www.scholarjournals.org
3.) Ashtadyayi Reference: http://avagraha.wordpress.com/
4.) Panini's Ashtadhyayi A Computer Scientist's viewpoint by Amba Kulkarni, 3096420, http://www.academia.edu/
5.) Maharshi Panini : The Father of Computer Programming !!! http://asciencecalledhinduism.blogspot.in/2013/03/blog-post.html

Thursday, 28 March 2013

Ancient UFOs of India

Lets start this post with a small assumption. Lets assume that the tales and legends of Ramayana were more of a historical curiosity than mythology. That Ram, Sita and Laxman did spend some 14 years in jungles, and actually covered the entire length of the Indian subcontinent, reached Rameshwaram, prayed to Shiva, and then fought and won the epic war with Ravana. That Ramayana and Ramcharit Manas actually talk of history and not of some mysterious and hypothetical tales, though I personally still believe it to be history itself.


Anyways, having made this small assumption for the non-believers, lets move directly to the day when Rama has just defeated Ravana, the day, we celebrate even today as Dusshehra. Now, Ram was a pious king, so he would have made sure that the bodies of all soldiers were ceremoniously cremated. He also waited for Vibhishana to be crowned king of Lanka, or whatever remained of it. He would have bid adieu to Sugriva, Jamavant, Nala, Neela, and others. All of this could have taken a day, or two, when Rama along with Laxman and Sita would have started back for Ayodhya. All of them reach Ayodhya and the entire town broke into celebrations, the day, we still celebrate as Diwali. Which means, it took all three of them some 18-19 days to travel back. This certainly seems to be a bit far fetched, especially knowing that they crossed sea, and high altitude mountains and dense forests, not to mention they didnt have any maps. How did they do it then? Ramayana mentions a certain Pushpak Vimana, but could they fly in those days?

Year:1895;Place:Chowpatty, Mumbai
A mid-size crowd which included come general public, certain journalists and government officers waited with bated breath as a Sanskrit scholar by the name of Shivkar Bapuji Talpade performed nothing short of a miracle. Eight years before Orville Wright proved that it was possible for a 'manned heavier than air machine to fly', Talpade had created an aircraft designed purely on Vedic writings and had it take off unmanned in full view of the crowd. The aircraft, named Marutsakha-friend of the air, flew some 1500 feet before it came crashing down. The technology used by Talpade, mercury bombardment unit using solar cells, is now being deployed by NASA in building spacecrafts for future

I brought up the above two examples to prove a simple point, our ancient ancestors did have the knowledge and intelligence to be able to build a proper flying manned aircraft, Vimana.


Not only the Ramayana, Mahabharat talks of Krishna fighting in sky with his enemy. Samaragna Sutradhar talks about the semantics of building an aircraft. There are 230 stanzas talking of construction, take-off, cruising, normal and forced landings and even collision with birds. In 1875, Vaimanik Shastra, perhaps the most descriptive of all the texts dedicated to aircraft building was discovered in an ancient Indian Temple. The text was written by Sage Bharadwaj, who is known to have taught neo-modern sciences like aerospace sciences in his Ashrams.


The Vaimanik Shastra comprehensively explains the methods of steering, precautions for long distance travels, and a way to switch from fuel to solar energy. It has diagrams depicting building an aircraft, mentions apparatus which would not catch fire and can sustain at high altitude, and is based completely on verses and stanzas from the Vedas. The fuel used was a "yellowish-white liquid" and the text even talks about combustion engines and pulse-jet engines, a technology which was discovered not a long time ago. As per the text, there are 32 secrets which a pilot needs to learn and such a pilot could fly a plane, immobilize a plane, make his plane invisible to others and even destroy enemy planes.

There seems to be no doubt that Vimanas were powered by some sort of "anti-gravity." Vimanas took off vertically, and were capable of hovering in the sky, like a modern helicopter.


 It is interesting to note, that the Nazis developed the first practical pulse-jet engines for their V-8 rocket "buzz bombs." Hitler and the Nazi staff were exceptionally interested in ancient India and Tibet and sent
expeditions to both these places yearly, starting in the 30's, in order to gather esoteric evidence that they did so, and perhaps it was from these people that the Nazis gained some of their scientific information.

A piece of writing was found recently, at Easter Island near South America. The writing,still undeciphered is strikingly similar to texts found in Mohenjo Daro civilizations. Ramayana and other ancient texts related to Rama also talk of flying Vimanas to far lands in the pursuit of strengthening their military warfare.

Rig Veda and Yajur Veda comprise of hymns which talk in detail about Vimanas. The difficulty which scientists face today is the mention of a number of alloys and metals, which the historians are not able to decipher and understand.



I have often seen people wondering and even laughing at such knowledge, claiming it all to be nothing but a hypothetical imagery of ancient science. Why would ancient Indians not publish all this knowledge and keep it to themselves? The reason was pretty simple, and understandable. The knowledge was highly futuristic, and dangerous if fell into the wrong hands.It was for this reason that the knowledge was never published and was  taught to a specific group of students.

Needless to say, Indian ancient science was one of the most advanced, and highly futuristic, even when measured against today's parameters. This was the land of great intellectuals and philosophers. The various dynasties and empires which ruled India, robbed Indians off the intent to think beyond the obvious. The knowledge of the Vedas, the intelligence of the ancient Indians, is still out there, all around us. The reason, why Vedas should be considered more than religious books, and be rightfully called the powerhouse of knowledge.

With that I wish to end this post. The intelligence of ancient Indians, and the knowledge of Vedas, something I am a huge fanboy of. Would like to touch more of such sciences in coming posts. Thanks again for all the appreciation shown in terms of comments, page views and likes on FB. Your appreciation keeps me going.
Namaste!

Coming up with a book based on Indian history/mythology.
Please join the Facebook page and invite others as well to do the same.
Please help me promote the book and the page and make it a huge success.

Please click here and like the page which comes up - Finders, Keepers