Skip to content

Mora v0.1.0

Latest

Choose a tag to compare

@Curzyori Curzyori released this 30 Nov 08:57
· 10 commits to main since this release

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 ?N runtime boundaries (E0304, E0402), and organize multi-file modules with import "./path.mr" (E0204) and original file:line:col diagnostics (--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-mode autograd.*.
  • Quantized GGUF v2/v3 Offline Support: Read F32, F16, BF16, Q8_0, and Q4_0 weights (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.ask with strict schema validation & retries, llm.embed*, spawn/join over Tokio LocalSet, http.serve, fast plain-http:// HTTP/1.1 path, json, env, fs, and py.eval/py.call. Standalone mora build bundles measure ~3.15 MB (3,150,929 B), and target/release/mora measures 3,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 KiB on Linux x86_64 for MLP compute) and .so + .h libraries (extern fn, --link, --emit-header).
  • Tooling, Editors & Benchmarks: Built-in mora test, canonical mora 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 passed mora check and mora 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.