~/lightning

Cotuple - A Trip to Category Theory and Back

Lightningat C++Now 2022 · 2022-05-01..05-06· [c-and-cpp]
links:none on file
slides:none on file

Explains that a C++ struct implements the categorical product with projection methods corresponding to getters and a unique mediating function that builds the tuple from two maps, while std::variant implements the categorical coproduct with injections (constructors) and the unique mediating morphism realized as std::visit/overload pattern matching. Shows the concrete isomorphism claims and practical mappings between category theory diagrams and C++ types and operators, and that the mappings hold as usable code patterns.

AI-written summary · about

  1. 0:00Intro
  2. 0:27Types
  3. 0:42Projections
  4. 1:42Code
  5. 2:03Fun Fact
  6. 2:13Code Tuple
  7. 2:40Unique Function
  8. 2:54Tuples
  9. 3:18Isomorphic
  10. 3:36Limiting Cone
  11. 4:06Takeaway
~/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.