~/talk

Catching space leaks at compile-time using th-deepstrict

links:none on file
slides:none on file

Claim: laziness only causes unbounded leaks when code is stateful. Examples: a lazy fold that builds a thunk chain, an average accumulator whose top-level state is forced but whose fields accumulate thunks, and a web server with global state that grows without bound. Tool: th-deepstrict uses TemplateHaskell to assert deep strict types by checking for bangs recursively, emitting pretty diagnostics, supporting overrides and golden/ratchet tests. Recommendation: avoid global state or mark state types deep strict and prefer strict containers or strict wrappers for mutable refs.

AI-written summary · about

  1. 0:00Space leaks motivation
  2. 3:16Laziness and thunks causes
  3. 6:50Deep strictness vs WHNF
  4. 9:21Statefulness role
  5. 11:48th-deepstrict introduction
  6. 15:04Strict data types practice
  7. 17:30Alternatives trade-offs
  8. 20:18Conclusion
  9. 20:45Q&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.