Hacker News AIT2·Tools
58 pts
Marmot is an experimental Go compiler built on MLIR and LLVM that keeps Go code and go.mod unchanged while replacing only code generation, producing small, fast native binaries and errors that point to the fix. It reuses Go's type checker, SSA builder and standard library, and uses a custom go dialect to preserve Go semantics in MLIR long enough to eliminate bounds checks, keep objects on the stack and call interface methods directly. It already compiles real Go programs including itself, but is explicitly not production-ready.