~/talk

Generic Math in .NET 7

Talkat Øredev 2022 · 2022-11-08..11-10· [machine-learning]
slides:none on file

Generic Math in .NET 7 introduces a concrete claim and a working toolset: dozens of new numeric interfaces applied to primitives that let one write a single generic algorithm instead of many overloads. It adds 30+ interfaces and static abstract interface members, new operator forms like create checked and checked/unchecked operator overloads, and new types such as n128 and Half. Library refactors (LINQ average/sum) remove duplicated code — removed ~830 lines — and runtime work keeps startup fast.

AI-written summary · about

  1. 0:00Introduction
  2. 1:25What is generic math
  3. 2:53Live demo: standard deviation
  4. 9:20Implementing standard deviation
  5. 11:47Midpoint calculation
  6. 15:02Custom numeric types
  7. 18:15API design
  8. 27:10Language features
  9. 32:07Checked operators
  10. 36:01Preview features
  11. 37:47Runtime refactoring
  12. 40:18Summary
~/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.