Live data from Hacker News

قلب: a non-ASCII programming language written in Arabic

nas.sr

261–270 of 657 posts

Re: قلب: a non-ASCII programming language written in Arabic

#261
post #3

Oh, it's just an art project. 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.

My SO works on a project with leeeeeegacy software that still uses an RDBMS/OS combination (yes, it's one product. don't remember the name) in French. `SELECTIONNER * DE clients TRIER PAR ...`

So, an SMBDR/SO? ;)

(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)

Re: قلب: a non-ASCII programming language written in Arabic

#262
post #234
post #229

Visual Basic for Applications has localized Versions. Here is an Example in german, so why not in arabic? 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…

> Dim wd as integer Ausgelöst

Triggered?

Re: قلب: a non-ASCII programming language written in Arabic

#263

Earlier quoted context omitted.

I'm not a native speaker, but "perform this task, for i in {1,2,3}" seems to make sense as a prose. At least it does in French, when translated literally.

In python it makes sense but when you have `for(let i=0; I<length; I++)` it makes less sense

"for all i smaller than length, starting at 0". It doesn't really map perfectly because in math you usually don't care about the order, so a for loop actually contains more information than the statement it's trying to mimic.

Re: قلب: a non-ASCII programming language written in Arabic

#264

> Code is written entirely in Arabic, highlighting cultural biases of computer science and challenging the assumptions we make about programming. 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…

> There's a reason why e.g. air traffic control speaks english no matter the ethnicity (as per the ICAO standard).

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

Re: قلب: a non-ASCII programming language written in Arabic

#265

This is at best useless, and at worst harmful. If we start using languages other than English for code, then we'll end up balkanizing the software world. People in humanities departments can talk about things like "Chinese Poetry" and "Continental Philosophy," but in STEM, we should be above that nonsense. I should be able to read code written anywhere in the world and understand what it does. This is the same reason…

So glad this turned out to be a joke in the second paragraf. The first is very believable. I've definitely encountered people who would write something like it unironically.

Yeah, thanks for saying that in English, I wouldn't have been able to understand you in any other language.

Re: قلب: a non-ASCII programming language written in Arabic

#266
Fun little note, the programming language's name means 'Heart' in Arabic.

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.

Re: قلب: a non-ASCII programming language written in Arabic

#267
post #219

First: That is culturally a very important project I really like. As a German, English was a barrier for me as well (imagine a 15 yo with little English proficiency). But it was just the language, not the letters and symbols. 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. Englis…

I did what you mention 22 years ago when I was 16, to create an “Italian version” of BASIC. I just chose suitable analogues in Italian for all the various keywords and fed it through a glorified Find/Replace script before handing off to the QBASIC interpreter. Of course Italian’s pretty strict word order helped a bit.

Re: قلب: a non-ASCII programming language written in Arabic

#269

Earlier quoted context omitted.

As discussed elsewhere in the thread, the few dozen keywords are a different matter (and are just memorized to mean "make the computer do ..."), but having useful error messages from your compiler helps get stuff sorted out more quickly. 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…

> having useful error messages from your compiler helps get stuff sorted out more quickly. 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.

> finding an explanation for the error is a lot easier.

Two options:

1. LC_ALL=C $command to get the universal version of the error to search/report

2. Add a numerical error code that remains stable across locales

Re: قلب: a non-ASCII programming language written in Arabic

#270

This is at best useless, and at worst harmful. If we start using languages other than English for code, then we'll end up balkanizing the software world. People in humanities departments can talk about things like "Chinese Poetry" and "Continental Philosophy," but in STEM, we should be above that nonsense. I should be able to read code written anywhere in the world and understand what it does. This is the same reason…

that's certainly funny up to the day where you have to debug a codebase where all the function names and comments are in japanese. Also, I lost so much time searching for issues in badly-localized error messages that I nowadays just set my computers in english even though it's not my main language. It's just more efficient.
Post reply on HN