# Marmot compiles Go through MLIR and LLVM to binaries 9x smaller than go build

Original title: Marmot, an Alternative Go Compiler

> Hacker News story 50666051 · language: en · submitted 2026-11-27
> Web version: https://zeli.app/story/50666051
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 34 · by [andreynering](<https://news.ycombinator.com/user?id=andreynering>) · 💬 4
[original](<https://marmot.gaurav.zip/>) · [HN discussion](<https://news.ycombinator.com/item?id=50666051>)

## Summary

Marmot is an experimental Go compiler that keeps Go's type checker, SSA builder, and standard library but swaps code generation for MLIR and LLVM. It compiles real programs including itself, and every test output is checked against Go. On an Apple M3 Pro, release binaries shrink from 1.83 MB to 201 KB for hello world, and 37 of 45 benchmark programs run faster than with go build. Not production-ready yet.

## Key quote

> Marmot compiles real Go programs, including itself, and checks every test program against Go, but it is not ready for production.

---

## Cite

- Page: https://zeli.app/story/50666051
- Date: 2026-11-27
- Source: marmot.gaurav.zip (https://marmot.gaurav.zip/)
- Hacker News: https://news.ycombinator.com/item?id=50666051
