Repository navigation
Mora (.mr) v0.1.0 — Initial Release
Mora is an AI-first programming language by MuaraAI (Apache-2.0) uniting compile-time tensor shape verification, reverse-mode autograd, structured LLM & concurrent agent primitives, local quantized GGUF loading/checkpointing, Python & C ABI FFI, a Bytecode VM (--vm), and a multi-core Auto-SIMD C99 native compiler (--native).
Key Highlights
- Compile-Time Shape Checking & Clean Syntax (
{ }): Catch dimension mismatches (E0301–E0303) statically before runtime, enforce explicit?Nruntime boundaries (E0304,E0402), and organize multi-file modules withimport "./path.mr"(E0204) and originalfile:line:coldiagnostics (--json). - Tensors, Transformer & Autograd: Literal/symbolic shapes, NumPy right-aligned broadcasting, 7 Transformer primitives (
silu,rmsnorm,embed,rope,cache_write,kv_attention,causal_attention) across Interpreter,--vm, and--native, plus reverse-modeautograd.*. - Quantized GGUF v2/v3 Offline Support: Read
F32,F16,BF16,Q8_0, andQ4_0weights (gguf.meta,gguf.load) across Interpreter,--vm, and--native, plus checkpoint upserts (gguf.save,gguf.set_meta) in Interpreter. - Structured AI Agents & Low-Footprint Bundling:
schema+llm.askwith strict schema validation & retries,llm.embed*,spawn/joinover TokioLocalSet,http.serve, fast plain-http://HTTP/1.1 path,json,env,fs, andpy.eval/py.call. Standalonemora buildbundles measure ~3.15 MB (3,150,929 B), andtarget/release/morameasures3,148,960 B. - Native C99 Multi-Core Auto-SIMD AOT & C FFI (
--native,--shared): Mora IR + O(1) Arena Memory Planner (mora ir) compiling compute/Transformer/GGUF kernels to tiny standalone ELF binaries (50,408 B/~49.2 KiBon Linuxx86_64for MLP compute) and.so+.hlibraries (extern fn,--link,--emit-header). - Tooling, Editors & Benchmarks: Built-in
mora test, canonicalmora fmt, pure-Rust LSP 3.17 (mora lsp) across 8 editors (editors/), full bilingual EN/ID documentation (docs/&README*.md), English Agent Skills (SKILL.md,skills/), and reproducible 8-target AI Agent & 8-target Compute benchmark suites (examples/compare/).
Verification
cargo test --offline: 58 passed unit tests + 18 passed integration tests.mora fmt --check&mora test examples/tests_demo.mr: passed cleanly.- Blind AI coding agent evaluation (
SKILL.md+evals/tasks.md): 5/5 tasks passedmora checkandmora run.
Ringkasan (ID): Rilis awal Mora v0.1.0 oleh MuaraAI (Apache-2.0) menghadirkan pengecekan dimensi tensor compile-time, 7 primitif Transformer, autograd reverse-mode, GGUF v2/v3 lokal, primitif AI agent terstruktur + bundler mandiri ~3.15 MB, Mora IR + Arena O(1) + Bytecode VM (--vm) + C99 Multi-Core Auto-SIMD (--native / --shared), LSP 3.17 untuk 8 keluarga editor, dokumentasi lengkap dwibahasa EN/ID, serta suite benchmark reproduksibel.