~/talk

Go from C to Go

Talkat GopherCon 2014 · 2014-04-24..04-26· [go]
name:Russ Cox
links:none on file
slides:none on file

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

  1. 0:00Go compiler in C
  2. 1:48Rewriting in Go now
  3. 3:34Converting C to Go
  4. 7:07C to Go challenges
  5. 10:39C preprocessor macros
  6. 12:26Preserving comments
  7. 13:29C’s goto statements
  8. 18:42Type mapping problem
  9. 24:43Progress and next steps
  10. 26:37Q&A on conversion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.