Opinion

How Sanskrit came to be considered the most suitable language for computer software

Misreading of a 1995 paper in 'AI Magazine' and the sheer power of assertion repeated so often that it's never questioned seem to be responsible.

About Sanskrit in contemporary India, there are two things of note.

The first is typified by what I found in the Hindustan Timesa few days ago. When a mobile app firm observed August 15 by asking people to tweet with the hashtag #IndianAndProud, many Indians responded. A selection of their 140-or-less character epigrams covered three full pages in the paper on August 19. One repeated an assertion that’s been made so often it’s no longer even questioned: that “Sanskrit is considered the most suitable language for computer software”.

The way I’ve often seen it, that statement is usually prefixed by the words “A report in Forbes magazine in 1987 said that…”. Perhaps in this case the Twitter character limit forced their omission. But this attribution to Forbes has been made so often, it is no longer even questioned. Though if it was, we’d find that no such report was ever in Forbes, whether in 1987 or any other time.

So why do so many people appear to believe it? Or what does it even mean? Or where did this shibboleth come from in the first place?

Natural language for computers

To answer that, you have to go back about 30 years, to 1985. That’s when, in a previous life, I was writing software for a living, particularly in a field that the industry was actively trying to profit from at the time, Artificial Intelligence. That year, a researcher named Rick Briggs at National Aeronautics and Space Administration, or NASA, made waves by publishing a paper in AI Magazine, titled “Knowledge Representation in Sanskrit and Artificial Intelligence.” (Abstract and full text available here.)

This is the paper that would launch a thousand claims about Sanskrit and software.

Now a major AI goal at the time was to get computers to understand “natural language” – meaning not Lisp or C or Prolog, which they all did quite well, but languages we humans speak. Like English, or Hindi, or Tagalog – or, for that matter, Sanskrit. That you can today ask Google a perfectly grammatical English question (try “What is the temperature on Tristan da Cunha?”) and actually get meaningful results owes something to those early research efforts. And Briggs alerted AI folks to something fascinating and useful: that the grammar of Sanskrit – structured and rule-based as it was – had significant lessons for this business of natural language understanding. Studying the way ancient Indian grammarians worked, Briggs suggested, might help AI researchers “finally solve the natural language understanding [problem]”.

All of which is fascinating enough. But while his abstract does say that “a natural language can serve as an artificial language also”, nowhere in the paper did Briggs claim that Sanskrit is “the most suitable language for computer software”. That second is an essentially meaningless statement.

For one thing, different kinds of software are suited to different computer languages. Much of AI research has happened in Lisp, for example, because of its ability to manipulate words and sentences – but Lisp is nearly unheard of outside AI. So there is no such thing as the “most suitable language” for software. But for another thing, if it was indeed so spot-on suitable, we’d have seen software written in Sanskrit by now. That we haven’t is a pointer to the truth: certainly the rigorous rules of Sanskrit grammar have lessons for AI, but writing software is another challenge altogether. The way computers are built requires a certain clear and unmistakable logic in how we give instructions to them. Nobody has yet found a way to do that in any natural language, whether Sanskrit or English or Tagalog.

Elective, not mandatory

Which brings us to the other thing about Sanskrit in contemporary India: Himachal Pradesh has just announced that “Sanskrit will be made a mandatory subject in all government schools” in the state.

Why would a state force its students – or at least, the students in government schools – to learn Sanskrit? This is not to suggest that no students must learn it, not at all. After all, plenty of the collective wisdom of this country, gathered over many centuries, is recorded in Sanskrit and is, we believe, stored somewhere safe. I would have liked to learn enough Sanskrit – and maybe will someday – to read and understand even the line Rick Briggs deconstructs in his paper: “Maitrah: sauhardyat Devadattaya odanam ghate agnina pacati.” (He did kindly translate: “Out of friendship, Maitra cooks rice for Devadatta in a pot over a fire.”) And of course some of us – AI researchers, in particular – would do well to learn enough of the language’s grammar to use it as Briggs suggests.

The word, of course, is “some”. Some of us will learn the intricacies of quantum mechanics, so as to tackle the endless mysteries of our universe. Some of us will learn the ins and outs of economics, so as to understand the dynamics of trade and markets. But not all of us. Because we don’t need that knowledge to live our lives. Which is why those subjects are not taught to every school-going kid.

In the same way as it would make no sense to make quantum mechanics and economics mandatory, it makes no sense to make Sanskrit mandatory in schools. Make it available as an elective for those who want to study it; leave the rest to focus on their other subjects.

Because for all its precise grammar and its centuries of history, this is the truth about Sanskrit: few people today speak it – just over 14,000 according to the 2001 Census, in fact. And certainly computers don’t speak it.

Support our journalism by subscribing to Scroll+ here. We welcome your comments at letters@scroll.in.
Sponsored Content BY 

The next Industrial Revolution is here – driven by the digitalization of manufacturing processes

Technologies such as Industry 4.0, IoT, robotics and Big Data analytics are transforming the manufacturing industry in a big way.

The manufacturing industry across the world is seeing major changes, driven by globalization and increasing consumer demand. As per a report by the World Economic Forum and Deloitte Touche Tohmatsu Ltd on the future of manufacturing, the ability to innovate at a quicker pace will be the major differentiating factor in the success of companies and countries.

This is substantiated by a PWC research which shows that across industries, the most innovative companies in the manufacturing sector grew 38% (2013 - 2016), about 11% year on year, while the least innovative manufacturers posted only a 10% growth over the same period.

Along with innovation in products, the transformation of manufacturing processes will also be essential for companies to remain competitive and maintain their profitability. This is where digital technologies can act as a potential game changer.

