Elucidations

Episode 147: Gabriella Gonzalez discusses the intersection of algebra and programming

Jul 15, 2023
Ask episode
AI Snips
Chapters
Transcript
Episode notes
INSIGHT

Sequence Equals Multiplication

  • Sequence (do then) maps to multiplication and choice maps to addition across domains like recipes and code.
  • Boolean algebra crystallizes this mapping where times = and and plus = or.
ANECDOTE

Transactions Modeled As Choice

  • Gabriela describes Haskell's software transactional memory where transactions can be tried or fall back to alternatives.
  • This alternation reflects algebraic plus: try A then B or otherwise try C, satisfying distributivity.
INSIGHT

Regexes Are Algebraic Programs

  • Regular expressions implement sequencing and alternation analogous to multiplication and addition.
  • Their algebraic structure (including Kleene star) enables formal compilation and reasoning.
Get the Snipd Podcast app to discover more snips from this episode
Get the app