~/talk

Applicative: The Origin Story

Talkat Scale By the Bay 2020 · on Friday, 2020-11-13· at 00:15· functional, Online· [functional-programming, scala]
links:none on file
slides:none on file

Shows that applicative lets pure multi‑argument functions be applied to effects by lifting the function and using ap / map2 instead of flatMap. Translates the original Haskell examples into Scala using Option, Either, IO and a Validated instance, builds a generic sequence/traverse that turns List[IO] into IO[List], demonstrates a 3s sequential run vs a 1s parallel run by switching to a parallel IO applicative, and composes nested applicatives to time and aggregate results — the examples run and collect values or errors as claimed.

AI-written summary · about

  1. 0:00Introduction to pure functions
  2. 1:21Principles of pure functions
  3. 4:20Advantages of functional programming
  4. 6:30Handling effects with monads
  5. 8:04Functor and monad mapping
  6. 10:38Sequencing effects in Scala
  7. 12:04Introduction to applicatives
  8. 14:09Applicative mapping and syntax
  9. 16:19The applicative type class
  10. 17:20Sequencing effects with applicatives
  11. 20:41Understanding traverse
  12. 23:00Parallel vs sequential execution
  13. 25:54Advanced traversal techniques
  14. 27:10Complex composition example
  15. 30:43Conclusion and key takeaways
~/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.