~/talk

"Shattered Mirror: An Introduction to Reflect and Unsafe in Go"

Talkat GothamGo 2019 · on Friday, 2019-04-12· [go]
slides:none on file

Shows the concrete uses and failures of reflect and unsafe by describing a real state machine executor built with reflect for runtime wiring then replaced with code generation when panics and inscrutable stack traces made debugging impossible. Demonstrates how reflect inspects and constructs types and powers marshaling, how unsafe underpins reflect and enables raw syscall conversions, and argues against runtime dependency injection with reflect while recommending one-way control flow and reflect for reading or marshalling only.

AI-written summary · about

  1. 0:00Intro
  2. 0:34Reflect
  3. 3:35Indicators of Reflect
  4. 4:30Unsafe Example
  5. 5:11Types
  6. 8:35Type Information
  7. 14:48Unsafe
  8. 20:22Lessons
~/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.