~/talk

Simulating the World with Ruby

Talkat RubyConf 2012 · 2012-11-01..11-03· [ruby]
slides:none on file

Claims Ruby can run large stochastic simulators if engineered carefully: uses Vose/Alias constant-time sampling for weighted random draws, the distribution gem for PDFs, R and d3 for visualization, and PostgreSQL is too slow for billions of events so in-memory or OLAP stores are recommended. JRuby yields big speed and multi-core gains but exposes GC and memory-retention issues (observed heaps of ~7–11 GB); fix by reset listeners to free arrays and offload hot paths to Java/C. Example run: 1,000 people over 100 years completes in ~129s.

AI-written summary · about

  1. 0:00Start
  2. 1:21Expressive
  3. 1:41Quick feedback loop
  4. 2:22Building blocks of simulations
  5. 2:49Deterministic
  6. 5:07Stochastic
  7. 10:10Use ALL the memory
  8. 17:34gem install distribution
  9. 20:24brew install spark
  10. 25:16Memory Management
  11. 29:34Building a simulator in Ruby
  12. 34:02gem install algorithms
  13. 38:28Lessons Learned
  14. 39:36Ruby lacks in stats/science libs
~/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.