~/talk

When Safe Code is Fast - Scientific Computing in Rust

slides:none on file

Rust compiler adds enzyme autoiff (nightly) and a cross‑vendor offload component for GPUs; safe Rust often outperforms unsafe in real benchmarks. adbench shows unsafe code hitting ~10x slower cases and generating 1 million allocations versus 11, with memory jumps (≈40 MB vs ≈800 MB). A GPT‑2 port explodes to ~300 GB of AD data until assertions are used, dropping to ~2 GB. GPU offload infers transfers and moves less data than C++ (≈70% of C++ in some workloads).

AI-written summary · about

  1. 0:00Introduction and background
  2. 3:14Safe Rust vs performance myths
  3. 5:19Performance pitfall with raw pointers
  4. 8:52Gaussian mixture models case study
  5. 11:43Unsafe Rust and compile times
  6. 14:36GPT2 automatic differentiation issue
  7. 19:52GPU offload in Rust compiler
  8. 23:03Safe GPU data management
  9. 27:41GPU optimizations and interfaces
  10. 30:07Acknowledgements and summary
~/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.