Oriel — AI & technology worth noticing, every day.

Marmot, an Alternative Go Compiler

Web page · https://marmot.gaurav.zip/

First seen by Oriel on .

AI summary

marmot is an experimental Go compiler built on MLIR and LLVM that aims to produce small, fast native binaries while retaining Go’s language front end and runtime.

  • It keeps Go’s type checker, SSA builder, standard library, garbage collector, and scheduler, replacing the code-generation stages with a Go-aware MLIR dialect and LLVM.
  • The compiler demonstrates removing slice bounds checks and vectorizing int32 loops into ARM64 instructions with SIMD operations.
  • marmot compiles real Go programs, including itself, and checks every test program against Go, but is explicitly not ready for production.
  • Its go-like CLI includes build, run, test, check, fix, fmt, watch, repl, bench, prof, size, and MCP server commands.
  • Diagnostics mark source spans, label related locations, suggest fixes that marmot fix can apply, and provide structured JSON errors for coding agents.

#go #mlir #llvm #compiler

Generated by gpt-5.6-sol. Check the original for details.

Metric trends

Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained

Points

Score reported by the source.

  • Hacker News: 131, latest observation ; +125 over observed period since
  • Lobsters: 1, latest observation ; 0 over observed period since

Comments

Comment count reported by the source.

  • Hacker News: 43, latest observation ; +43 over observed period since
  • Lobsters: 8, latest observation ; +8 over observed period since

Aliases

SourceExternal IDURL
Hacker News50666051https://marmot.gaurav.zip/ Read discussion
Lobstersh3scdchttps://marmot.gaurav.zip/ Read discussion