556 points · by kick · 7y ago · 623 comments
The video mentioned how the ligatures of Arabic can stretch, to allow fixed-width justification, which was neat, although it doesn't actually change our notions of scripting.
Consider, for instance, if English didn't have any imperative form, and instead everything were a request. Would declarative languages like Prolog have been the default?
Perhaps the most interesting thought experiments along this vein could be for conlangs. Can we write a conlang that is more elegant, meaningful, even beautiful for scripting?
Here's an quote from a New Yorker article on conlangs:
> Ithkuil has two seemingly incompatible ambitions: to be maximally precise but also maximally concise, capable of capturing nearly every thought that a human being could have while doing so in as few sounds as possible. Ideas that could be expressed only as a clunky circumlocution in English can be collapsed into a single word in Ithkuil. A sentence like “On the contrary, I think it may turn out that this rugged mountain range trails off at some point” becomes simply “Tram-mļöi hhâsmařpţuktôx.”
https://www.newyorker.com/magazine/2012/12/24/utopian-for-be...
You realize that this is the foundation of classic OOP, right?
http://lists.squeakfoundation.org/pipermail/squeak-dev/1998-...
Alan Kay: "The big idea is "messaging" -- that is what the kernal of Smalltalk/Squeak is all about (and it's something that was never quite completed in our Xerox PARC phase). The Japanese have a small word -- ma -- for "that which is in between" -- perhaps the nearest English equivalent is "interstitial". The key in making great and growable systems is much more to design how its modules communicate rather than what their internal properties and behaviors should be."
INTERCAL statements all start with a "statement identifier"; in INTERCAL-72, this can be DO, PLEASE, or PLEASE DO, all of which mean the same to the program, but using one of these too heavily causes the program to be rejected
Funktion VorherigerGeschaeftstag(dt Als Datum) Als Datum
Dim wd as integer
wd = Wochentag(dt) ' Wochentag liefert 1 für Sonntag, 2 für Montag usw.
Prüfe Fall wd
Fall 1
' Auf Sonntag wird Datum vom letzten Freitag zurückgegeben
VorherigerGeschaeftstag = dt - 2
Fall 2
' Auf Montag wird Datum vom letzten Freitag zurückgegeben
VorherigerGeschaeftstag = dt - 3
Fall Sonst
' Andere Tage: vorheriges Datum wird zurückgegeben
VorherigerGeschaeftstag = dt - 1
Ende Prüfe
Ende FunktionIt's like how every function in Excel is translated as well. `=SUMMEWENNS(…`
Complete nonsense, it makes my eyes bleed.
Unfortunately, Excel files were more often opened on other computers than Java files...
To be inclusive is hard. Even if we imagine one Excel version per continent, all Latin-based people would be ok, it would also suit countries that can be globalized under the Chinese or Arabic areas. But the offshore situations with 2 different continents wouldn’t work well.
And sooner or later you end up with one Excel version per alphabet. Russian, Tamil, Farsi, etc.
We haven't yet seen a serious non-English programming language. One would have expected one in Chinese or Japanese by now. There was COBOL in French, once, with French words and word order, but it never caught on, even in Francophone countries.
I started programming at least 4 years before I started learning English. In my experience, not knowing what "if" means doesn't change anything because I never thought of code as prose. Whether it's called "if", "si", or "wenn", all that changes in my head is "what's the magic word that I have to insert before I can branch my code?".
This, I believe, it's why localized programming languages never catch on: because it solves a problem I don't have while bringing a new problem I do have, namely, not being able to find support for my niche programming language.
Variable names and comments? Sure, those are definitely prose. But I doubt anyone suffered too much when Python chose "elif" instead of "else if" (other than developers trying to remember whether a particular script should use "else if", "elsif", "elif", or "|").
Hm, even today, I have not idea why "for" is used for loops (?) and I'm using it without any problems.
A class mate said his father said they were both pronounced as in English.
We had a fight over this in the playground, and I beat him. So I was right. "input" on the Commodore 64 is pronounced like in Dutch.
In python is pretty direct: “for x in a” translates for for every x in the collection a, do this code...
In C it’s a bit more abstract: “for (i=0; i<10; ++i)” for every i in the range starting at i=0, while it’s less than 10, incrementing... Basically the body establishes a set or collection and the for loop executed the loop body “for” every item in the collection.
Modern languages often use foreach or some other slightly more descriptive name.
In PHP 5.4, they helped the situation somewhat by changing the error message to "unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM)" - I suspect national pride was involved in their refusal to completely remove the internal token name from the error message.
Who is "we"?
1C is a Russian-based domain-specific language that dominates accounting in Russia and neighboring ex-USSR countries[1]. It competes with SAP, and made its founder a billionaire[2].
[1]https://ru.wikipedia.org/wiki/1С:Предприятие
[2]https://www.bloomberg.com/news/articles/2017-06-15/a-russian...
I'll try to find some, but in the meantime check out these code samples:
https://gist.github.com/alexaandrov/739e16e1786ab2b3d6bc
https://guesto.ru/1c-razrabotka-konfiguratsii-menedzher-zada...
Etc
But nobody cared. Programmers program in English.
I once traveled to Finland to visit a customer. Everyone in the office spoke in English. I asked if they were just being polite because I was there. They said nope, their staff was from all over Europe and the only language they had in common was English.
(Europe is only a special case "to some extent" because English also competes for lingua franca status with Hindi in India; in Japan it's taught (badly) as a result of connections with the US; and in countries as varied as Israel and Singapore it has a foothold.)
If you're starting from first principles, and are willing to go with that common-second-language threshold instead of insisting on people's first languages, English is still definitely a clear first choice - it barely edges out Chinese for total L1 + L2 speakers, and those speakers are concentrated in the centers of software development.
After that you have Chinese and Hindi (both fairly restricted in geographical reach, but involving lots of people), then Spanish (most of Latin America) and French (spoken in a dizzying array of cultures as L2, because of colonial history in Africa and the Middle East).
And then you finally get to Arabic :-P
There are, to this day, people who get in trouble when their computers reply to them in English, including coding folks. I bet they were (and are) thankful for initiatives like yours, but they won't have the vocabulary to tell you.
The definition of useful varies though. Many people starting out don't have the ability to understand some error messages, so being able to search for the error message is most useful. If everyone in the world has the same error message, finding an explanation for the error is a lot easier.
We're still struggling with this in english. Think about how often the default reaction still is to google a compiler error, unless it's one of a handful of common ones you see often. Compiler errors are often opaque, even to the best programmers that speak english natively. A significant base of software emits error numbers with thin descriptions at best, which then have to be looked up in a manual anyway.
Now, if the natural language has some influence on the semantics of the programming language, it might be useful enough. Doubt it, as most natural languages' grammar is way harder than either English or your average programming language. The only attempt that comes to mind right now would be Lingua::Romana::Perligata[1] and that's just an esolang layer.
Now, for political or philosophical reasons an artificial language might be considered. Like Esperanto or Lojban, but I haven't seen something like this, either (I'm not counting Klingon).
[1]: http://users.monash.edu/~damian/papers/HTML/Perligata.html
We already know that powerful programming languages can be built with non-ASCII characters in mind -- see APL, for example.
However, we also know that the difficulties of typing these languages without special keyboard support have led to a variety of more English in ASCII language successors such as J/K/L.
The input language has nothing to do with the keyboard. How do you think people type foreign natural languages? This comes up again and again in programming-related online discussions - why is it so hard for people who program software every day to imagine that keyboard input is also mapped by software?
The real reason Iverson used ASCII for J is that in the early 1980s, you had to get an APL character video ROM (code page 907) for your terminal or PC (exactly the same case as for foreign languages). Obviously not a problem at the time for Macs or other computers that use bit-mapped fonts, and has not been a problem for PCs for the past 30 years.
So ooo calc vba equivalent is translated in various languages ;p
While I understand localization can be useful for a subset of users, at least they could have made the English function names also work, or have a suggestion mechanism to suggest the Spanish translation if you type an English function name. I don't understand why they don't do this.
Anyway, the problems of name localization are nothing compared to the problems of using commas as decimal separator. People from English-speaking countries will never know how many extra hours of life they have from not fiddling with decimal separators, text encoding programming issues, etc.
If memory serves me right, back when MS Office macro viruses were the threat du jour, there was already a bit of a remedy in place for those formats that would translate the formulas and macros of incoming files from a different language version of the same software. This caused secondary waves of "mutated" viruses that had crossed multiple language barriers and came back slightly different but still working, foiling the efforts of checksum based virus scanners.
Not as stupid as translating low level error messages.
It's part of the dev environment windev which is totally closed and (at least last time i had to use it) doesn't allow to use any tools like git (sources are encrypted). This and the fact that the whole environment was extremelly bugy (and even the language itself) makes it a real nightmare to work with. That's the only other example of non english programing language I can think of though
Edit: just found this article on wikipedia after writing this. There's quite a few languages:
https://en.m.wikipedia.org/wiki/Non-English-based_programmin...
Easily the single most diabolical thing I've heard all week.
> diabolical
You have no idea.
I've worked with devs using it (and had to debug their code more often than not): the thing is hell, through and through, from the stdlib itself (buggy as fsck[0], terribly leaky abstractions[1], ridiculously contrived[2]) to the IDE to the concepts (worse than VB, you store procedures in windows so changing the UI ever so slightly has dramatic effect on your whole codebase and since it's half static half dynamic you catch that only at runtime) to the source control (worse than VSS, and that's telling[3]) to the database (worse than your random toy-weekend-project database[4]) to the devious marketing ploys[5].
(some links in FR but you can toggle to English)
[0]: JSON parsing and generation is non-conformant, e.g translates null to empty strings. There is basically no memory management and the thing leaks like a sieve. This one can only do GET and POST "automatically", adds a topmost "Accept: * ", and actually only sends credentials on non-HTTPS: on HTTPS they're outright dropped because of a bug, so you have to implement HTTP basic yourself with the hack below! https://doc.pcsoft.fr/fr-FR/?3043007&name=HTTPRequete
[1]: Same proc as above, the overall thing and additional header field is actually a string concat, so if you want multiple ones you pass a string with those separated by \r\n, but god forbid you omit the last CRLF as the headers and body won't have the required CRLF and be right next to each other.
[2]: dict-like stuff (mem leaks included): https://doc.pcsoft.fr/fr-FR/?1514057&name=Tableaux_dynamique...
[3]: http://www.highprogrammer.com/alan/windev/sourcesafe.html
[4]: For network access they actually recommended you share a database via SMB shares before they had a "server mode", and still do for "small loads". The indexes get borked once in a while for random reasons so you have to rebuild them regularly. Their main API is something resembling low-level ISAM but with shared global state, and while they introduced a SQL implementation atop of that, it's downright terrible, severely lacking, and has zero query optimisation plan, throw in a HAVING and you can lock a 10000 records table for minutes.
[5]: Car seller tactics like "Buy a license, get a top of the line iphone/ipad for 1€", goodies strategy dialled to 11, heavily sexualised material (down to the IDE splash screen), with scantily clothed women in luscious poses, high heels, leather, you name it, full of bullet-point buzzwords, actual tagline is "develop 10 times faster" and literally "1000+ new features" for each version, dev conventions are cult-like, Stockholm syndrome is pervasive. License for a given version is lifetime (controlled by a hardware dongle labeled with legal threats) but any support is dropped the minute the next release is out (which is every year). Not that it matters, as bugs stay largely unfixed. Wikipedia page is heavily edited by their marketing team (from their own IPs to boot), forums are heavily moderated against any critical post, who get censored, to the point that one of the devs I mentioned was threatened (on the phone, they called him) of legal action for libel because he publicly reported and discussed a bug.
It's so bad that to fix bugs I implemented drop-in replacements for part of that stdlib and software code in C# (they have a .Net bridge which, quite surprisingly, works well, even dynamically generating WinDev proxy stubs from the C# classes) in well under half a day of work (which also had the benefit of moving some things to git and have actual unit testing), and had plans to port wlanguage to the CLR to help people get out of this hole. Guess what, the plan was rejected (even for bug fixing) because of purely irrational cultish reasons and I had to put intricate workarounds in my Ruby code to massage my way out of the endless brokenness, costing me overall months of work and terrible customer impact.
If it feels like I was on some sort of mission, then it's partly true, as the people I worked with were really nice folks I had real bonds with, and witnessing the brainwashing they were victim of, destroying the very real potential they had, was truly disheartening.
We do have one in Mainland China, popular in the last decade: https://en.wikipedia.org/wiki/Easy_Programming_Language
It's somewhat of a disaster, though: its author probably caught up with the idea of "Language = IDE" & "selling the language for profit" so it's really not that suitable for "real" serious uses.
Here is a piece of code in German VBA for Excel 95: https://de.wikipedia.org/wiki/Visual_Basic_for_Applications?...
then save the worksheet and re-open it with the Italian Excel, since the functions are actually saved internally as an "ordinal" (or whatever) and interpreted by Excel in its "local" language.
Changing some accented characters in a well known brand name into strange ones used in "obscure Serb Croat religious documents
An asinine idea indeed.
EDIT: Of course there is!
https://en.wikipedia.org/wiki/Dolittle_(programming_language...
I don't know... is it even meaningful to call a Programming language as being in some other language ? The "language" in the CS sense remains essentially the same, and all you end up doing is substituting the alphabet.
This situates the problem in an entirely modest light, and makes it obvious as to why any new "nativist" programming language is not worth the trouble - the alphabet, in this case the terms, is rarely ever the hardest part of learning a language. Indeed, if you're a lisper, the triviality of the change would become instantly obvious to you.
`SELECTIONNER * DE clients TRIER PAR ...`
(sorry for the bad joke, I'm just kind of fond of French acronym mangling. The vocabulary is similar enough to English to to keep the letters the same in many cases, only the order is off. It's bit like verlan for the rest of the world)
[1] https://en.wikipedia.org/wiki/Coordinated_Universal_Time#Ety...
As for French not being used in keywords, I found that state of affair somewhat liberating. I learned some LOGO with French keywords in primary school, then moved on to BASIC with English keywords long before I learned English. The fact that the keywords are in a foreign language somehow helped. I was not randomly trying French words hoping that it would do something. Either I knew the "computer" word (aka English) or I did not.
I find programming using French keywords somewhat distasteful. French does feel ill suited for this kind of endeavor with its complex grammar rules and conjugation. It's also very verbose. When I was in college my friends used to name things in a mixture of French and English. Yes, even native speakers that wanted to use French for variables would invariably use English keywords.
For example, an accessor would be named `getUtilisateur()` instead of `getUser()`, simply because all the equivalents for `get` and `set` are super long and fastidious to type. Also everyone would be super confused if a different convention than `get` or `set` was being used in this context. But often enough the reason was that the English word was so much shorter, and as easily understood.
If that's Java, there's more to it than simply being "short". Since Java (unlike C#) doesn't have native properties, methods following that JavaBeans naming convention are treated as property getters and setters (often using reflection). That is, the methods "String getUtilisateur()" and "void setUtilisateur(String value)" are treated as if the object had a property named "utilisateur". Any other naming convention won't work, since everything that wants to access an object's "properties" will be looking for them only with the JavaBeans naming convention.
LSE [1] was more-or-less BASIC with French keywords. From what I've heard (I'm not French so have no first-hand experience with this), for a time (primarily in the 1980s) it was actually heavily used in the French education system, due to the backing the French government gave to it. Over time, the French government lost interest in the project, and use of the language has declined as a result. (The decline in interest in BASIC dialects in general has probably contributed.)
[1] https://en.wikipedia.org/wiki/LSE_(programming_language)
It's really not easy to create a programming language that "catches" on, as readers of hackernews are probably aware. There are a lot of brilliant languages, based on English, wich didn't.
I suspect those international programming languages are not failing because of the language barrier, but rather because they don't add enough value and/or fail to attract a community.
There are such languages. Mostly DSLs, but here[0] is a general language from a Russian ERP system. Every keyword has both English and Russian equivalents. There are tons of maintained code written entirely in Russian, including business-critical.
I think what mostly kills the appeal is 1) The actual keywords in the language are not that many (<50) and have a technical meaning where knowing English is only of limited help. 2) Much of what we do today uses library of code from others, where either you limit your audience by using non-English function (and/or class) names or you use English function names and hope that everyone will understand them to the necessary degree.
Little dismissive don't you think. I get your point, but don't undervalue this project.
#define pour for #define ent int etc...
I think these don't really capture the whole idea around creating a programming language in another language, though...
No idea if this counts as "serious", but it was used in schools back then.
... and forcing everyone to put up signs in French [1]. Compelled speech, if you will.
[1] https://en.wikipedia.org/wiki/Office_qu%C3%A9b%C3%A9cois_de_...
It is not like using non English languages would change paradigm programming itself.
There are lots of "cultural biases in computer science" -- in UI, neural network training, encodings, terms of service, etc.
Of all of them, this is the least helpful, and the least important.
It's like doing math in local notation, or translating latin/greek terms doctors all over the world are trained and understand, with regional varieties.
There's a reason why e.g. air traffic control speaks english no matter the ethnicity (as per the ICAO standard).
(And I don't mean programming language terminology / modifiers has to be english for any special reason. It could just as well have been French or whatever. But it has to be a single one, and english is already used for that purpose).
And I'm no native english speaker, so I don't say this as one.
Yes. The reason is that air traffic control inherently requires people from different regions and languages to communicate quickly in life or death situations. Ease of being an air-traffic controller is not a primary motivating factor, and getting more diverse input isn't really a useful feature.
On the other hand, ease of being a developer should be something we strive for. We don't generally deal with fast paced life or death communication, we instead want programming to be accessible, to get a range of people (and their input, experience, opinions) involved, and to break down unnecessary barriers. Programming in a foreign language is a pretty significant barrier.
Not really. I learned programming when I was 14, far before learning English.
How many English constructs do you have in a programming language? Func, var, for, if, else, import, etc. You can memorize those in no time, especially if you do that as you learn programming.
Documentation and textbooks are a different thing, of course. But I learned programming in high school, from teachers speaking my language and with textbook in my language.
You're got three barriers between the learner and the language: unknown keywords, unfamiliar letters, and the wrong LTR/RTL order.
It all adds up to where, boy, it would be intimidating for me to learn this language, as someone who already knows how to program. Doesn't that imply it would be equally intimidating for someone who only speaks Arabic to learn C?
Func and var aren't even English words. Even an English speaker would have to at least get confirmation that their guess is right. You could replace them with arbitrary symbols and it wouldn't rally really change anything.
There are only a handful of English words you have to memorize. Music students have to memorize a handful of Italian words to follow written music. It hasn't been a problem.
Yeah, no.
I want to strive for a field of professionals who know what they're doing instead of every second 'engineer' being a script kiddie with a MOOC or two of Python under their belt and nothing else. The barriers need to come way up from where they are today, not be lowered even further.
It is not necessary to be male, white, or English speaking, to be an excellent engineer, and yet those groups are significantly over represented.
I could imagine it might be less unfair in a situation, like in much of Europe, where nobody is a native English speaker but many speak it (sort of like Latin at one time). And there are of course huge benefits from a standard language. But it still bugs me.
https://www.chronicle.com/blogs/linguafranca/2014/04/30/ther...
...which is not respected at many smaller airports/airfields. If you plan to land your machine at a local French airport, you better be prepared to speak French !
As for the ATC analogy, software normally works by interfacing with systems written in other languages. Python to C-based glibc to the asm trampolines in the kernel.
Although, yes, it might be a “gateway drug” kind of thing where they wind up learning more mainstream languages as well. I’m just saying it’s not an obvious and unalloyed win.
Yet millions of children (and adults) learn about programming through scratch and create amazing things. It is not a dead-end language.
And using the Imperial system of units is highlighting the cultural imperialism of the metric system, the so-called SI ("International" System) and its Modernist desire to fit man to the unit, as opposed to fitting the unit to man. As long as humans walk on feet, and not meters, or metres, we shall persist! Ich kann nicht anders! (... primarily because I lost my metric socket wrenches)
It's all just jargon, for those of us working in the field it's really not difficult to both know the international Latin medical terms and the local terms to use with patients or colleagues.
A cursory glance at a glossary of Japanese medical terms suggests otherwise[0]. The thing about biases is that usually you don't notice them.
Language is completely othogonal to most tasks. If you live in Japan you would probably prefer your GP focus on studying medicine in school instead of Greek/Latin on the off hand chance a foreigner asks them "why his primaris longus hurts". The same with programming, I'm pretty sure most programmers are interested in computers first and foremost, not learning about English subject verb agreement so they can read documentation.
Math is taught in Arabic, using Arabic notation and written from right to left in many Arabic countries. That is basically the only form of math I’m personally familiar with.
> I'm no native english speaker
Does your native language use the latin alphabet? Are you familiar with the arabic alphabet? If not, why do you think you are qualified to judge that "this is the least helpful, and the least important"?
Let's not forget there are still a lot of people don't speak English. I live in China, and I have seen a lot of kids with great talent in mathematical thinking -- needless to say, they have a great chance to have great computational thinking if they have proper environment. However, there are a lot of kids either having no multilinguistic talent or living in average developed zones that they can't access good English education[0], can miss the opportunity of being great programmers. As a comparison, mathematics symbols are decoupled with specific languages (like APL[1]), and the textbooks are well translated. English should not be a hard dependency to programming.
A lot of people believe in the future everyone should code more or less. I suppose if that's true, there must be nice localized programming languages to achieve that goal, which helps people scripting their day to day life, instead of just being pure GUI users. Or programming languages would still be only designed for minorities as least for non-English-speaking countries.
[0] For Chinese people, English could be not extremely hard (as English people learn Chinese) but still very hard to learn, it takes years of systematic training, just because the two languages are way too different.
[1] PS: I have some trouble for a very long time to understand what does Alan Perlis was referring to in his famous quote: "Though the Chinese should adore APL, it's FORTRAN they put their money on.", I guess it might refer to the symbols decoupled to natural languages.
I will grant that some of the words share a spelling with English words that have different meanings, but most of the core words we use are not ever used with the same meaning in non-programming contexts. I would submit that the following keywords common to a number of languages are not meaningfully ‘English’ (indeed, one of them is Greek):
String, float, double, long, byte, void, lambda, var, func...
I’ll grant that for, if, public, private, import, extends, let, etc are real English words and there is definitely a hidden privilege native English speakers have when learning to code, but when considering how hard a programming language must be for a non-English speaker to learn because it has English keywords, consider how hard it was for you to learn a new and unfamiliar meaning for the word ‘string’ and recognize that it’s maybe not that insurmountable barrier.
This project is interesting though because it particularly deals with a different script, which is much more dissonant with conventional keywords.
I really liked your angle, not over-ascribing meaningfulness, yet making an effort not to step too many toes by focusing on context, questioning the stereotypical basis.
But think about standard libs. All of those functions and types are named with English words.
I think the interesting question would be if you could build an IDE replacing keywords, interpunctation, writing order etc on the fly while emitting in the end "standardized" output (aka. English).
If we do not like English for whatever reasons (let us say: bias to the western world), I think the only real deal are Emojis. Replacing all keywords with Emojis is pretty universal (until it comes to color ... red/green has very different meaning around the world) and using some standardized/auto-translatable naming of variables and functions. Could be tons of IDE support.
Anyway. Nice inspiration.
> Scratch, albeit visual, is still a language built around sentence fragments. Instead of using punctuation and assorted ascii art to enchant text into code, the structure and action of a Scratch program is almost as clear as prose. By using natural language fragments instead of magic identifiers in text, Scratch is unique in another aspect — Internationalization — Scratch programs can be built up out of German, French, Chinese, Japanese fragments too.[2]
The main downside to Scratch as a language is having to drag our mouse for many kilometers for complex programs. It is a... well, drag (also more complex data types and such, but Snap! addresses that fairly well).
[1] https://snap.berkeley.edu/
[2] https://programmingisterrible.com/post/76953953784/programmi...
[1] If we allow esolangs I would proudly present Aheui (https://esolangs.org/wiki/Aheui) as a good example.
I tried to find an example of this and found a somewhat related article about how Japanese grammar maps nicely onto ruby: https://thoughtbot.com/blog/learning-japanese-the-rubyist-wa...
I'm not sure if that's true in this generality. After all, "agent.doSomeThingWith(object)" is not a declarative sentence, it's a command. So you'd have to look for languages where imperatives don't have subject-verb-object (as an acceptable) order.
I'm sure there exist some, but at least I would expect them to start with the agent you are commanding.
In German, the difference between the imperative "Machen Sie das!" [Do that, you (polite form of address).] and the declarative "Sie machen das." [You (polite form of address) are doing that.] is that the imperative does not put the agent first.
http://reganmian.net/blog/2008/11/21/chinese-python-translat...
I bet there are IoT devices out there that use it already.
For example:
#!/usr/bin/env zhpy
# 檔名: while.py
數字 = 23
運行 = 真
當 運行:
猜測 = 整數(輸入('輸入一個數字: '))
如果 猜測 == 數字:
印出 '恭喜, 你猜對了.'
運行 = 假 # 這會讓循環語句結束
假使 猜測 < 數字:
印出 '錯了, 數字再大一點.'
否則:
印出 '錯了, 數字再小一點.'
否則: 印出 '循環語句結束'
印出 '結束'which translates to:
#!/usr/bin/env python
# File name: while.twpy
number = 23
running = True
while running:
guess = int(raw_input('Enter an integer : '))
if guess == number:
print 'Congratulations, you guessed it.'
running = False # this causes the while loop to stop
elif guess < number:
print 'No, it is higher than that.'
else:
print 'No, it is lower than that.'
else:
print 'The while loop is over'
print 'Done'This is really interesting. I wonder if there are some human language with properties that would allow for programming language constructs that we don't really use today.
My linguistic skills are not good enough to really suggest an example, but considering there is a language[0] (almost) without relative directions (left and right), which is mind blowing to me, it feels like there should be something interesting out there.
언어를 배운다.
[topic omitted] Language-(object marker "를") learn-(verb conjugation "ㄴ다").
(One) learns a language.
Many syntaxes are based on easily segmented tokens, or words, so they are not a good fit for Korean and other agglutinative languages. My friend has made a programming language, Yaksok [1], specially made for Korean and solving this problem by making all invocations as a pattern, somewhat similarly to AppleScript: # - "약속" is a keyword for procedure declarations.
# - Unquoted words are formal parameters.
# - Anything quoted should occur literally, except for slashed alternations
# used for affixes varying by the preceding word.
약속 대상"을/를 배운다"
...
Of course this results in a very unconventional parser.Ooh, just thought of something interesting: I lived in Turkey for 4 months, and in Turkish, rather than using location to indicate which words modify each other, you use suffixes. (At least, as much as I could figure out in that time.) Then you can order your words for clarity and emphasis, rather than for meaning.
You could imagine doing the same thing with functions or expressions; rather than being stuck with "infix" operators, which need precedence and parentheses, or "prefix" operators forcing you to use RPN, you could order them the way you want.
So perhaps the following three expressions could all evaluate to the same thing ("a / b" in most C-based languages):
/' a' b"
/' b" a'
b" /' a'
a' /' b"
a' b" /'
The idea would be that `/` is the verb, and `'` is the suffix indicating that its two "arguments" are `'` and `"`.That sounds like an interesting concept to explore anyway.
English is one of the most strongly analytic languages (Chinese being even more extreme) - it determines word relationships and function with word order and helper words.
Whereas Standard Arabic, Ancient Latin, and Finnish are very synthetic, changing words to indicate their function and relationship to other words in the sentence. If your language has the concept of "declensions", it's probably on the synthetic end of the spectrum.
Interestingly, after observing an increase in analyticity over time in European languages, some linguists have hypothesized that analytic languages are easier for foreign speakers to learn as adults, and that this causes languages with lots of geographic spread and inter-language contact to become more and more analytic. With creole languages being of course the most striking example.
Just to give another example: Imagine all countries in the world had the same language and people could move freely: You had massive and full competition between all nations/cities/economies for the best people and competition is good. Nobody is locked-in because of odd languages or would you dare to move to Beijing tomorrow?
Or imagine you had the same with languages and a nation forced people to only use Cobol and ignore newer developments. You get it? English is btw also a language which is easily extendable, something like creating verbs out of nouns is not that straight-forward in other languages. It keeps English alive.
Note that it goes much deeper than just the programming languages keywords: there are the books, the courses, the documentation, the bulk of all the open source projects out there one could use to study and so on.
They’re not really at that great of a disadvantage.
“most non-English countries teach children English in their version of middle school” in particular is really dubious unless you're cherry-picking a handful of small, affluent countries. I've known a number of people who moved to the U.S. from non-English speaking countries and the general trend is that the average is closer to, say, how well most Americans speak Spanish than fluency. It's easy to get this wrong if your experience is predominantly in high-level academic or professional contexts where there's been a strong selection bias filtering out people without strong English proficiency.
Yes, that's true, but I think it's important to make a distinction.
What you are referring to is, more often than not, just plain racism. It's sad, and unfortunately (at least in the US) more people are feeling emboldened to spout their racist views.
However, that shouldn't cloud the fact that in general English speakers are much more able to understand sentences with tons of grammatical or structural errors if the gist is right. I contrast that with French - when I was in France and would make a small error in verb conjugation or intonation people would just respond with blank stares. And they weren't looking down on me, they just really didn't understand what I was saying.
Similar to the sibling response, only in the case where someone is being racist.
> I've known a number of people who moved to the U.S. from non-English speaking countries and the general trend is that the average is closer to, say, how well most Americans speak Spanish than fluency.
The availability of classes and the fluency learned from those classes are not related metrics. For example, I was able to take German language classes in middle school, but can't speak a lick of German today. It's not because the class was unavailable, but because I didn't apply myself to learning German.
It's not about English speakers tolerance, it is all about the reader's ability to grok a complex written text.
That book was so much about the importance of the martian language and how language shapes perception.
Even I, a native English speaker, have had issues getting through a number of textbooks. Mostly because it's not English that you have to be proficient with, but the industy-specific jargon and idioms.
I suggest pretending to be a foreigner and ask for directions, next time you have 10 minutes to waste.
Some folks have brought up balkanization as a bad thing, but there are some reasons to believe that balkanization could be a good thing. By putting up barriers (like language) between silo-ed groups, you allow each group to develop their own ideas under different selective pressures, which leads to different results. Then, at some point, someone with vision and skill breaks through the barrier and their ideas from one silo revolutionize the other. It's unclear whether these ideas would ever develop and mature in a more homogeneous programming environment.
Looking at a different field: climbing. The industrial rope access, arborism, and recreational rock climbing communities have developed fairly independently, despite having a lot of the same base equipment and needs. The results are some fairly different solutions to the same problems. As a rock climber, I've learned a lot by cross-pollinating ideas with the other two groups. Sometimes the rock climbers do things better (dynamic ropes are a much better way to prevent spinal compression than full-body harnesses and screamers) and sometimes the other groups do things better (rope walking is far superior to hand ascenders). And these come from the independent selective pressures of each field (rock climbers fall more because they're pushing their limits of skill, so their fall protection is better, while arborists ascend the rope constantly so their rope ascension is better). It's not entirely clear to me that these very different techniques would have developed if the fields had not been able to grow their own communities fairly separately.
[1] https://en.wikipedia.org/wiki/Non-English-based_programming_...
A world of seven billion people, many opportunities for genius.
I have been surprised that non-English programming languages have not become even more common.
In my father's time, a university student of engineering or chemistry was strongly encouraged to learn basic German, in order to keep up with the state of art as published in leading professional journals.
Maths students would still do well to learn to read Russian.
English need not be forever.
Also, non-ASCII or non-Latin is just a step on a continuum: obfuscated code, machine language, spaghetti code, non-documented code... Actually, it may be perfectly workable to run the Arabic code through Google Translate and understand the result.
On one hand, if more people can understand programming, then we increase the pool of programmers, and that's great. On the other hand, if more people can understand each other's programming, that's also great.
At the end of the day, what matters is that we have the largest possible ecosystem that also allows developers to transcend their geographical / ethnic background.
...and if that's the goal, then maybe it makes most sense for us to favor a unified ascii char set? A few language keywords aren't that big of a price for us all to stay on the same page.
Arabic language has subsumed many local languages to be dominant in that part of world. A Bedouin feels a cultural bias towards Arabia if he starts coding in this language.
I'm from India and non-Hindi speaker; if coding is done in Hindi it's cultural bias towards Northern India as opposed to where I'm from.
Esperanto is a very interesting language but it will never be more than a plaything, a linguistic experiment, or a framework for people to learn a language that actually gets spoken by people.
>>> π = 3.14159
>>> jalapeño = "a hot pepper"
>>> ラーメン = "delicious"
When we look at modern languages like C, C++, Java, C#, ect, the amount of English keywords are very minimal: "if", "for", "while", "do"... Most of a program is user-defined variables, classes, methods, ect. All of these can be in whatever language the programmer wants.
The bigger complication comes from major APIs: Mac, Windows, Linux, ect, have APIs written in English. Even if you were to write a program in a C-like language where "if" was replaced with a non-english keyword, and you defined your variables, methods, ect, with non-English names, you'd still need English APIs as soon as you interoperate with anything.
Furthermore: Names in APIs tend to be so cryptic, and require so much domain expertise, that I wonder how much value comes in translating them? Will training a non-English beginning programmer in a language with keywords from their natural language be helpful?
Seems like a good experiment, IMO!
[1] https://gist.github.com/XVilka/a0e49e1c65370ba11c17
[2] https://terminal-wg.pages.freedesktop.org/bidi/recommendatio...
If you made a parser for a scripting language for content for your application, or a DSL for your colleagues to use, would you claim they weren't "bona fide"?
high level (non-assembly/machine code) programming has been stuck in an indo-european rut -- a productive one of course, but like so many things one that has a particular world view.
If programming had started in Arabic would we have developed generic functions sooner? Perhaps with different views of type systems? The fundamental structure of Arabic is quite different from the IE languages.
(I'm a native speaker of English from childhood but used to speak Arabic, and do use other languages on a daily basis).
Alternatively, you pick a programming language that doesn't have any reserved words, such as FORTRAN. (Are there any other well known ones?)
IF IF = ELSE THEN IF = ELSE - 1; ELSE ELSE = IF + 1;
Writing a compiler for that must be fun, especially if one wants to produce useful error messages.Years later I read papers by linguists which described concepts in one language that were no expressible in another language. That too seemed pretty amazing to me since something like snow is snow right? But English typically has adjectives doing the heavy lifting to distinguish different kinds, but the Inuit people had even more words[1].
The idea that it might be possible to express computation differently in different languages, or perhaps even more effectively, seems really intriguing.
[1] "Yet Igor Krupnik, an anthropologist at the Smithsonian Arctic Studies Center in Washington, believes that Boas was careful to include only words representing meaningful distinctions. Taking the same care with their own work, Krupnik and others charted the vocabulary of about 10 Inuit and Yupik dialects and concluded that they indeed have many more words for snow than English does." -- https://www.washingtonpost.com/national/health-science/there...
That would be far more helpful than pretentious finger waggling at wide masses of people for not taking vastly unreasonable steps from the start. All from someone privledged enough to be paid or spend unpaid time for an ostentatious show project like this - in sharp contrast to how the actual non-English progammers act - adapting or rolling their own for their purposes.
The toxic attitude on the website negates any outreach of even a "interesting to see parralel evolved approaches" sense.
The 'not even trying to solve any problems just blame' is a personal pet peeve of mine.
(1) At the very least, someone should explain why the rise of - say - the russian and indian programmers, given the unfair barrier.
This project seems to be more about recognizing cultural differences in thought patterns and how they permeate today's computing world.
It doesn't seem to be geared towards teaching programming to students who only know Arabic so far.
And English is being taught and used extensively in the Indian education system and society in general.
Unfortunately, the "unfairness" thing has hijacked many subthreads and it takes the proposal at face value (as in "Wouldn't it be cool if any programming language was available in localized form, charset, keywords and kaboodle?" - no it wouldn't) .
And yes, I think it would be good for speakers of non-latin based languages to be able to write programs (or notebooks) in their own language. Some stuff, like business logic, NLP, or "Low Code" like in Excel, could benefit from staying in one cultural frame of mind instead of switching between multiple frames.
Especially for different writing directions, like with Arabic. At the very least, Mandarin in Mainland China is now written almost exclusively left to right, so it's not as painful to use latin letters in a Chinese text when appropriate.
I'm also willing to bet that the time I spend learning the Arabic writing system in order to use this would be of general value, too. I'm fascinated by writing systems.
As far as I can tell, this is a LISP, and I can remember having read about it ages ago.
Lisp has some strange keywords (CAR, CDR) that are ASCII but not exactly English. APL relies more on non-ASCII symbols.
AppleScript is one programming language that at one point had at least 3 customized dialects (English, French, Japanese.) For example:
"the first character of every word whose style is bold" "le premier caractère de tous les mots dont style est gras"[1]
Sadly modern macOS AppleScript seems to omit the non-English dialects (although the "professional" computer language-like syntax is now available via OSA, JavaScript, etc..)
[1] Cook et al., Applescript, HOPL III, 2006
For example quicksort in J:
qs =: (($:@(<#[), (=#[), $:@(>#[)) ({~ ?@#)) ^: (1<#)
"APL: a non-ASCII programming language written entirely in APL"
If nothing else, these things remind me how lucky I was to not have had to learn English while I simultaneously learned to program.
[0] https://schorrm.github.io/ypp/ [1] https://en.wikipedia.org/wiki/Yeshivish
For example:
ls -1 | grep backup » rm
I don't even know if what I'm asking makes any sense... Need more coffed
And that's good. That means "we" hackers/programmers/developers/coders/whatever share something in common, no matter our culture/country/religion/beliefs/whatever. Heck, I'd even go as far as saying it's a thing of beauty.
BTW, I'm not a native english speaker.
English has become the basis for the symbols of programming. You should not think of code as prose, it is simply code.
The drawbacks are numerous and huge - today you can get any code from any guy on the planet, and can read it instantly. He can name variables and comment stuff in his native language, still no problem. That's extremely empowering, and to lose it just that somebody doesn't have to learn few keywords is... dumb.
Having native programming languages beyond some playing around is foolish and step in wrong direction for all of us on so many levels, especially long term.
I understand Hindi YT vids that are science related. I dont know Hindi. It's fantastic.
Latin1 is critical. Handing over acceptiable byte sequences that our cli's acccept to standards bodies is a mistake. https://github.com/jakeogh/angryfiles
`string.toUppercase()` is super intuitive for an english speaker, but is nonsense that needs to be memorized for someone that can't speak english.
Bring back the Þorn! :D
Nothing should link in the actual computer from human readable text. I always wanted a language like that.
You'd create a new function or variable and it'll get assigned a unique ID. And the name is a doc-name same as the doc-string, only for human documentation.
If you had that, you could localize the language pretty easily.
There was also a Hebrew version of basic taught to children (בסיסית - בייסיק בעברית).
Completely pointless.
Non-English based programming languages. https://en.wikipedia.org/wiki/Non-English-based_programming_...
I'm almost sure there was a more recent big thread though. Anyone?
This way there might not be a need to invent a new programming language per human language.
The lesser problem is with languages that don't read left to right, since the parsing of the language has to be reversed.
Many languages now support UTF-8 for variable names, so in theory you could code those in any left-to-right language by just choosing different variable and function names,
The compiled representation was mostly exposed to users when they didn’t have the app used in a script installed and just got FourCCs/OSTypes sprinkled throughout their script instead
I am sure many small projects attempted to innovate similar solutions but never really took off.
If such a thing got popular, would be interesting to see if it would affect international collaboration. Whether it would speed things up.
It turns out that according to the locale Sheets will change the separator for params, so in en-US it'll be:
=sumif(A1:A10, "Something", B1:B10)
while in cs-CZ it should be =sumif(A1:A10; "Something"; B1:B10)
On the one hand, that's really quite cool and impressive. On the other, I would never have expected a language or development environment to support different syntax depending on the locale in use.And a similar feature made CSV even worse.
You can't "localize" programming languages in that way. A new programming language, probably similar in semantics but with a completely rethought syntax, is needed for the true localization.
[1] https://simblob.blogspot.com/2019/10/verb-noun-vs-noun-verb....
But there are already (joke) projects that do this:
Most things aren't this black or white, but this is one of them. Whatever the keywords for a language are, they must be exactly the same everywhere.
Framework goes up in flames quite fast.
So programmers in China and Russia also using only English programming language?
Similarly, Github doesn't have localised versions.
There are certainly clones in other languages (e.g. https://teratail.com/ clones SO in Japanese), but it shows how little demand there is when these well-funded platforms for developers de-prioritise local versions. I couldn't imagine a comparable platform for lawyers or accountants doing same thing.
Comment-wise, many companies use Chinese comments in code while many use English as well.
And yes, most of the time, Chinese and Russian programmers use the same languages as the rest of the world...
I am interested to know what are the pros and cons of creating a language syntax in Unicode?
This isn't the first non-english language, when I was learning basic 20 years ago it had support for german keywords.
This is clearly just a dumb political statement, that being said I don't get why every one is so upset. I guess you could argue that it's cultural appropriation but let's face it anyone who argues that is just petty.
And the example showcases implementation of fibonacci sequence and calling it with 10 as parameter.
A nice, straightforward syntax indeed!
Although I don’t speak Arabic, I find it a fascinating and beautiful language.
For non-speakers, it's a bunch of scribbly lines.
Only known to be secure are java and cperl. rust followed my advise then for better unicode identifier security, but I haven't checked if they really promise some General Security Profile.
http://perl11.org/blog/unicode-identifiers.html
http://www.unicode.org/reports/tr39/ http://www.unicode.org/reports/tr36/#Security_Levels_and_Ale... http://www.unicode.org/reports/tr31/#Table_Candidate_Charact...
And in Plan 9 all compilers did. I bet this is the first exmaple of a humorous Hello world in C with Unicode smileys in identifiers: https://youtu.be/dP1xVpMPn8M?t=695, by Dennis Richie I think.
That's way internationalization is a lot harder than just applying a dictionary.
This is the same reason that everyone uses FORTRAN. Can you imagine if people went off and created their own "programming languages" instead? You wouldn't be able to contribute to an open source project unless it happened to be written in a language that you knew. There would be so much duplication of effort: someone would write a library for Foo Language, and someone else would do the same thing for Bar language. Job postings would ask for "Foo Developers," and you wouldn't be able to just work anywhere. Fortunately, programmers collectively decided to all use the same language. Let's not go back on that decision.
I'm assuming that you simply didn't read past the first paragraph? (That's fine, I bet we all do that way too often here) I mean, I have a hard time believing that you really can't tell that a post that states that everybody uses FORTRAN isn't serious.
I care because HN has a way of ruining satire and sarcasm this way. These are only the delightful stylistic devices that they are when you don't say that it's satire (resp sarcasm). I truly wish we'd all "/s" a little less, not more :-)
That zinger didn't tip it off to you?
“Learning a new language” as in programming language, sits in the days-to-months range, while “learning a new language” as in Arabic takes months-to-years, so you’re building a much, much deeper chasm for others to cross and contribute, even though the source code remains English-based.
You can already see this happening with some open source libraries coming from China, where the documentation and all discussion being in ZH already completely blocks foreign contribution.
There are 800 million Chinese internet users almost all are mobile only. Those that work as professional developers are expected to work insane hours that are unlikely to leave much time for public works after 9 to 9 6 days a week.
That’s not how it works. Programming proficiency isn’t randomly distributed across the population.
So what's wrong if the language also is not in English? Can you not imagine that some projects don't care whether you specifically can contribute or not?
It's not the first language not in English actually, WLanguage for example from WinDev can be written in English, French or Chinese.
How do you think non-english speakers read documentation in english?
That English has become the lingua franca [1] of the world is a recent development. If we would like people to read our documentation, it is reasonable to expect that we should do our best to learn how to read theirs, too.
It does bring to mind that Mathematics isn't really done in 'english', it's a pidgin of latin and arabic symbols (and like most or all pidgins, has some whole-cloth inventions).
Instead of making most people learn a new language, should everyone have to learn a new language? Like they used to teach college in Latin in Europe?
The problem is that the only programming language I know of that tried to be its own language-language was APL and thoughts of coding in that give me nightmares.
UML tried to remove some of the english and fared better than APL but that's a wide chasm to cross and they too ended up at the bottom of it.
We are very, very slowly replacing some text in programming languages with more symbols, and with more parsers accepting Unicode characters for string literals we also should have access to the entire panoply of mathematical and scientific symbols (I'd really love proper multiply, not, and exponents to start, then maybe we can talk about sigma for some reduce operations) but the tipping point into "let's go ahead and remove the rest of the english" seems so far off that I'll probably never see it.
Have you ever actually tried learning APL, or are you just trolling?
數字 = 23
運行 = True
假 = False
整數=int
輸入=input
印出=print
while 運行:
猜測 = 整數(輸入('輸入一個數字: '))
if 猜測 == 數字:
印出('恭喜, 你猜對了.')
運行 = 假 # 這會讓循環語句結束
elif 猜測 < 數字:
印出('錯了, 數字再大一點.')
else:
印出('錯了, 數字再小一點.')
else:
印出('循環語句結束')
印出('結束')
See:http://reganmian.net/blog/2008/11/21/chinese-python-translat...
Latin from https://metacpan.org/pod/release/DCONWAY/Lingua-Romana-Perli... :
use Lingua::Romana::Perligata;
adnota Illud Cribrum Eratothenis
maximum tum val inquementum tum biguttam tum stadium egresso scribe.
da meo maximo vestibulo perlegementum.
maximum comementum tum novumversum egresso scribe.
meis listis conscribementa II tum maximum da.
dum damentum nexto listis decapitamentum fac
sic
lista sic hoc tum nextum recidementum cis vannementa listis da.
dictum sic deinde cis tum biguttam tum stadium tum cum nextum
comementum tum novumversum scribe egresso.
cis
Klington from https://metacpan.org/pod/Lingua::tlhInganHol::yIghun : use Lingua::tlhInganHol::yIghun;
<<'u' nuqneH!\n>> tIghItlh!
{
wa' yIQong!
Dotlh 'oH yIHoH yInob
qoj <mIw Sambe'> 'oH yIHegh jay'!
<Qapla'!\n> yIghItlh!
} jaghmey tIqel!https://elangocheran.com/2014/10/30/exploring-programming-in...
Although I started the above project around the same time as Ramsey started his project in the original link (CLisp in Arabic), they were two entirely independent things. Ramsey's project is a 100% translation, whereas my project scales to other natural languages but is not a 100% translation.
Tim and I worked on trying to make programming in other languages easier as a means to help more kids learn programming, and learn FP the Lisp way, which we explain as more natural.
So, if you want to translate a lisp into another language you have to resort to macros.
You cannot read tons of code written in the 1C language [0] unless you know Russian, but I don't think it's a loss for you or for Russians because it's a scripting language used by a suit of enterprise software dealing mostly with ever changing Russian accounting standards and tax code [1].
At the same time it's economically effective to use Russian language because it lowers the entry barrier into 1C programming and allows domain experts to understand some of the code.
P.S. Yes, I didn't bother to read the second paragraph :)
I'd rather move on to the next comment.
I only downvote when I see some comment that goes against the rules, I do not think that it is my task to punish those who do not read a comment or do not get a joke.
Our comments, however, clearly go against the guidelines:
> Please don't comment on whether someone read an article.
> Please don't comment about the voting on comments. It never does any good, and it makes boring reading.
Good times!
"Fortran is not, of course, outdated, and it’s not at all complex. In fact, it has grown into these myths exactly because it is that good at what it does."
Just wanted to share some positive FORTRAN vibes...
That's an unnecessary slight
http://fortranwiki.org/fortran/show/HomePage is worth a check!
Multiple languages for developers is kind of a fringe case for functionality seen more in importers and fantranslaters.
This is why I program exclusively in Piet
You could make the argument that English is the "lingua franca" but the phrase itself demonstrates just how ephemeral that is. I've lived in places before where a generation ago Russian was taught as a "lingua franca". Nowadays you would be hard-pressed to find anybody with a good understanding of Russian (good enough to understand technical documentation) there, even amongst ethnic Russians.
Different programming languages are created try to solve limitations in existing programming langs.
Writing it in a different ascii character set isn't solving any technical issue - it's solving an accessibility issue, but compounding the problem of compatibility tremendously.
Obviously there is a efficient middle ground between accessibility and compatibility.
It's great for more people to be able to code. It's also great to be able to read code written by someone else across the world.
There is both pain and wisdom in standardization.
"Any software problem" includes these two extremely common problems, neither of which has anything to do with Turing completeness:
* It needs to do something fast
* It needs to be written quickly
Even if that is true, here or in the other art projects, the purpose is to evoke some aort of response, to capture attention and to provoke discussion.
And by this measure and judging firom the comments here this has been a resounding success :)
The person you are responding to is not being serious. it is a joke.
I can't read the code written at my desk a week ago and understand what it does.
I don't get why you have to be a certified engineer to build a bridge, but you can be some bloke with a 2 weekend course in python to program medical computers, avionics, train scheduling systems and other stuff that kills people when it breaks.
Non native speaker btw.
I'm also going to submit a patch to GCC that will require the user to solve a differential equation before their code will compile.
https://aviation.stackexchange.com/questions/2566/what-is-th...
[0] https://www.worldatlas.com/articles/the-world-s-most-popular...
I also think you're conflating ASCII with the Latin Script. ASCII is easy to type and read, but anything outside of that range probably presents just as many burdens as say Tamil or Korean. The majority of Latin script languages however, are not limited to ASCII (for example é,ü, or €, which I ironically had to switch to a CJK Input method to type) making your "~70%" closer to whatever the population of native English speakers is.
The "let's make things marginally easy for the majority at the expense robustness in a way where the benefits don't even approach the drawbacks" attitude is how we get things like NodeJS where we have people writing desktop apps in JS b/c the webdevs are more familiar with it at the expense of everyone running massive, slow, and vulnerable apps with 900 different libraries all downloaded from shady sources.
True, you got me, I should have said just ASCII. For the most part though languages use the ASCII set + additional characters rather than replacing or removing characters entirely. so it's still 70%-ish not just English.
I think of myself as eclectic taster of the many fine cultures worldwide and since I just got python to print Hello World in the console I'm moving on to learning Swahili. It should take about a week. It's all just different languages anyway.
1. All code should be written in English, and no one should ever use any other language in programming.
2. All code should be written in local languages, and no one should should ever use a common language for collaboration.
I say "theoretical" because I've never heard anyone argue anything like the latter point, which you are satirizing here. On the other hand, there are people in this thread who seem to be arguing the former, which I find nearly as ridiculous.
> If you can't do it in FORTRAN, do it in assembly language. If you can't do it in assembly language, it isn't worth doing.
For anyone who does not know what Lojban is: https://en.wikipedia.org/wiki/Lojban#Applications would be a great starting point. :)
What about humans who like to think in a language whose idioms, history, etc match their culture?
Heck, human languages even adapt to the climate (e.g. warmer areas having more vowel sounds, cold areas optimizing for shorter/less open mouth exposed to cold air, etc).
Plus there is some naivety in the idea that humans need or want a "logical and unambiguous structure". We need it for some things (math, STEM), but we seek more freedom to be ambiguous in other things -- and in fact it can be essential to the very civilization to be able to be so (for diplomatic reasons, civility, psychological, etc).
From the second link:
> The only thing that characterizes a logical language, like LojbanLanguage, is that it's unambiguous from a structural standpoint. It seems that Lojban is just as expressive as any other human language, with the same capacity for overstatement, understatement, irony, metaphor, simile, pun, etc. A lot of famous works of fiction have been translated into Lojban by enthusiasts.
Your concerns have been brought up and explained in part by the two links above, and in the Wikipedia article I linked to. Allow me to quote some parts from it:
> The removal of grammatical ambiguity from modification [...] seems to heighten creative exploration of word combination. [...] Other areas of possible benefit are (surprisingly in a 'logical' language) emotional expression. Lojban has a fully developed set of metalinguistic and emotional attitude indicators that supplant much of the baggage of aspect and mood found in natural languages, but most clearly separate indicative statements from the emotional communication associated with those statements. This might lead to freer expression and consideration of ideas, since stating an idea can be distinguished from supporting that idea. The set of possible indicators is also large enough to provide specificity and clarity of emotions that is difficult in natural languages.
> The language was built to attempt to remove some limits on human thought; these limits are not understood, so that the tendency is to try to remove restrictions whenever we find the language structure gets in our way. You definitely can talk nonsense in Lojban.
Anyway, you can decide to be ambiguous if you wish to do so, it is perfectly possible. Do not worry, it will not turn our society into something similar to the movie Equilibrium. I think the word "logic" makes people jump to similar conclusions.
I would put "/s" here, but when I say there are HN readers who really need to lighten the hell up sometimes, I am not remotely being sarcastic.
And the original, first high level programming language plankalkül also had nothing to do with english.
I think this is probably why it is neither useful nor intended to useful other than as an "exercise".
While this language doesn't seem to be geared towards introducing people to computer science, all the languages based on English require someone to learn that script, that language and some of its culture first before being able to use it.
And in much of the world people don't regularly start learning English (or a latin script for that matter) in elementary school. A language based on Arabic (or Chinese, Korean, etc) could help with introducing computer science in school before the students master English at the necessary level...
You're just saying "Everyone should use Chrome, otherwise the web would be balkanized". Or, taking it to the extreme, "every book in the world should be written in English".
>I should be able to read code written anywhere in the world and understand what it does
You are, but no one promised "without any effort". Almost every developer of not English-speaking origin put that effort, why shouldn't you?
>You wouldn't be able to contribute to an open source project unless it happened to be written in a language that you knew
You've just described the status quo.
This makes me wonder if perhaps a abandoning language entirely and relying on symbols for syntax might be the way forward, I have found that the more a language tries to emulate writing the more ambiguous it becomes, maybe the opposite will yield better results, perhaps we could choose to make the language resemble a diagram. Very interesting and thought provoking project.
(sarcasm may occur)