~/talk

Sets in Modern Go

Talkat GopherCon UK 2026 · 2026-08-12..08-13· [typescript]
slides:none on file

Concrete claim: Go is adding standard sets and collection conventions for Go 1.28 that turn O(M·N) nested-loop problems into near-linear code using constant-time membership. The work shows a map-backed container/set with one-line methods calling a lower-level mapset API (Collect, InsertAll, ContainsAll, Intersection/IntersectionWith) plus a separate maphash hasher and hashset/hashmap type that accept custom equality and hash (example: case-insensitive hasher using ToLower). The design is in flight but compiles on 1.27 RC.

AI-written summary · about

  1. 0:00Introduction
  2. 5:44Sets in Go development
  3. 10:20Set theory and bitwise ops
  4. 17:10Go 1.28 set collections
  5. 23:09Collection interfaces in Go
  6. 37:52New set type implementation
  7. 51:35Custom hashers for sets
  8. 55:10AI prompting with set algebra
  9. 56:41Fair AI practices and productivity
  10. 1:00:16Summary and Q&A
~/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.