~/talk

Digits, Digits, and Digits

Talkat RubyKaigi 2026 · 2026-04-22..04-24· [ruby]
links:none on file
slides:none on file

BigDecimal's BigMath gains practical huge‑digit functions: exp and trig move from minutes or years to seconds by improving multiplication and using binary splitting/bit‑burst and balanced pairing. Empirical results: 10,000 digits of sin drops from 2s to 0.005s, 100,000 digits from 45min to 70s then to 0.5s, and 1 billion digits in ~150–180s. Implementation mixes C-optimized big‑integer multiplication, Ruby-level binary splitting, and pragmatic splitting heuristics; tests and edge‑case digit buffering validate correctness.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 3:43BigDecimal overview
  3. 6:30Exponential function basics
  4. 15:07Multiplication speedup techniques
  5. 18:23Binary Splitting Method
  6. 24:45Bit Burst algorithm discovery
  7. 25:35Implementing other math functions
  8. 27:51Testing and edge cases
  9. 28:59Open problems and future work
  10. 29:40Conclusion and magic of numbers
~/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.