Learning from FP: Simulated Annealing in Haskell and Ruby
summary
Shows a concrete translation of a Simulated Annealing algorithm from Haskell into Ruby, demonstrating how Haskell’s separation of pure algorithms from side effects maps to Ruby code. Includes use of ruby-processing for visualizing the algorithm and uses the comparison to illustrate functional programming ideas that can improve Ruby code.
AI-written summary · about
chapters (15)
- 0:00Intro
- 0:25Procedural vs Functional
- 3:22Haskell
- 7:36Lazy
- 8:29Types
- 10:45Partial Application
- 12:45Higher-order functions
- 17:18Simulated Annealing
- 21:55The Perfect Picnic
- 23:09Tessellation
- 23:57Annealed
- 25:45Tests
- 26:27Geometry
- 32:44Not enough time!
- 33:04Ruby-Processing








