# Is Sanskrit the most suitable language for computer software?

**URL:** <https://boards.straightdope.com/t/is-sanskrit-the-most-suitable-language-for-computer-software/315050>\
**Category:** Factual Questions\
**Created:** [July 31, 2005, 11:31pm UTC](https://boards.straightdope.com/t/is-sanskrit-the-most-suitable-language-for-computer-software/315050 "2005-07-31T23:31:00Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [August 1, 2005, 4:42pm UTC](https://boards.straightdope.com/t/is-sanskrit-the-most-suitable-language-for-computer-software/315050/21 "2005-08-01T16:42:57Z")

</div>

> [@Derleth](#):
>
> This is very true on both counts. It should be pointed out, though, that which language is chosen depends less on the exact features of the language and more on the other source code programs written in that language can easily leverage. This is perhaps the biggest reason new software is still written in FORTRAN and COBOL.

True, but in that case compatibility with old code is one of the constraints on the problem. It’s just very rarely explicitly called out because you’re very rarely looking at switching languages.

---

<div class="post-metadata">

**Author:** ![ShibbOleth](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@ShibbOleth](https://boards.straightdope.com/u/ShibbOleth)\
**Post date:** [August 1, 2005, 4:54pm UTC](https://boards.straightdope.com/t/is-sanskrit-the-most-suitable-language-for-computer-software/315050/22 "2005-08-01T16:54:24Z")

</div>

Wow, I didn’t know that’s where Panini’s brilliance lay… I was sure his brilliance was in first grilling the sandwich on both sides at once.

---

<div class="post-metadata">

**Author:** ![Excalibre](https://avatars.discourse-cdn.com/v4/letter/e/898d66/32.png) [@Excalibre](https://boards.straightdope.com/u/Excalibre)\
**Post date:** [August 1, 2005, 6:26pm UTC](https://boards.straightdope.com/t/is-sanskrit-the-most-suitable-language-for-computer-software/315050/23 "2005-08-01T18:26:10Z")

</div>

> [@ShibbOleth](#):
>
> Wow, I didn’t know that’s where Panini’s brilliance lay… I was sure his brilliance was in first grilling the sandwich on both sides at once.

His brilliance was truly without end, a renaissance man who created both modern linguistics and modern café cuisine. Widely considered history’s greatest linguist, and the discoverer of principles that underlie almost all of modern linguistics, he also first united pesto, cheese, and deli meats in a form previously not even understood.

---

<div class="post-metadata">

**Author:** ![What\_Exit](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/what_exit/32/10652_2.png) [@What\_Exit](https://boards.straightdope.com/u/What_Exit)\
**Post date:** [August 1, 2005, 6:47pm UTC](https://boards.straightdope.com/t/is-sanskrit-the-most-suitable-language-for-computer-software/315050/24 "2005-08-01T18:47:17Z")

</div>

Does anyone remember [Loglan](http://en.wikipedia.org/wiki/Loglan)  
If you’re looking for a spoken language, this would be among the best candidates.

**However** , it will be easier to teach humans to use a crisp subset of their native language for future Programming than to teach them a new language.  
So unless the idea is that all programming is to be done by Sanskrit experts, count on there someday being many Human to Computer language subsets and enough raw processing power to try out dozens of variants in a short time to see which is the program action the user was hoping for.

---

<div class="post-metadata">

**Author:** ![Finagle](https://avatars.discourse-cdn.com/v4/letter/f/b19c9b/32.png) [@Finagle](https://boards.straightdope.com/u/Finagle)\
**Post date:** [August 1, 2005, 6:57pm UTC](https://boards.straightdope.com/t/is-sanskrit-the-most-suitable-language-for-computer-software/315050/25 "2005-08-01T18:57:09Z")

</div>

> [@ticker](#):
>
> There seems to be some misunderstanding about what a programming language is for. It is **not** meant to make to be easy for the computer, it is meant to make it **easy for the human**. Perhaps the title for the OP should be: _Is Sanskrit the most suitable language for computer **programmers?** _

Actually, this is incorrect. Many computer languages use constructs that range from being mildly inconvenient to complete pain-in-the-butt for programmers but are intended to make the language easier for the compiler/interpreter to parse. (I used to have a canonical example from Common Lisp, but it’s been many years since I’ve programmed in it, so I’ve forgotten what it was.)

But certainly, syntactic sugar such as “begin-end” blocks are more for the compiler’s benefit than the programmer’s, although they do have some use for increasing the readability of the code.

---

<div class="post-metadata">

**Author:** ![Beware\_of\_Doug](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@Beware\_of\_Doug](https://boards.straightdope.com/u/Beware_of_Doug)\
**Post date:** [August 1, 2005, 8:11pm UTC](https://boards.straightdope.com/t/is-sanskrit-the-most-suitable-language-for-computer-software/315050/26 "2005-08-01T20:11:28Z")

</div>

I know nothing about programming languages _or_ Sanskrit. In fact, with all due respect, I don’t care to learn. What I _do_ know is that India in recent years has produced a buttload of good programmers. That right there is enough to put the Sanskrit/programming idea in the same basket with the old accepted wisdom that Italian is the best language for music – which originated at a time when Italy was producing a buttload of good musicians.

---

<div class="post-metadata">

**Author:** ![MadderMitch](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@MadderMitch](https://boards.straightdope.com/u/MadderMitch)\
**Post date:** [August 1, 2005, 8:20pm UTC](https://boards.straightdope.com/t/is-sanskrit-the-most-suitable-language-for-computer-software/315050/27 "2005-08-01T20:20:41Z")

</div>

> [@Beware of Doug](#):
>
> I know nothing about programming languages _or_ Sanskrit. In fact, with all due respect, I don’t care to learn. What I _do_ know is that India in recent years has produced a buttload of good programmers.

What are they famous or something?

---

<div class="post-metadata">

**Author:** ![What\_Exit](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/what_exit/32/10652_2.png) [@What\_Exit](https://boards.straightdope.com/u/What_Exit)\
**Post date:** [August 1, 2005, 8:22pm UTC](https://boards.straightdope.com/t/is-sanskrit-the-most-suitable-language-for-computer-software/315050/28 "2005-08-01T20:22:06Z")

</div>

> [@Beware of Doug](#):
>
> I know nothing about programming languages _or_ Sanskrit. In fact, with all due respect, I don’t care to learn. What I _do_ know is that India in recent years has produced a buttload of good programmers. That right there is enough to put the Sanskrit/programming idea in the same basket with the old accepted wisdom that Italian is the best language for music – which originated at a time when Italy was producing a buttload of good musicians.

Umm, India has produced a boatload of good programmers in last few years, probably has more to do with having 1 Billion People and a much higher rate of being multilingual with English as a common second language. (keeping in mind English is the most in demand language for programming for now)

• 2005 est. 1,080,264,388 (2nd)  
Official languages Hindi, English, and 21 other languages  
see [http://en.wikipedia.org/wiki/India](http://en.wikipedia.org/wiki/India)

---

<div class="post-metadata">

**Author:** ![Bytegeist](https://avatars.discourse-cdn.com/v4/letter/b/9dc877/32.png) [@Bytegeist](https://boards.straightdope.com/u/Bytegeist)\
**Post date:** [August 1, 2005, 8:43pm UTC](https://boards.straightdope.com/t/is-sanskrit-the-most-suitable-language-for-computer-software/315050/29 "2005-08-01T20:43:36Z")

</div>

> [@jrfranchi](#):
>
> **However** , it will be easier to teach humans to use a crisp subset of their native language for future Programming than to teach them a new language.

Indeed. The Russians did this with COBOL and Pascal at least, and probably other programming languages — that is, kept the grammar and semantics of the original language, while translating the keywords into Russian. Makes perfect sense to do that. (I’m sure the Russians had their own home-grown programming languages as well.)

---

<div class="post-metadata">

**Author:** ![DougC](https://avatars.discourse-cdn.com/v4/letter/d/7feea3/32.png) [@DougC](https://boards.straightdope.com/u/DougC)\
**Post date:** [August 1, 2005, 9:00pm UTC](https://boards.straightdope.com/t/is-sanskrit-the-most-suitable-language-for-computer-software/315050/30 "2005-08-01T21:00:35Z")

</div>

> [@](#):
>
> …Actually, disassembling code from machine into assembler is nontrivial. At the very least, you lose the mnemonic variable names, so the code is virtually unreadable… - **Finagle**

- 
  - 
    - Yea, it would be improved if they had a way to force it to keep character strings in the executable, so you could comment it, and it would just automatically insert jumps over all the comment characters.

> [@](#):
>
> …Ye gods, no! We gave up doing everything in assembler in the 1950s, when FORTRAN and COBOL were invented… - \*\*\*\*

- Well now, this depends on what your objectives are. Do you mean a better programming language would be easier for people to remember? Or that a better language would be easier to troubleshoot? The problem with compiled code is that if you only have the machine code, you have no way of knowing what the source code was. Seems to me the first matter of business is to switch to a programming language that allows accurate two-way translation. Does any other language allow that?  
~

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [August 1, 2005, 9:05pm UTC](https://boards.straightdope.com/t/is-sanskrit-the-most-suitable-language-for-computer-software/315050/31 "2005-08-01T21:05:54Z")

</div>

> [@DougC](#):
>
> - 
> - 
> - Yea, it would be improved if they had a way to force it to keep character strings in the executable, so you could comment it, and it would just automatically insert jumps over all the comment characters.

Three issues here:

1. Executable size. Nowadays it matters a lot less (unless you’re expecting folks to download your stuff over dialup), but back in the day when every byte mattered, this just wasn’t feasible.

2. Run time. There’s going to be some overhead involved in passing over all of those character strings. Back then, it would’ve been a nightmare. Nowadays it would interfere badly with a pipelined architecture.

3. Security. Want to make it easy for hackers and script kiddies to reverse engineer your code and find out exactly how it works? This is the way.

> [@](#):
>
> - Well now, this depends on what your objectives are. Do you mean a better programming language would be easier for people to remember? Or that a better language would be easier to troubleshoot? The problem with compiled code is that if you only have the machine code, you have no way of knowing what the source code was. Seems to me the first matter of business is to switch to a programming language that allows accurate two-way translation. Does any other language allow that?  
> ~

See my point about securtiy above. At least the most recent version of MS Visual Studio will generate assembly and machine code listings along with the source that you could use to map some things back (anonymous crash data, for instance). That’s a good solution because it leaves the developers with what they need to do their troubleshooting without making it easy for malicious programmers to discover the behavior of their target.

---

<div class="post-metadata">

**Author:** ![Bytegeist](https://avatars.discourse-cdn.com/v4/letter/b/9dc877/32.png) [@Bytegeist](https://boards.straightdope.com/u/Bytegeist)\
**Post date:** [August 1, 2005, 9:21pm UTC](https://boards.straightdope.com/t/is-sanskrit-the-most-suitable-language-for-computer-software/315050/32 "2005-08-01T21:21:39Z")

</div>

> [@Beware of Doug](#):
>
> What I _do_ know is that India in recent years has produced a buttload of good programmers. That right there is enough to put the Sanskrit/programming idea in the same basket with the old accepted wisdom that Italian is the best language for music – which originated at a time when Italy was producing a buttload of good musicians.

Right. Italian is the “language of music” because Italians established an early reputation in composing and describing music (as well as making musical instruments) over the course of many decades. Subsequent achievements by, say, the German composers happened against this historical background. The Italian vocabulary and notation systems already in place were then carried forward, _even long after_ Italian contributions to music became much less significant. That’s because there wasn’t any need to reinvent the wheel — as people have been saying since, well, since the day after the wheel was invented.

English has so far been the dominant language of computer science and programming languages because most of the work in the field happened first in the UK and the US, and a large fraction of it continues there even now. There’s a huge amount of inertia behind this choice. I don’t see that changing, even after the US and UK stop being prolific contributors to the field (if or whenever that might happen), for the same reason that we’re still using Italian to talk about music — and French to talk about food and diplomacy, and German to talk about philosophy, and Latin to talk about the law, and so on.

Since Sanskrit offers no special attractions for designing a new computer language, the only way for it to become popular, let alone dominant, is for a lot of Indians who know Sanskrit to start designing fantastic new languages that really catch on. But any language that’s fantastic in Sanskrit would be pretty much just as fantastic in English, since the underlying mathematics are not tied to natural languages anyway.

---

<div class="post-metadata">

**Author:** ![Monty](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/monty/32/47_2.png) [@Monty](https://boards.straightdope.com/u/Monty)\
**Post date:** [August 1, 2005, 9:27pm UTC](https://boards.straightdope.com/t/is-sanskrit-the-most-suitable-language-for-computer-software/315050/33 "2005-08-01T21:27:35Z")

</div>

> [@II Gyan II](#):
>
> An undergrad in math.

II Gyan II, you will no doubt find Syntax interesting as it has a lot of Topology inherent.

---

<div class="post-metadata">

**Author:** ![ouryL](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/ouryl/32/6067_2.png) [@ouryL](https://boards.straightdope.com/u/ouryL)\
**Post date:** [August 1, 2005, 9:38pm UTC](https://boards.straightdope.com/t/is-sanskrit-the-most-suitable-language-for-computer-software/315050/34 "2005-08-01T21:38:12Z")

</div>

> [@jrfranchi](#):
>
> Does anyone remember [Loglan](http://en.wikipedia.org/wiki/Loglan)  
> If you’re looking for a spoken language, this would be among the best candidates.
> 
> **However** , it will be easier to teach humans to use a crisp subset of their native language for future Programming than to teach them a new language.  
> So unless the idea is that all programming is to be done by Sanskrit experts, count on there someday being many Human to Computer language subsets and enough raw processing power to try out dozens of variants in a short time to see which is the program action the user was hoping for.

What ever happened to the proposed study to teach a bunch of children exclusively Loglan. I suppose the problem was to teach their parents Loglan first. 😛😛😛

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [August 1, 2005, 9:43pm UTC](https://boards.straightdope.com/t/is-sanskrit-the-most-suitable-language-for-computer-software/315050/35 "2005-08-01T21:43:34Z")

</div>

Is Sanskrit a living language?

---

<div class="post-metadata">

**Author:** ![Bytegeist](https://avatars.discourse-cdn.com/v4/letter/b/9dc877/32.png) [@Bytegeist](https://boards.straightdope.com/u/Bytegeist)\
**Post date:** [August 1, 2005, 9:56pm UTC](https://boards.straightdope.com/t/is-sanskrit-the-most-suitable-language-for-computer-software/315050/36 "2005-08-01T21:56:40Z")

</div>

> [@ultrafilter](#):
>
> Is Sanskrit a living language?

[It seems](http://www.sanskrit.org/Sanskrit/sanskrit.htm) to be analogous to Latin: dead, but not entirely forgotten. But I’m not Indian, or Hindu, nor am I a linguist.

(And I’m not going to make a Doper acronym out of that disclaimer either.)

---

<div class="post-metadata">

**Author:** ![What\_Exit](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/what_exit/32/10652_2.png) [@What\_Exit](https://boards.straightdope.com/u/What_Exit)\
**Post date:** [August 1, 2005, 10:03pm UTC](https://boards.straightdope.com/t/is-sanskrit-the-most-suitable-language-for-computer-software/315050/37 "2005-08-01T22:03:16Z")

</div>

> [@ouryL](#):
>
> What ever happened to the proposed study to teach a bunch of children exclusively Loglan. I suppose the problem was to teach their parents Loglan first. 😛😛😛

Sounds fairly evil, was this for real?

---

<div class="post-metadata">

**Author:** ![II\_Gyan\_II](https://avatars.discourse-cdn.com/v4/letter/i/bbe5ce/32.png) [@II\_Gyan\_II](https://boards.straightdope.com/u/II_Gyan_II)\
**Post date:** [August 1, 2005, 11:35pm UTC](https://boards.straightdope.com/t/is-sanskrit-the-most-suitable-language-for-computer-software/315050/38 "2005-08-01T23:35:50Z")

</div>

> [@ultrafilter](#):
>
> Is Sanskrit a living language?

Supposedly. A few years back, the TeeVee showed a couple of villages in Bangalore that conversed in Sanskrit. There were also a few newspaper articles. Of course, such reporting is gospel, so the ‘supposedly’ at the beginning is blasphemy.

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [August 1, 2005, 11:50pm UTC](https://boards.straightdope.com/t/is-sanskrit-the-most-suitable-language-for-computer-software/315050/39 "2005-08-01T23:50:58Z")

</div>

Either way, it doesn’t sound like your average Indian programmer would be fluent in Sanskrit. Thanks.

---

<div class="post-metadata">

**Author:** ![galt](https://avatars.discourse-cdn.com/v4/letter/g/35a633/32.png) [@galt](https://boards.straightdope.com/u/galt)\
**Post date:** [August 2, 2005, 12:31am UTC](https://boards.straightdope.com/t/is-sanskrit-the-most-suitable-language-for-computer-software/315050/40 "2005-08-02T00:31:56Z")

</div>

> [@ouryL](#):
>
> What ever happened to the proposed study to teach a bunch of children exclusively Loglan.

Aside from the obvious problem that they wouldn’t be able to communicate with anyone except loglan-speakers, I think this would end up being a massive handicap in the future when they try to learn other languages that aren’t so logical, since they won’t have experience with all the exceptions-to-the-rule that are par for the course with natural languages. Why not teach them the most difficult language possible, then say, “everything else is easier”? 🙂

[Previous page](https://boards.straightdope.com/t/is-sanskrit-the-most-suitable-language-for-computer-software/315050.md?page=1)

[Next page](https://boards.straightdope.com/t/is-sanskrit-the-most-suitable-language-for-computer-software/315050.md?page=3)
