Live data from Hacker News

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

nas.sr

341–350 of 657 posts

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

#341
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…

Seems extra weird to use German VBA yet not use umlauts.

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

#342
hi everyone, author here. i am glad this project is still starting conversations six years after it came out! if youre interested in a longer read on the subject of the cultural assumptions of programming and computing systems i wrote an essay for Technology as Cultural Practice last year: http://ojs.decolonising.digital/index.php/decolonising_digit...

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

#343
post #191

Earlier quoted context omitted.

TBH, I didn't get the joke until I read your comment. A small "/s" at the end wouldn't hurt.

To be frank, "/s" would have totally ruined it for everyone else. 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 sty…

No, not really, I read the whole post. And the FORTRAN reference was weird, but there are weirder things people post (and believe), and when writing, people do make mistakes. Thinking back, it should have been the clue, but it wasn't. And judging by the other answers, I am not the only one who was fooled by the tone.

That said, if you feel like `/s` is ruining the sarcasm for you, the solution is pretty simple. GreaseMonkey [0] should be able to remove it very easily, while adding it would be _a bit_ more challenging.

[0] https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/

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

#344
post #318

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…

This is valid python3, try it out. 數字 = 23 運行 = True 假 = False 整數=int 輸入=input 印出=print while 運行: 猜測 = 整數(輸入('輸入一個數字: ')) if 猜測 == 數字: 印出('恭喜, 你猜對了.') 運行 = 假 # 這會讓循環語句結束 elif 猜測 See: http://reganmian.net/blog/2008/11/21/chinese-python-translat...

You can write Perl in Latin or Klingon:

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;
   
  > tIghItlh!
    
  {
          wa' yIQong!
          Dotlh 'oH yIHoH yInob 
                  qoj  'oH yIHegh jay'!
           yIghItlh!
  } jaghmey tIqel!

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

#345
post #261

Earlier quoted context omitted.

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)

Yeah it's amazing. My favorite is maybe "UTC" [1] in which case the French and English versions clashed so hard that they formed a full new acronym that makes no sense in either language. :D

[1] https://en.wikipedia.org/wiki/Coordinated_Universal_Time#Ety...

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

#346
This isn't the first non-ascii language most modern languages are utf-8, look at any Chinese code for an example.

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.

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

#347
I wonder how difficult it would be to systematically "translate" something like Java or C from "English" to any other language, especially non-latin ones like Arabic or Japanese...an "if" statement makes sense how it written from an English perspective but I have no idea how you express something like that in said alternative languages without having to change structure and "meaning".

I don't even know if what I'm asking makes any sense... Need more coffed

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

#348
It is, of course, a persistent myth among programmers that the majority of language keywords we use are in English.

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.

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

#349
post #191

Earlier quoted context omitted.

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.

TBH, I didn't get the joke until I read your comment. A small "/s" at the end wouldn't hurt.

"Fortunately, programmers collectively decided to all use the same language."

That zinger didn't tip it off to you?

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

#350
post #50

Earlier quoted context omitted.

Agreed. I started to program in BASIC some 7 years before I started to learn English. I had no idea what PRINT or LET meant and was able to program without any problems. Hm, even today, I have not idea why "for" is used for loops (?) and I'm using it without any problems.

Native English speaker and I also don't really get what "for" was meant to mean. At this point it's probably just something that everyone has memorised and part of history.

Also native English: For me it's always made sense only with the loop body, as "for these do that"

Or more straightforwardly, in a way that can be applied to other English constructs, "do that for this group"

It's the same "for" in my head in both those versions.

Post reply on HN