Marmot: an experimental alternative Go compiler built on MLIR and LLVM
Marmot is a new Go compiler built on MLIR and LLVM that keeps existing Go code and go.mod unchanged while producing native binaries and errors that point at the source span and suggest fixes. The project says it compiles real Go programs, including itself, and checks its test programs against Go, but that it is not ready for production. Its own measurements on an Apple M3 Pro report smaller release binaries than go build, a 1.54x faster geometric-mean runtime over 45 programs, and shorter builds, while a small Go dialect in MLIR keeps Go semantics long enough to remove bounds checks and keep objects on the stack. The toolchain also adds go-like subcommands (build, run, test, check, fix, fmt, watch, repl, bench, prof, size, generate, explain, doctor) and an MCP server so coding agents can build, run, test and fix code.
The project reports materially smaller binaries and faster builds than the standard Go toolchain, and its diagnostics plus MCP server are aimed squarely at coding-agent workflows, which makes it interesting to Go developers working with AI agents. All performance and capability figures come from the project itself and are not independently corroborated.
Go, lowered to machine code
marmot is a Go compiler built on MLIR and LLVM. Keep your Go code and your go.mod, switch the compiler, and get small, fast native binaries and errors that show you the fix.
Experimental: marmot compiles real Go programs, including itself, and checks every test program against Go, but it is not ready for production.
- Go