قلب
ParadigmFunctional
Designed byRamsey Nasser
First appeared2012
Websitenas.sr/%D9%82%D9%84%D8%A8
Influenced by
Scheme

قلب (Levantine Arabic: [ʔalb]), transliterated Qalb, Qlb and Alb, is a functional programming language allowing a programmer to write programs completely in Arabic.[1] Its name means "heart" in Arabic and is a recursive acronym for Qlb: a programming language (قلب: لغة برمجة, Qlb: Lughat Barmajah). It was developed in 2012 by Ramsey Nasser, a computer scientist at the Eyebeam Art + Technology Center in New York City, as both an artistic endeavor and as a response to the Anglophone bias in the vast majority of programming languages, which express their fundamental concepts using English words.

The syntax is like that of Lisp or Scheme, consisting of parenthesized lists. Keywords are in Arabic (specifically, Lebanese Arabic)[2] and program text is laid out right-to-left, like all Arabic text. The language provides a minimal set of primitives for defining functions, conditionals, looping, list manipulation, and basic arithmetic expressions. It is Turing-complete, and the Fibonacci sequence and Conway's Game of Life have been implemented.

Because program text is written in Arabic and the connecting strokes between characters in the Arabic script can be extended to any length, it is possible to align the source code in artistic patterns, in the tradition of Arabic calligraphy.

A JavaScript-based interpreter is currently self hosted and the project can be forked on GitHub.[3]

Hello world

edit
(قول "مرحبا يا عالم!"‏)

(say "Hello, world!"‏)

References

edit
  1. ^ "Meet قلب, the programming language that uses Arabic script". The Register. 2013-01-25. Retrieved 2013-02-06.
  2. ^ Nasser, Ramsey. "an Arabic typo · Issue #8 · nasser/--- · GitHub". GitHub. The current version is in Lebanese Arabic by design, future versions will be in Standard and قول will be changed to قل.
  3. ^ قلب: لغة برمجة on GitHub

Further reading

edit
edit


📚 Artikel Terkait di Wikipedia

List of programming languages

Promela PROSE modeling language PROTEL Pro*C Pure Pure Data PureScript Python Q (programming language from Kx Systems) Q# Qalb .QL QPL QtScript QuakeC

Non-English-based programming languages

Non-English-based programming languages are programming languages that do not use keywords taken from or inspired by English vocabulary. The use of the

Maltese language

werqa (leaf), xewqa (wish) CoCCa – borka (wild duck), forka (gallows) CaCC – qalb (heart), sajd (fishing) CeCC – kelb (dog), xemx (sun) CCuCija – tfulija (childhood)

Varieties of Arabic

linguistic systems that Arabic speakers speak natively. Arabic is a Semitic language within the Afroasiatic family that originated in the Arabian Peninsula

Prakash Alex

include Kalyanam (2018), and Qalb (2024). His songs include "Ektha Boss" from Shylock featuring Unni Mukundan, "Monjathi" from Qalb, and "Dhrithangapulakithan"

TV2 (Algerian TV channel)

Bibiche w Bibicha Chahra Caméra Café Dhākirat al-Jassad Djemai Family Dumū‘ al-Qalb Hob Fi Kafas El Itiham Koul Chi Aâdi Kouloub Fi Siraa Le Joueur Nass Mlah

Xazar TV

broadcast uncensored footage of the use of tobacco products on the movie Qəlb oğrusu, which violated guidelines according to the National Television and

Yulduz Usmonova

(feat. Ruslan Sharipov) (2003) “Mendan meni soʻrama“ (2003) “Senga” (2004) “Qalb” (2004) “Men kimman ayt” (2004) “Oʻgʻil bola” (2005) “Biyo jonam biyo” (In