tubeshowcase●1,677,727 videos♡ My collection 0
← Learn to Code

Learn to Code20:37

When Less is More and More is Less: Trade-Offs in Algebra • George Wilson • YOW! 2016

GOTO Conferences ↗

From the creator

This presentation was recorded at YOW! 2016. #GOTOcon #YOW https://yowcon.com George Wilson - Enthusiastic Functional Programmer at PaidRight RESOURCES https://github.com/gwils https://wils.online https://www.linkedin.com/in/george-wilson-49a54457 ABSTRACT Functional programmers love to steal ideas from mathematics. Perhaps the best example of this is the venerable monoid, a concept from abstract algebra. But what about other algebraic structures? Semigroups and semilattices, related to monoids and beloved by mathematicians, are also ripe for use by programmers. We will explore these abstractions, their uses, and familiar concretions that fit. We’ll also look at the trade-off that helps us choose which is the right algebraic structure for the job. [...] TIMECODES 0:00 Introduction 0:37 Monoid typeclass 1:28 Example: Numbers under addition 2:07 Example: Functions 3:12 Foldable example: List 3:18 Foldable example: Maybe 3:31 Laws are important 4:38 Example: NonEmpty Lists 5:51 Example: Positive Integers 6:29 Introducing Semigroup 6:58 Semigroup instances 7:08 Every Monoid is a Semigroup 8:23 Why not Foldable? 8:57 Some Foldables... 11:18 Promoting Semigroups 14:09 Example: Maximum 14:48 What can we do with a semilattice? 15:34 Laws = power 16:10 Idempotence 16:38 CRDTs 18:13 Bounded Join-semilattice 18:44 Example: Set union laws 20:27 Wrapping up RECOMMENDED BOOKS Eric Normand • Grokking Simplicity • https://amzn.to/3gz7o3C Daniel Higginbotham • Clojure for the Brave and

Published 2023-03-18 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code