Meem
Meem
betaMeem (ميم): a programming language with Arabic keywords and right-to-left code, compiled to standalone executables
No limits to technology with Meem
داله مضروب(ن عدد64) عدد64: اذا ن <= 1: ارجع 1 ارجع ن * مضروب(ن - 1)
لكل ع في مدى(1, 6): اطبع("مضروب ", ع, " = ", مضروب(ع))Also built with meem build when the site was built: a static file of 31.1 kB, run on its own, and its output matched the output above.
Meem at a glance
| Item | Description | Source |
|---|---|---|
| Goal | A standalone executable on Linux x86_64 with the command meem build: static, needing neither Meem nor Python nor LLVM. A direct run (meem ملف.م) remains for quick trials | docs/build.md, and examples built and run when the site is built |
| Types | Static, checked before running: نص, رمز, عدد8, عدد16, عدد32, عدد64, طبيعي8, طبيعي16, طبيعي32, طبيعي64, كسر32, كسر64, منطقي, فراغ, لاشيء, قاموس, قائمة, مصفوفة, مؤشر, مؤشر_خام, مخصص, شريحة, خطأ, and structs | meem --list-types |
| Memory management | Since 0.7: allocators and «خاتمه», with no reference counting and no garbage collector; whatever is not freed returns when the program exits. Up to 0.6: reference counting | The reference handbook: language/08-memory.md, migration/0.6-to-0.7.md |
| Pointers | مؤشر[ن] to a slot allocated with جديد and freed by hand with حرر, with no pointer arithmetic; and مؤشر_خام for what comes from C | docs/pointers.md |
| Modules | استورد for a file or a standard module, qualified names, and خاص to hide a definition | docs/stdlib-design.md |
| Calling C libraries | The خارجي declaration with explicit C types. Tried with libc and libm | docs/stdlib-design.md |
| Standard library | 73 builtin functions, and standard modules: رياضيات (32 functions), عشوائي (3 functions), مجموعات (17 functions), مسارات (4 functions), ملفات (25 functions), نظام (9 functions) | meem --list-keywords, meem --list-module |
| Platforms | Linux x86_64 only. Windows and macOS are not available in 1.0 | docs/build.md, docs/cli.md |
| Release | The current download is 0.17 — beta. Meem 0.17.3 is out (a beta before 1.0), and the reference documentation describes it | downloads.json, and the reference handbook |
| Package size | about 47 MB (the compressed archive) | measuring the archive (make-downloads) |
| Size of a built program | «مرحبا يا عالم» (hello, world) is about 30 kB static (29640 bytes) | measured with meem build in 0.17.3 |
| Build command | meem build ملف.م | docs/build.md |