~/talk

Is Go A Good Language to Build Compilers?

Talkat GopherConAU 2024 · 2024-11-06..11-08· [go, compilers-and-language-design]
links:none on file
slides:none on file

Argues Go fits compiler work because it balances readability, productivity and speed, and enables easy cross compilation; demonstrates a working interpreter plus an LLVM-backed compile path using custom lexer and parser that produces correct results (for-loop example yields 8; a function-expression demo yields 20). Uses Go runtime for built-ins and plans to bootstrap to a native compiler; attempts LLVM integration rely on tinygo/LLVM bindings because official Go bindings are deprecated. Notes postponed PGO, aims for async IO via io_uring and future memory management.

AI-written summary · about

  1. 0:00Introduction and background
  2. 3:15Why Go for compilers
  3. 10:07Project overview and structure
  4. 14:26Interpreter demo and code walkthrough
  5. 22:04Lexer and parser implementation
  6. 26:27Challenges and limitations
  7. 30:45Using LLVM with Go
  8. 36:59Conclusion and recommendations
~/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.