Go from C to Go
summary
Claims a mechanical converter will rewrite 880,000 lines of C into idiomatic Go, using a tool that preserves source locations and comments, reads / C to Go / annotations for #defines, and performs value‑clustering type inference across the whole corpus. It handles 99% of cases automatically, rewrites problematic gotos (132 gotos, 35 indented labels), and exposes a 177,000‑value cluster for AST nodes. Prototype converts fragments, needs file output and import fixes, and targets Go 1.4.
AI-written summary · about
chapters (10)
- 0:00Go compiler in C
- 1:48Rewriting in Go now
- 3:34Converting C to Go
- 7:07C to Go challenges
- 10:39C preprocessor macros
- 12:26Preserving comments
- 13:29C’s goto statements
- 18:42Type mapping problem
- 24:43Progress and next steps
- 26:37Q&A on conversion








