Qalb (programming language)
This article needs more citations. (February 2013) |
| قلب | |
|---|---|
| Paradigm | Functional |
| Designed by | Ramsey Nasser |
| First appeared | 2012 |
| Website | nas |
| 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
(قول "مرحبا يا عالم!")
(say "Hello, world!")
References
- ^ "Meet قلب, the programming language that uses Arabic script". The Register. 2013-01-25. Retrieved 2013-02-06.
- ^ 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 قل.
- ^ قلب: لغة برمجة on GitHub
Further reading
- Smith IV, Jack (14 December 2015). "This Arabic Programming Language Shows How Computers Revolve Around the Western World". Tech.Mic. Retrieved 15 December 2015.
External links
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.