Quick Start
Write and run your first Tensor program in 5 minutes.
1. Clone & build the compiler
Use the public compiler repo and build the CLI from source:
git clone https://github.com/cputer/mind.git cd mind cargo build --bin mindc
2. Inspect the sample program
The repository ships with examples/hello_tensor.mind. You can emit the typed SSA IR directly from the CLI:
cargo run --bin mindc -- examples/hello_tensor.mind --emit-ir
3. Different compiler outputs
Generate gradient IR or MLIR using the same example and feature flags:
# Gradient IR for main() cargo run --bin mindc -- examples/hello_tensor.mind --func main --autodiff --emit-grad-ir # MLIR lowering (feature-gated) cargo run --features "mlir-lowering autodiff" --bin mindc -- examples/hello_tensor.mind --func main --autodiff --emit-mlir