Mimic is an array-based, memory-safe, compiled language. Write what you want computed, over whole arrays; Mimic turns it into one fast pass over your data and runs it on every core, with SIMD and the GPU where it helps. No annotations.
- Arrays first. Whole-array operations replace loops:
prices × 1.2updates every price at once. Every glyph has a word (⍳isiota,¨iseach), and you can mix them. - Parallel by default. No threads to manage and nothing to mark. Your steps become one fast pass over the data, spread over every core, with SIMD and the GPU where it helps.
- Memory safe. Values are immutable unless marked
mut. Reference counts and updates in place: no garbage collector, no use after free. - Compiled, everywhere. LLVM to native code. One
mimicbinary holds the compiler, Clang and a linker, and builds for macOS, Linux and Windows from any of them.
The same program, written with words and with glyphs. Both are Mimic, and they print the same thing:
module main
fn main() {
let prices = [12.5 8 30 4.25]
print(prices * 1.2) // every price with tax
print(prices |> sum) // the total
let xs = iota 10 // 0 1 2 … 9
print(xs keep (xs % 2 == 0)) // the even ones
print(xs each (x => x * x) |> sum) // the sum of the squares
print(xs |> reverse |> take(3)) // the last three, reversed
}
module main
fn main() {
let prices = [12.5 8 30 4.25]
⎕(prices × 1.2) // every price with tax
⎕(prices ▷ +/) // the total
let xs = ⍳ 10 // 0 1 2 … 9
⎕(xs ⌿ (xs % 2 == 0)) // the even ones
⎕(xs ¨ (x ⇒ x × x) ▷ +/) // the sum of the squares
⎕(xs ▷ ⌽ ▷ ↑(3)) // the last three, reversed
}
[15.0 9.6 36.0 5.1]
54.75
[0 2 4 6 8]
285
[9 8 7]
mimic fmt --glyphs and mimic fmt turn one into the other. To type glyphs, use digraphs (\i is ⍳) or let your editor complete them. mimic why shows how each line runs: fused into one pass, on all cores, with SIMD, on the GPU, or why not.
| On | Run |
|---|---|
| macOS, Linux, WSL | curl -fsSL https://mimic.codes/install.sh | sh |
| Windows (PowerShell) | irm https://mimic.codes/install.ps1 | iex |
| Editor extension (VS Code, Cursor, Windsurf, VSCodium) | curl -fsSL https://mimic.codes/vscode.sh | sh, or on Windows irm https://mimic.codes/vscode.ps1 | iex |
mimic goes into ~/.mimic/bin, with no administrator rights, and is checked against the release's checksums. It is one binary with the compiler, Clang, a linker and the C libraries inside; nothing else is needed (on macOS, the Xcode Command Line Tools). To update, run mimic upgrade, or the install command again (--preview and --nightly follow the next version as it is built). Options, uninstalling and troubleshooting: mimic.codes/install.
mimic create hello && cd hello
mimic run # build and run src/main.mim
mimic build --release --target x86_64-linux-musl # a static Linux binary, from any machineThen follow the tutorial, or read Mimic for Python, JavaScript or C programmers.
Everything is in the one mimic binary:
| Command | What it does |
|---|---|
mimic run, mimic build |
Build and run; cross-build for any target (--target) |
mimic test |
Tests, property tests, contracts, examples in comments; --coverage |
mimic why |
Where and how each line runs: fused, in parallel, SIMD, GPU, or why not |
mimic profile |
Where the time goes: per function, per core, CPU and GPU, memory |
mimic repl |
Mimic a line at a time: ⍳ 10 ▷ +/ → 45 |
mimic edit |
Mimic's own terminal editor, with errors as you type, the manual and a REPL |
mimic man |
The manual: tutorial, reference, every function, glyph and error code |
mimic audit |
Quality and security findings, SARIF, a CI gate |
mimic upgrade |
Update Mimic (--editors updates the extension too) |
Also fmt, doc, lsp, dap and mcp (tools for AI agents). Every command: docs/cli.md. Editors: the VS Code extension, and grammars for Neovim, Helix, Zed, Sublime Text and others in mimic-syntax.
Every benchmark exists in Mimic, C and Rust with the same algorithm, and must print the same result. Time relative to C on Linux x86-64 (GitHub's CI machines, 2026-11-17). Lower is faster; below 1.00× beats C.
| Benchmark | Mimic, one core | Mimic, all cores | Rust + Rayon, all cores |
|---|---|---|---|
| matmul | 0.38× | 0.22× | 2.04× |
| sort | 0.24× | 0.15× | 0.16× |
| mandelbrot | 0.77× | 0.32× | 0.31× |
| tree | 0.65× | 0.32× | 0.84× |
| fib | 0.89× | 0.41× | 0.43× |
| filters | 1.30× | 0.61× | 0.67× |
| records | 3.15× | 1.85× | 2.02× |
| paths | 2.70× | 2.70× | 0.66× |
| qoi | 14.65× | 8.70× | 0.91× |
Mimic's parallel numbers need no annotations; Rayon's are parallelised by hand. Where Mimic is behind (qoi, paths, records) is the work of the next stage. All results, macOS and Windows too: mimic.codes/benchmarks and BENCHMARK.md.
Latest release: 0.4.2 (changelog).
| Era | Versions | |
|---|---|---|
| Ideation | 0.1 – 0.3 | ✓ Done: the language, the standard library, Windows, and the Workbench (editors, profiler, manual, tools for AI agents) |
| Core | 0.4 | ← Now: fast by default on every kind of program, and a richer vocabulary of glyphs |
| Acceleration | 0.5 – 0.6 | One GPU layer for every vendor: Vulkan, CUDA, ROCm |
| Domains | 0.7 | Graphics, quantum and protocols |
| Everywhere | 0.8 – 0.11 | Every operating system, CPU and GPU |
| Maturity | 0.12 – 0.13 | The language complete, and a compiler written in Mimic |
| Stable | 1.0 | The compatibility promise starts |
Every step and what it must pass: mimic.codes/roadmap (docs/versions.md). What is still missing: docs/gaps.md.
| Website | In this repository | |
|---|---|---|
| Tutorial, 20 chapters | mimic.codes/tutorial | docs/tutorial, or mimic man 1 |
| Guides: coming from C, Python, JavaScript; editors; profiling; agents | mimic.codes/docs | docs/manual |
| Syntax and every glyph | mimic.codes/docs/syntax | docs/syntax.md |
| Standard library | mimic.codes/docs/std | docs/std.md |
| Calling C, and C calling Mimic | mimic.codes/docs/ffi | docs/ffi.md |
| How it works inside | mimic.codes/docs/design | docs/design.md, docs/net.md |
A larger program to read: examples/showcase, a tour of the language.
Questions, ideas and bugs are welcome: Discord · X · LinkedIn · YouTube · issues · mimic@mimic.codes
To build Mimic from source or contribute, see CONTRIBUTING.md. To report a security problem privately, see SECURITY.md.
Mimic is licensed under the Apache License, Version 2.0. Copyright 2026 Harcorp Industries.
