~/talk

A Dwarf Fortress Clone In Elixir: A Story Of Doing It Wrong

Talkat The Big Elixir 2019 · 2019-11-07..11-08· [game-development]
links:none on file
slides:none on file

Built a Dwarf Fortress–style world as many GenServer processes with a global registry, PE timer heartbeats and gen_stage-ish event wiring, then discovers the system breaks: a graph generator is sped up by switching a costly flat_map copy to reduce and linked-list concat, heavy synchronous calls cause dining-philosophers deadlocks so architecture shifts to tell-don't-ask and single source of truth, broadcasting 15–20k ticks and N^2 events exposes that mailbox growth increases send cost and Linux OOM kills the server after ~90 minutes, so fixes include bounded ticks, backpressure and a RAM-based birth throttle.

AI-written summary · about

  1. 0:00Introduction and theme
  2. 3:39What is a MUD and Dwarf Fortress
  3. 5:49Roadmap and bad ideas
  4. 6:32Algorithm improvement lessons
  5. 8:59Extreme local states pitfalls
  6. 12:33Distributed state trade-offs
  7. 15:42BEAM VM schedulers impact
  8. 19:33Flooding processes with messages
  9. 26:44Actors are single-threaded
  10. 27:07Out of memory killer surprises
  11. 32:14Yak shaving and open source
  12. 36:15Q&A session
~/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.