~/talk

Abstract Algebras and Where to Find Them Magmas, Monoids, and More!

Talkat LambdaConf 2018 · 2018-06-03..06-05· [machine-learning]
links:none on file
slides:none on file

Defines magmas, semigroups, monoids and join-semilattices with concrete TypeScript implementations (no higher‑kinded types), shows foldMap abstraction and a fold that uses associativity for parallel reduction, cites 915 million combinations from a combinatorics example, recommends property‑based tests to verify algebraic laws, explains how commutative+idempotent structures underpin CRDT/eventual consistency, and describes a deployed ordering‑composition system used in production for a food‑service customer so the approach actually works.

AI-written summary · about

  1. 0:00Start
  2. 0:12Abstract Algebras and Where to Find Them: Magmas, Monoids, & More!
  3. 3:57We want to be able to define ways of composing small, working pieces into larger, working pieces
  4. 6:26If a concept can only be approximated in your language, you'll likely only have an approximate understanding of it
  5. 12:31Closure keeps our code simple
  6. 22:44What if I have a non primitive type?
  7. 25:50foldMap allows us to use primitive monoids on complex types!
  8. 40:32Start with a domain and determine which properties the domain upholds. Code accordingly.
  9. 41:06There are many more properties and structures than we covered here. Explore them!
~/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.