~/talk

Functional Rust: From ADTs to Advanced Concurrency

Talkat Lambda World 2025 · 2025-10-23..10-24· [rust, functional-programming]
name:Stefano
links:none on file
name:Adrian
links:none on file
slides:none on file

Refactors a brittle payment pipeline into a state-typed system where amount becomes an integer, payment states are encoded as enums and type parameters, and only allowed transitions compile, eliminating many runtime errors. Shows concrete use of Option/Result map for parsing and discounts, implements an applicative combine to merge independent Result parsers, uses and_then / ? (monadic chaining) to sequence steps, employs Mutex + Arc for per-payment parallelism and recommends Tokio for async scheduling.

AI-written summary · about

  1. 0:00Functional Rust intro
  2. 4:14Flawed payment system
  3. 7:29Refactoring with state
  4. 12:27Functors for process line
  5. 17:47Combining computations
  6. 23:03Monadic chaining
  7. 27:54Domain vs implementation
  8. 28:14Rust generics overview
  9. 31:10Payment table views
  10. 33:02Batch authorization
  11. 33:47Rust concurrency & async
  12. 35:50Summary
~/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.