The Register® — Biting the hand that feeds IT

Feeds

Meet قلب, the programming language that uses Arabic script

Visualizing code in a whole new way

Regcast training : Hyper-V 3.0, VM high availability and disaster recovery

Programmers often talk about writing "beautiful code," but computer scientist Ramsey Nasser has taken that idea to new lengths by developing the first programming language that uses Arabic script for its source code.

The language is called قلب – roughly pronounced "alb," after the Arabic word for "heart" – and as Nasser explained to AnimalNewYork, he developed it as much for its aesthetic appeal as for its effectiveness at computation.

"قلب, as far as I know, is the first programming language that is a conceptual art piece," Nasser said, though he was quick to add that it is Turing-complete; that is, it is suitable for performing any kind of computation.

Nasser, who is a fellow at the Eyebeam Art+Technology Center in New York City, has already implemented several algorithms in قلب, including a program that calculates the Fibonacci sequence and one that performs British mathematician John Conway's Game of Life.

The قلب language itself is Scheme-like, meaning it is a functional programming language that has its roots in Lisp, long a favorite of computer scientists.

What makes قلب unique, however, is that it allows Nasser to write programs that are not only functional, but also visually pleasing. By varying the lengths of the lines that connect the Arabic letters that make up the language's commands, Nasser can reshape the appearance of his code without altering its function, producing programs that are both practical and artistic.

But Nasser had another reason for developing قلب, too – namely, that the Euro-centric nature of most programming languages puts people from other regions at a disadvantage when learning computation and software development.

"Computer science was born largely in England and software engineering was really fostered in the United States," Nasser observes.

As a result, all of the most popular programming languages, libraries, and APIs in use today are built with commands based on English words, such as "function," "for," "if," "loop," and so on. That can make learning programming especially difficult for students whose native language doesn't even use the Latin alphabet, for whom the keywords are little more than abstract symbols.

"If we are going to really push for coding literacy, which I do; if we are going to push to teach code around the world, then we have to be aware of what the cultural biases are and what it means for someone who doesn't share that background to be expected to be able to reason in those languages," Nasser says.

قلب is open source software released under a variant of the MIT License. Anyone who is interested in trying it out can download it from Nasser's github page. ®

Agentless Backup is Not a Myth

Re: Next stop: A language based on either Elvish or Klingon

Why next?KLingon programming already exists.

* Specifications are for the weak and timid!!

* This machine is a piece of GAGH! I need dual Pentium processors if I am to do battle with this code.

* You cannot really apprecaite Dilbert unless you've read it in the original Klingon.

* Indentation?! I will show you how to indent when I indent your skull!

* What is this talk of 'release'? Klingons do not make software 'releases'. Our software escapes, leaving a bloody trail of designers and quality assurance people in its wake!

* Klingon function calls do not have "parameters" - they have "arguments"- and they ALWAYS WIN THEM.

* Debugging? Klingons do not debug. Our software does not coddle the weak.

* I have challenged the entire Quality Assurance team to a Bat-Leh contest! They will not concern us again.

* A TRUE Klingon warrior does not comment his code.

* By filing this bug report you have challenged the honor of my family. Prepare to die!

* You question the worthiness of my code? I should kill you where you stand!

* Our users will know fear and cower before our software! Ship it! Ship it and let them flee like the dogs they are!

62
0

Come back APL

All is forgiven....

20
0

New western programming language to stop using Arabic Numerals.

VIII PRINT "WHY?"

IX GOTO VIII

17
0

More from The Register

Bjarne Again: Hallelujah for C++
Plus: Now officially OK to admit you never used STL algorithms
Interwebs taunt Sir Jony over Apple eye candy makeover
Hey Ive, Ive... add more unicorns, willya?
Nuke plants to rely on PDP-11 code UNTIL 2050!
Programmers and their walking sticks converge in Canada
SCO vs. IBM battle resumes over ownership of Unix
Zombie lawsuit back and wants to suck the brains out of Linux
Red Hat to ditch MySQL for MariaDB in RHEL 7
So long, Oracle! Don't let the door hit you on the way out
Shy? Socially inadequate? Fiddling with your phone could help
App 'tells the brutal truth' about social inadequates' chatup lines
Java EE 7 melds HTML5 with enterprise apps
New release arrives with GlassFish, NetBeans support
 breaking news
'Office Facebook' firm Tibbr wants you to PAY for mobe-meetings app
Great idea. Punters won't cough for it though
 breaking news
The only Waze is Google: Ad giant tipped to gobble map app 'for $1.3bn'
Pac-Man-satnav-ish upstart in bidding war with Apple, Facebook
 breaking news
PM Cameron calls for modern, programmable computers! (We think)
IT education musings to G8 chiefs to mystify IT industry