23 ms·
Ramsey Nasser's Arabic programming language artwork
- ragsagar 13y agoCan't access link. It is blocked in UAE :-\
- oostevo 13y ago"The current name قلب means Heart, but is actually a recursive acronym for قلب: لغة برمجة pronounced ‘alb: lughat barmajeh meaning Heart: A Programming Language" My Arabic ability has degraded badly, but I'm fairly sure the name of the language (قلب) can also mean things like 'inversion' or 'reverse.' That's fitting, of course, given the right-to-left character set.
- mahmoudhossam 13y agoYou are correct, قلب does mean that.
- nayefc 13y agoDepending on the harakat (حركات). Heart: قلّب Inversion: قَلَبَ. Different words, same root. One is a noun, and the other a verb in its basic conjugation will have the same set of letters.
- jdeisenberg 13y agoAnd therein lies a possible problem with using Arabic as a programming language: it is normally written without explicit voweling, which can lead to ambiguity of meaning. That might not be desirable in a programming language.
- CountHackulus 13y agoWhich happens all the time already with english programming languages. "or" does not mean the same thing in most programming languages that it does in English.
- nayefc 13y agoArabic is a very rich and complicated language, yes :) It is one of the toughest languages to learn.
- keelhaule 13y agoقلب refers to the verb "to invert" and the Hearth in arabic is "قلب", and it was named so because the heart emotions and believes changes all the time FYI: Arabic is the language by which Algorithms and Algebra were canonised the first time
- zmguy 13y agoI don't think this is a solution. We should work to defragment the technology world. A better option is for Arabic speakers to learn English as a second Language. And for English speakers to learn Arabic as a second language but ultimately program in English. There is a similar problem with Chinese and the Chinese web, they might have some great resources tutorials and libraries but we don't know about them. I'll trade someone English and Ruby if you teach me Arabic.
- sctb 13y agoI don't think this is intended to be a practical solution, but rather an intellectual pursuit and a piece of art.
- vorg 13y agoYes, the sample program is an infinite loop, and therefore impractical. I'd add that copying the Ruby syntax, based around Latin script, for programming in another script isn't practical. Programming language grammars tend to evolved from the lexical tokens used by them.
- Dewie 13y agoI think it's great that efforts like this accentuate how quickly tools degrade when they are fed input that falls outside of the ASCII-range. Efforts to build better, language-agnostic (or not English-specific) tools bubbles up the technology stack to the end users, to whom it's a unreasonable and unrealistic (and to my mind a bad idea) to demand that they should just learn English. I also think that programmers should be able to have some support for their own languages when it comes to doing programming, but I guess that opinion won't win me any favors here.
- TylerE 13y agoWould not it be better to latinize Arabic, as the Taiwanese and Phillipines have done with their languages. For computer input a LTR language built around a relatively small alphabet is simply superior.
- 13y ago
- peterkelly 13y agoThis reminds me of the CSS localization spec (published by Adobe on April 1, 2013) http://blogs.adobe.com/webplatform/2013/04/01/css-localization/ http://blogs.adobe.com/webplatform/2013/04/01/css-localizati...
- rjzzleep 13y agoI applaud efforts like this. zmguy writes that we should work to defragment the world. But who are english speakers to expect everyone to speak english? I think we need more fragmentation. We've defragmented enough already. Diversity is a great thing. The more diverse we are, the more diverse our worldviews are and the more creative we become. Maybe there is more conflict, but who is to say that more conflict is a bad thing? As I recall there were studies on different personalities in multilingual people. (Although I believe it's true observing myself, you know how every study can have a study disproving it). When I started learning programming there were a few resources available only in russian on russian forums(RE related) same with chinese. At the same time people who didn't know any better think russians are technologically behind and still do. I recently had a discussion with someone in the University who was blaming them(them including russians, chinese speakers and others) for not making information more readily available to him. China, Japan, Russia, Iran, probably a bunch of Arab countries, Germany(although this one is argueably moving to english as scientific language) have vibrant scientific communities, that you can only understand if you speak the respective language. If the numbers are right [1] (which i doubt, i assume both the chinese and the english l2 speakers to be much more) then maybe it is us who should make more available in chinese. Also keep in mind that for a very long time Arab was the defacto scientific language of south east asia. [1] https://en.wikipedia.org/wiki/List_of_languages_by_total_number_of_speakers https://en.wikipedia.org/wiki/List_of_languages_by_total_num... edit: i don't normally ask for explanations, but if you downvote i'd appreciate an explanation in this context.
- pjmlp 13y agoUp voted you. As a non English native speaker and fluent in six languages, I think is very valuable that people have access to learning resources and tooling support in their native languages.
- throwaway344 13y agoWow, six languages. What languages do you speak, and how did you learn them?
- 13y ago
- jobu 13y agoAmazing bit of work, and I really like the tile calligraphy piece he made. I've known other programmers that put poetry or haikus in code comments, and even some of the output can be beautiful (fractals), but I've never seen the code itself as art. Very cool!
- comrade1 13y agoseeing "loop do" joining brings bad really bad memories of working on the NSA metaphor project, pulling metaphors out of text. Farsi (yes, I know not the same as arabic) was multitudes more challenging than working in russian.
- maz-dev 13y agoAh! In France we got windev. They switched the philosophical approach to a more down to earth "ladies in underwear are selling this stuff for us". See http://www.techartgeek.com/tech/troll-windev-marketing/ http://www.techartgeek.com/tech/troll-windev-marketing/ . All keywords and operators are in french, so that's something!
- camus2 13y agowindev lol,still have my windev edu CDROM somewhere in my mess... well, at least it can help learn algorithms in french,since algorithms are actually taught in plain french,not english here ... but i dont know any concrete peace of software build with it.
- ldite 13y agoAs pointed out here; http://www.metafilter.com/138858/Artists-Notebook-Ramsey-Nasser#5531489 http://www.metafilter.com/138858/Artists-Notebook-Ramsey-Nas... He's probably using the wrong value for LANG in his terminal.
- scott_karana 13y agoOf course, but shouldn't we have gotten to the point where xx.UTF8 should be the default locale on modern operating systems?
- Crito 13y agoWell, except for Windows (which insists on UTF-16/UCS2), as far as I can see we are at that point. Modern Linux distros have come configured with everything set up with UTF-8 for years. Fedora has been that way since Fedora Core 1. I don't know what OSX is doing.. I would assume that normally it is pre-configured with UTF-8, but somehow that was lost in his setup. I don't have an OSX machine to confirm this though.
- acdha 13y agoIt is, but all POSIX operating systems are brain-damaged when it comes to things other than interactive terminal windows – they default to LANG=C so e.g. the same script which runs interactively crashes when you run it in cron or some other launcher.
- Crito 13y agoHmm, is OXS still actually POSIX compliant? I thought they haven't bothered with certification for the past few versions. Anyway, if a changed LANG breaks your script, I'd primarily place the blame on the script. You should be able to shuffle around UTF-8 bytes non-interactively without paying much mind to that.
- acdha 13y ago
- NAFV_P 13y agoThe modern language of mathematics is composed of lexicons from several different written languages: Greek, Roman, Arabic, Hebrew and possibly a few others. There is one point often overlooked regarding comparisons of programming and human languages - I think that programming languages should be much simpler than human languages, since the target is a dumb computer as opposed to an articulate human.
- rdl 13y agoThe programming calligraphy is amazing. I wish there were a service which could produce beautiful Arabic calligraphy out of code, although I guess it's not a mechanical process.
- theoh 13y agoWhy not? It's just Unicode. At the risk of being downvoted for negativity, the calligraphy is nothing out of the ordinary. See http://www.bbc.co.uk/arabic http://www.bbc.co.uk/arabic for example.
- rdl 13y agoI didn't mean Arabic script (which is pretty normal; there are about 4 letter forms per character, but it's only a small factor more complex than latin). I meant the actual practice of Arabic calligraphy, where they use it to make pictures which are usually specific to the text. e.g. https://www.google.com/search?q=arabic+calligraphy&tbm=isch https://www.google.com/search?q=arabic+calligraphy&tbm=isch This has about as much to do with normal Arabic script as the best illuminated manuscripts do with latin script.
- theoh 13y agoOh, OK. The images from that search do look like they would be difficult to automate, a lot of artistic judgement and creativity involved.
- ahmelsayed 13y agoprint in Arabic should be اطبع not إتبع إتبع means "to follow" while اطبع means "to print"
- azth 13y agoI came here to say just this :) It didn't read right as "follow".
- guard-of-terra 13y agoBash and most of shell tools are UTF-8 aware if you use right locale. Shouldn't have problems. But I doubt those are bidi aware. JVM is unicode-ready. So is Haskell, which benefits from having less text and more punctuation. I've been there with some code in Clojure where every identifier was named in cyrillic. All library and syntax are still in english so that doesn't look right.
- evincarofautumn 13y agoHmm, what if standard libraries were available in multiple natural languages? You could always serialise the code as English, if you needed to interop with a multilingual team and that happened to be a good common language, but at display time, the identifiers can look however you want according to your locale and the available translations in the library. Of course, if you hypothesise that API design could be influenced by natural language, then you might worry about things getting lost in translation. But APIs that use English words aren’t much like natural English already.
- TylerE 13y agoThat will fail when you have words in different langauges that mean different things.
- evincarofautumn 13y agoYou only speak English, though, right?
- PeterisP 13y agoThere is no requirement that the code you see/edit is the same code that is stored and compiled. Just as an editor can show → for -> and λ for \ if adequately configured, it can also show 'если' for 'if' and 'Функция' for 'function' (or, say, the chinese equivalents) while keeping the underlying code in english. It wouldn't even need any cooperation from language implementations or library developers, and it'd be compatible with all legacy code! I'm not saying that it's a good idea, though, just a possibility.
- sickbang 13y agoI like the idea and creativity of the project and find it ridiculous that people debate whether it is ok or not to have programming in another language. That is kind a arrogant...let it be guys. It will happen with or without your consensus. It is like saying pizza is ok but not kebab..come on come on...I like both ;)
- the_af 13y agoI don't know about using it to actually write code, but as a work of art, it's beautiful. Arabic script looks artful to me (maybe because it's unintelligible to me, like Elvish?). So I must applaud this. As for actually coding in this, I don't know. I'm a native Spanish speaker, and I avoid Spanish-translated programming languages like the plague. Memories of awful Spanish versions of Basic still give me nightmares. The lingua franca of programming is English anyway.
- thenicepostr 13y agoDoes anyone know what font he uses in his terminal here: http://content.animalnewyork.com/wp-content/uploads/git.png http://content.animalnewyork.com/wp-content/uploads/git.png
- aaronem 13y agoPretty sure it's Apple Menlo, which IIRC from my OS X experience is the default font for Terminal.app. (Or is it? Might have been Monaco. I'm sure it's one of the two, and the other is the one I ended up preferring for reasons I've since forgotten; they are very similar overall.)
- duskwuff 13y agoMonaco is a vectorization of a bitmap font that dates back to the original Mac OS (possibly even older). Menlo is an entirely separate font -- it's a version of Lucida Sans Mono with some minor tweaks by Apple. This one is clearly Menlo. Monaco had some peculiar letterforms, including an odd "asymmetric" loop in lowercase letters like "b", "g", and "p". The LSM / Monaco shapes for those letters are much rounder, and that's what I see in that image. Here's a sample of what I mean: http://i.imgur.com/I5pSZeQ.png http://i.imgur.com/I5pSZeQ.png
- Yardlink 13y ago"Naming an Arabic programming language after a non-Arab ruler was something of a joke, my good friend and artist Haitham Ennasr let me know that it wasn’t that funny." No suprise it didn't work if they let petty nationalism get in the way.
- Too 13y agoReminds me of this april fools on stackoverflow http://stackoverflow.com/questions/22780466/why-cant-my-program-compile-under-windows-7-in-french http://stackoverflow.com/questions/22780466/why-cant-my-prog...
- hammadfauz 13y agoThis link is blocked in UAE. I am confused.
- chakkop 13y agoA nice effort, but it is jarring to see a simple word misspelled (twice) in the Arabic text in the headline image, a result of which is that instead of 'Print' the text says 'Follow' (specifically: instead of "Ittba'", with a hard 't' sound, which means 'Print', the text says "Itba'", with a soft 't' sound, which means 'Follow'; these two different 't' sounds are represented by two different letters in the Arabic language). This type of oversight makes the work instantly less relatable (and credible) to Arabs.
- entropy_ 13y agoYou're right, I actually didn't notice that at first. It is weird that Ramsey made a mistake like that, I happen to know the guy(we met when he used to live here) and he does speak Arabic pretty well. He's not like someone with Arab roots who just decided to do a project like that, it's actually a language he speaks. So yeah, weird.
- pointernil 13y agoI like this idea very much. Every language bears an philosophy of the world in it. It is the metaphors and relations of language constructs to each other that is defining. Using a different font is just painting the surface in different color. This could have some practical benefits for those willing to deep dive, though. Imagine what pearl could look like in an iconographic system and how that would change the perception of the code. ;) For non coders (yes, they still exist! probably always will) looking at your code be it C, Ruby or LaTex is already like looking at character salad sprinkled with recognizable words and THEN they need to translate it into a model of what the computer/system will actually do, what the result will be. Magic. So, why not use our own "typography"? What could be the symbols for IF and LOOP be? MAP? REDUCE? How would a truly iconographic code representation look like? What symbol "variants"/"adaptations" (like in Arabic or Chinese) would make it helpful? ("IF NOT"?) How about color, which usually is not used in human languages... It's fascinating to see how concise a mathematical expression can be stated yet what it usually has to be translated into when implemented (verbosity of prog.languages is just one issue, i know). Our "syntax highlighting" is nice and helpful but I wonder if there really is no other way to represent code (NOOO Node-Tree-Editors are not it ;) And then there is the conceptual influence of languages: input-processing-output with processing essentially defined by orders, commands... that's soooo western thinking ;) How would programming look like, feel like if it was defined/driven by eastern philosophy? More holistic? Less brittle? Less certain? Less precise? Basically when thinking about programming languages in-confined by technical/mathematical issues and theories I think exchanging some ideas with the field of linguistic would be very fruitful... Now back to your 9-5 C/Java/Ruby/Js coding ... with syntax highlighting ;)
- alxndr 13y ago> "Every language bears an philosophy of the world in it." If you haven't come across Lojban before, check it out: http://wikipedia.org/wiki/Lojban http://wikipedia.org/wiki/Lojban
- nkurz 13y agoAPL is a venerable language with a similar approach: http://www.vaxman.de/publications/apl_slides.pdf http://www.vaxman.de/publications/apl_slides.pdf
- pnathan 13y agoThis is really gorgeous visually.
- alxndr 13y agoI think the tile piece is a great idea as well as a beautiful piece of art. Liked this quote a lot too: > "After a point, it felt like engineering performance art" This makes me want a Lojban programming language/OS/etc.