~/talk

Sloth & ENVy

slides:none on file

Explains how the process entry from the system V ABI threads a raw envp of null‑terminated strings through libc’s start_main into Python’s posix layer, how os.environ becomes a dictionary hooked to get and put functions, and why mutating env in‑flight breaks binding semantics. Shows a small benchmark where C beats Python on raw lookups but Python’s dict wins at extreme sizes, and draws the practical rule: treat environment vars as immutable props and pass them to child processes rather than mutate them with os.environ vs putenv/getenv.

AI-written summary · about

  1. 0:00Sloth & ENVy intro
  2. 1:03Environment variables in C and Python
  3. 3:10PATH and which command
  4. 5:37Disassembling LibC start main
  5. 7:03Python environ quirks
  6. 9:31Python vs C env vars
  7. 10:56Getters and setters in Python
  8. 12:39Early vs late binding in imports
  9. 14:25Environment variables and binding
  10. 15:51Changing env vars at runtime
  11. 16:55Takeaways and closing thoughts
~/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.