~/lightning

Lightning Talk: Safe Arithmetic Speed-Run: Experimental C++ Library

Lightningat C++Now 2023 · 2023-05-07..05-12· [c-and-cpp]
slides:none on file

Experimental Safe Arithmetic library on Intel's GitHub provides C++ types that encode integer constraints, using an integer constraint DSL and a mask primitive to fix or vary bits; compile-time rules forbid unsafe assignments, require initialization for nonzero types, and make division/modulo fail to compile unless the denominator is proven nonzero. It adds a runtime match for validated inputs, explicit unsafe_cast for reviewer-visible bypasses, and a single explicit safe_cast for extracting raw ints. The library compiles and enforces checks, not heavy formal proofs.

AI-written summary · about

~/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.