The digitalization of the manufacturing industry involves the integration of digital technologies in manufacturing processes across the value chain. Also referred to as Industry 4.0, digitalization is poised to reshape all aspects of the manufacturing industry and is being hailed as the next Industrial Revolution. Integral to Industry 4.0 is the ‘smart factory’, where devices are inter-connected, and processes are streamlined, thus ensuring greater productivity across the value chain, from design and development, to engineering and manufacturing and finally to service and logistics.

Internet of Things (IoT), robotics, artificial intelligence and Big Data analytics are some of the key technologies powering Industry 4.0. According to a report, Industry 4.0 will prompt manufacturers globally to invest $267 billion in technologies like IoT by 2020. Investments in digitalization can lead to excellent returns. Companies that have implemented digitalization solutions have almost halved their manufacturing cycle time through more efficient use of their production lines. With a single line now able to produce more than double the number of product variants as three lines in the conventional model, end to end digitalization has led to an almost 20% jump in productivity.

Digitalization and the Indian manufacturing industry

The Make in India program aims to increase the contribution of the manufacturing industry to the country’s GDP from 16% to 25% by 2022. India’s manufacturing sector could also potentially touch $1 trillion by 2025. However, to achieve these goals and for the industry to reach its potential, it must overcome the several internal and external obstacles that impede its growth. These include competition from other Asian countries, infrastructural deficiencies and lack of skilled manpower.

There is a common sentiment across big manufacturers that India lacks the eco-system for making sophisticated components. According to FICCI’s report on the readiness of Indian manufacturing to adopt advanced manufacturing trends, only 10% of companies have adopted new technologies for manufacturing, while 80% plan to adopt the same by 2020. This indicates a significant gap between the potential and the reality of India’s manufacturing industry.

The ‘Make in India’ vision of positioning India as a global manufacturing hub requires the industry to adopt innovative technologies. Digitalization can give the Indian industry an impetus to deliver products and services that match global standards, thereby getting access to global markets.

The policy, thus far, has received a favourable response as global tech giants have either set up or are in the process of setting up hi-tech manufacturing plants in India. Siemens, for instance, is helping companies in India gain a competitive advantage by integrating industry-specific software applications that optimise performance across the entire value chain.

The Digital Enterprise is Siemens’ solution portfolio for the digitalization of industries. It comprises of powerful software and future-proof automation solutions for industries and companies of all sizes. For the discrete industries, the Digital Enterprise Suite offers software and hardware solutions to seamlessly integrate and digitalize their entire value chain – including suppliers – from product design to service, all based on one data model. The result of this is a perfect digital copy of the value chain: the digital twin. This enables companies to perform simulation, testing, and optimization in a completely virtual environment.

The process industries benefit from Integrated Engineering to Integrated Operations by utilizing a continuous data model of the entire lifecycle of a plant that helps to increase flexibility and efficiency. Both offerings can be easily customized to meet the individual requirements of each sector and company, like specific simulation software for machines or entire plants.

Siemens has identified projects across industries and plans to upgrade these industries by connecting hardware, software and data. This seamless integration of state-of-the-art digital technologies to provide sustainable growth that benefits everyone is what Siemens calls ‘Ingenuity for Life’.

Case studies for technology-led changes

An example of the implementation of digitalization solutions from Siemens can be seen in the case of pharma major Cipla Ltd’s Kurkumbh factory.

Cipla needed a robust and flexible distributed control system to dispense and manage solvents for the manufacture of its APIs (active pharmaceutical ingredients used in many medicines). As part of the project, Siemens partnered with Cipla to install the DCS-SIMATIC PCS 7 control system and migrate from batch manufacturing to continuous manufacturing. By establishing the first ever flow Chemistry based API production system in India, Siemens has helped Cipla in significantly lowering floor space, time, wastage, energy and utility costs. This has also improved safety and product quality.

In yet another example, technology provided by Siemens helped a cement plant maximise its production capacity. Wonder Cement, a greenfield project set up by RK Marbles in Rajasthan, needed an automated system to improve productivity. Siemens’ solution called CEMAT used actual plant data to make precise predictions for quality parameters which were previously manually entered by operators. As a result, production efficiency was increased and operators were also freed up to work on other critical tasks. Additionally, emissions and energy consumption were lowered – a significant achievement for a typically energy intensive cement plant.

In the case of automobile major, Mahindra & Mahindra, Siemens’ involvement involved digitalizing the whole product development system. Siemens has partnered with the manufacturer to provide a holistic solution across the entire value chain, from design and planning to engineering and execution. This includes design and software solutions for Product Lifecycle Management, Siemens Technology for Powertrain (STP) and Integrated Automation. For Powertrain, the solutions include SINUMERIK, SINAMICS, SIMOTICS and SIMATIC controls and drives, besides CNC and PLC-controlled machines linked via the Profinet interface.

The above solutions helped the company puts its entire product lifecycle on a digital platform. This has led to multi-fold benefits – better time optimization, higher productivity, improved vehicle performance and quicker response to market requirements.

Siemens is using its global expertise to guide Indian industries through their digital transformation. With the right technologies in place, India can see a significant improvement in design and engineering, cutting product development time by as much as 30%. Besides, digital technologies driven by ‘Ingenuity for Life’ can help Indian manufacturers achieve energy efficiency and ensure variety and flexibility in their product offerings while maintaining quality.

Play

The above examples of successful implementation of digitalization are just some of the examples of ‘Ingenuity for Life’ in action. To learn more about Siemens’ push to digitalize India’s manufacturing sector, see here.

This article was produced on behalf of Siemens by the Scroll.in marketing team and not by the Scroll.in editorial staff.