~/talk

“CNL: A Compositional Numeric Library”

Talkat CppCon 2017 · 2017-09-24..09-29· [machine-learning]
links:none on file
slides:none on file

CNL presents a composable numerics library that gives zero-cost abstractions over integers: fixed_point adds a binary radix to an integer, multiplication doubles fractional bits and squares double the exponent, division requires a special divide helper (half of integer divisions yield zero); elastic_integer auto-widens (e.g., 32→64 bits, 31→62 for products) to avoid overflow; safe_integer traps run-time overflow. Uses heavy static_asserts (≈1000 checks), class template deduction and user literals (_c, _elastic), interoperates with Boost.Multiprecision (googol inverse) and Boost.SIMD (Mandelbrot), and mostly matches raw int performance except slower, shifted division.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 1:03Problems with numeric types
  3. 4:37CNL library goals and design
  4. 8:27Fixed point basics
  5. 13:31Limitations of fixed point
  6. 18:12Multiplication and division issues
  7. 22:32Division challenges
  8. 29:08Elastic integer type
  9. 38:56Safe integer for runtime checks
  10. 44:02User-defined literals
  11. 49:08Elastic fixed point
  12. 52:28Interoperability with other libraries
  13. 54:57Roadmap and future work
  14. 57:46Q&A
~/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.