~/talk

What's The Point? A Guide To Using Pointers Without Panicking

Talkat GopherCon AU 2023 · 2023-11-08..11-10· [go]
links:none on file
slides:none on file

Practical guide that demos actual Go behavior: slice copies share an underlying array and append can be nondeterministic depending on capacity, maps and slices are reference objects and a nil map panics on write, methods on nil pointer receivers sometimes work but accessing fields panics. Benchmarks show pointer vs value: ~260× speedup for 8KB and ~180,000× for 8MB (80 bytes ≈ 1.4×). Advice: weigh size, nilability, mutability; use copy, validate inputs, and sync for concurrent writes.

AI-written summary · about

  1. 0:00Introduction and background
  2. 3:20Pointers basics recap
  3. 4:20Interactive pointer quiz
  4. 7:25Slices as reference objects
  5. 10:00Append behavior with slices
  6. 14:50Maps and reference objects
  7. 16:50Pointer vs value decision criteria
  8. 19:00Performance considerations
  9. 21:30Nil ability in error handling
  10. 23:15Validating incoming data
  11. 26:45Mutability and access control
  12. 30:35Pointer vs value receivers
  13. 32:55Interfaces and receivers
  14. 33:55Concurrency and shared state
  15. 35:45Summary and trade-offs
~/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.