Mapanare — The AI-Native Programming Language

Mapanare is the first AI-native compiled programming language where agents, signals, streams, and tensors are first-class language primitives — not libraries bolted on after the fact. It compiles to native binaries via LLVM and WebAssembly for up to 63x faster execution. The language specification is frozen at v1.0 Final. Self-hosted compiler (8,288+ lines of .mn), 4,465+ tests, no Python required at runtime.

Key Features

Get Started

Install Mapanare with a single command: curl -fsSL https://mapanare.dev/install | bash on Linux/macOS, or irm https://mapanare.dev/install.ps1 | iex on Windows PowerShell. You can also install via pip: pip install mapanare.

Quick Example

agent Classifier {
    input text: String
    output label: String

    fn handle(text: String) -> String {
        return "positive"
    }
}

fn main() {
    let cls = spawn Classifier()
    cls.text <- "Mapanare is fast"
    let result = sync cls.label
    print(result)
}

Documentation

Performance

Mapanare's LLVM backend delivers significant performance gains: Fibonacci (n=35) runs 26.5x faster than Python, stream pipelines are 62.8x faster, and matrix multiplication is 22.9x faster.

For AI & LLMs

Full machine-readable documentation is available at llms.txt (summary) and llms-full.txt (complete reference with all code examples).