MIMIC
Everything that can run in parallel will run in parallel.
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.
curl -fsSL https://mimic.codes/install.sh | shSay what to compute. Mimic decides how to run it.
Arrays first
Whole-array operations replace loops. Every glyph has a word (ā³ is iota, ĀØ is each), and you can mix them.
Parallel by default
No annotations, no threads to manage. Your steps become one fast pass over the data, spread over every core, with SIMD and the GPU where it helps.
Memory safe
Immutable unless marked mut. Reference counts and updates in place: no garbage collector, no use after free.
Compiled, everywhere
LLVM to native code. One binary holds the compiler, Clang and a linker to build for macOS, Linux and Windows.
One program, two spellings
Glyphs are short and read like mathematics; words read like any other language. Both are the same Mimic. Type glyphs with digraphs (\i is ā³) or let your editor complete them.
module main
// the sum of the squares of the even numbers
// below a million: one fused loop, on every
// core, with SIMD
fn main() {
let xs = ā³ 1000000
print(xs āæ (xs % 2 == 0) ĀØ (x => x * x) ā· +/)
}Ask Mimic what it did
mimic why shows how each line runs: fused, on the cores, with SIMD, on the GPU, or why not. mimic profile and mimic audit show where time goes.
$ mimic why
main (main.mim:8)
ā¶ fused line 8 xs āæ (xs % 2 == 0) ĀØ (x => x * x)
the operations and the reduction are one loop,
with no arrays in between; it is split over the
cores when large, and uses SIMD where the CPU
has it
ā simd line 8 (x => x * x)
SIMD across elements: the function runs on 8
elements at once (vector instructions)
$ mimic run --release
166666166667000000From ideation to 1.0
Ideation
The language, Windows, and the Workbench: everything up to 0.3.16.
Core
Fast by default, and a richer vocabulary.
Acceleration
One GPU layer for every vendor: Vulkan, CUDA and ROCm.
Domains
Graphics, quantum and protocols, built on the vocabulary.
Everywhere
Placement and streaming, every operating system, every CPU, every GPU.
Maturity
The language and tools complete, and a compiler written in Mimic.
Ready in your editor
VS Code, Cursor, Windsurf and VSCodium: highlighting, completion of words and glyphs, errors as you type, run and profile buttons.
curl -fsSL https://mimic.codes/vscode.sh | shBuild it with us
Mimic is open source under the Apache License 2.0. Questions, ideas and bugs are welcome, wherever you are.