Create

Sign in to ReadmeX

or

How we handle your data: Privacy Policy

ReadmeX

Your AI reading companion

What would you like to catch up on?

Pick a briefing, or ask your own question.

Your community and people briefings stay personal to you.

Story

Marmot: an experimental alternative Go compiler built on MLIR and LLVM

AI summary

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.

In-depth insight

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.

Image 1
Image 2

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

#Marmot#Go#MLIR#LLVM#Apple M3 Pro

Original · 3 min readRead the original
Group chat

No comments yet. Start the conversation.