MIMIC
Docs · Mimic 0.4.3

Documentation

These pages describe the latest release, 0.4.3. New to Mimic? Install it and follow the tutorial.

Tutorial

All 20 chapters →

Guides

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.

Design (drafts)