Skip to content
العربية

Meem

Meem

beta

Meem (ميم): a programming language with Arabic keywords and right-to-left code, compiled to standalone executables

No limits to technology with Meem

New: Meem 0.17.3 and Meem editor 0.5.0 are out

مضروب.م
داله مضروب(ن عدد64) عدد64:
اذا ن <= 1:
ارجع 1
ارجع ن * مضروب(ن - 1)
لكل ع في مدى(1, 6):
اطبع("مضروب ", ع, " = ", مضروب(ع))
Output recorded from the compilermeem مضروب.م · meem 0.17.3+434e13f
مضروب 1 = 1مضروب 2 = 2مضروب 3 = 6مضروب 4 = 24مضروب 5 = 120

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

ItemDescriptionSource
GoalA 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 trialsdocs/build.md, and examples built and run when the site is built
TypesStatic, checked before running: نص, رمز, عدد8, عدد16, عدد32, عدد64, طبيعي8, طبيعي16, طبيعي32, طبيعي64, كسر32, كسر64, منطقي, فراغ, لاشيء, قاموس, قائمة, مصفوفة, مؤشر, مؤشر_خام, مخصص, شريحة, خطأ, and structsmeem --list-types
Memory managementSince 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 countingThe 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 Cdocs/pointers.md
Modulesاستورد for a file or a standard module, qualified names, and خاص to hide a definitiondocs/stdlib-design.md
Calling C librariesThe خارجي declaration with explicit C types. Tried with libc and libmdocs/stdlib-design.md
Standard library73 builtin functions, and standard modules: رياضيات (32 functions), عشوائي (3 functions), مجموعات (17 functions), مسارات (4 functions), ملفات (25 functions), نظام (9 functions)meem --list-keywords, meem --list-module
PlatformsLinux x86_64 only. Windows and macOS are not available in 1.0docs/build.md, docs/cli.md
ReleaseThe current download is 0.17 — beta. Meem 0.17.3 is out (a beta before 1.0), and the reference documentation describes itdownloads.json, and the reference handbook
Package sizeabout 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 commandmeem build ملف.مdocs/build.md