~/talk

Constant Time

Talkat dotGo 2019 · on Monday, 2019-03-25· [go]
slides:none on file

Explains concrete tricks: constant expressions compute machine word size at compile time, shows how to make standard file descriptor values truly immutable by using typed constants, and demonstrates replacing sentinel error variables with constant string‑derived error types so they become constant error values are fungible and compare equal. Provides a small patchable example that compiles everywhere except one standard‑library client when swapped, proving the approach works and is adoptable in user code.

AI-written summary · about

  1. 0:00Start
  2. 1:56Declare a Constant
  3. 3:15Constant Expression
  4. 5:58Singleton Pattern
  5. 7:03File Descriptors
  6. 9:31Sentinel Error Values
  7. 12:17Most Important Property of a Constant
  8. 14:21Error Implementation
  9. 16:09Ghost Constants
~/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.