Quick Start
Write and run your first Tensor program in 5 minutes.
Quick Install (Recommended)
One command to install MIND with all dependencies:
curl -fsSL https://mindlang.dev/install.sh | sh
This will install Rust (if needed), clone the repo, build the compiler, and add mind to your PATH.
Manual Installation
Alternatively, build from source manually:
1. Clone & build the compiler
Use the public compiler repo and build the CLI from source:
git clone https://github.com/star-ga/mind.git cd mind cargo build --release --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