~/talk

Programming challenges in converting R to C++

Talkat Meeting C++ 2018 · 2018-11-15..11-17· [rust]
links:none on file
slides:none on file

Converts a clinical-trial R codebase (the smart package, MySQL-backed datasets, p‑value matrices) into C++ and reports concrete tradeoffs: replacing dense matrices with sparse vectors cuts memory and drops a 30‑minute job to seconds, while naive copies blow up memory; rewrites of numerically unstable formulas (use integration by parts, log‑gamma) fix wrong p‑values; one‑pass variance is unstable so Welford/accumulators are used; uses Boost, LAPACK and Boost.Accumulators, Pimpl + shared_ptr, and extensive unit and randomized testing — resulting production code is much faster and usable.

AI-written summary · about

  1. 0:00Start
  2. 0:40Introduction
  3. 1:03What Is a Clinical Trial
  4. 12:47Scientific Programming Challenges
  5. 14:58Testing
  6. 19:39Software Architecture in Data Structure
  7. 24:51Sample Variance
  8. 29:15The Factory Pattern
  9. 37:39Mobile Numerical Instabilities
  10. 45:36Beta Binomial Distribution
  11. 47:18Do the Calculation in the Log Scale
~/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.