Documentation
These pages describe the latest release, 0.4.3. New to Mimic? Install it and follow the tutorial.
Tutorial
Getting started
Install Mimic on macOS, Linux or Windows, create your first project and run it: the first chapter of the Mimic tutorial.
Chapter 2Values and functions
Mimic basics: numbers, booleans, strings and interpolation, let bindings, functions and if, with programs you can run.
Chapter 3Arrays and glyphs
Whole-array operations, primitives, glyph and word spellings, pipelines and trains.
Chapter 4No loops
How Mimic replaces for and while with each, gather, trail, evolve, settle, arms and recursion.
Chapter 5Records, unions and match
Define your own types in Mimic with records and unions, and take them apart with pattern matching and match.
Chapter 6Strings, lists and maps
Mimic's standard library for everyday data: strings, lists and maps, available in every program without imports.
Guides
Coming from C
C habits and their Mimic forms: loops, arrays, structs, NULL, errors, memory and calling C.
Coming from Python
Python habits and their Mimic forms: comprehensions, built-ins, dicts, f-strings, None and exceptions.
Coming from JavaScript
JavaScript habits and their Mimic forms: map, filter and reduce, objects, null, async code, JSON and servers.
Writing Mimic for agents
How an AI agent (or anyone new) writes correct, idiomatic Mimic the first time: the workflow, the idioms, and the mistakes code from other languages makes.
Editors
Mimic in VS Code, Neovim, Helix, Emacs, Sublime Text and Zed: the language server, highlighting and glyph input.
Profiling
mimic profile: time per function and per core, CPU against GPU, memory, tied to where the compiler runs each function.
Audit
mimic audit: quality and security rules, the gate for CI, baselines, SARIF and trends.
MCP for AI agents
Give an AI agent Mimic's tools with `mimic mcp`: what it can do, what it may touch, and the set-up for each app.
Reference
Syntax
Mimic's syntax: every primitive with its glyph and its word, operators, pipelines, functions, records, unions, patterns and modules.
Standard library
Mimic's standard library: strings, lists, maps, math, files, processes, time, JSON, HTTP, WebSockets, TCP and UDP, with every function.
The mimic command
Every mimic command: create, run, build, test, fmt, doc, why, profile, audit, install, upgrade and more, with their options.
Projects and config files
How a Mimic project is laid out: the mim.mim manifest, build.mim profiles and targets, the generated mod.mim and dependencies.
Calling C
Calling C from Mimic and Mimic from C: shared dtypes, extern blocks, arrays passed without copies, headers and linking.
Targets
Every platform Mimic can build for, from one binary: operating systems, CPU architectures, SIMD extensions, GPUs and WebAssembly.
Diagnostics
Mimic's error messages: stable codes and names, source spans, notes and suggested fixes, as text for people and JSON for tools.
The Workbench
The Workbench: one analysis engine behind mimic query, the language server, MCP for AI agents and the terminal editor.
User interfaces
User interfaces in Mimic: views as pure functions of state, messages and update, for the browser, WebAssembly and the terminal.
Interaction nets
Interaction nets, Mimic's parallel runtime: nodes, active pairs and lock-free rewriting that gives the same result on 1 core or 100.
Design and runtime
How Mimic works inside: the array layer, fused kernels, SIMD, the GPU, fork-join, interaction nets and reference counting without GC.
Known gaps
Everyday features Mimic does not have yet, each checked against the compiler, with the version that adds it.