Going Functional in the Python Data Science Stack
summary
Argues that composing small, pure operations lets Python escape “word-at-a-time” limits by building a task graph that supports lazy evaluation and out-of-core execution; demonstrates a numerically stable softmax-style sum implemented as chunked map‑and‑reduce, uses Dask arrays and dask.random to generate data larger than RAM, and shows benchmarks where Dask beats NumPy on large datasets but loses to NumPy for tiny inputs (e.g. ~100 elements) because of conversion overhead.
AI-written summary · about
chapters (25)
- 0:00Introduction to talk
- 0:44What is functional programming
- 4:18Imperative vs functional in Python
- 7:07Lazy evaluation in Haskell
- 12:34Functional vs imperative concepts
- 14:24Limitations of imperative paradigm
- 19:47Word-at-a-time programming critique
- 21:57Beyond the von Neumann machine
- 23:26Introducing Dask library
- 27:46Dask MapReduce example
- 31:21Dask performance benchmarks
- 32:07Benefits of functional expression graphs
- 34:52Takeaways and future outlook
- 36:24Q&A session begins
- 36:46Difference between Dask and NumPy
- 38:37Understanding error bars
- 39:42Benchmark limitations
- 40:07Using Dask with pandas
- 41:56Dask purity and implementation
- 42:41Dask wrappers for ML libraries
- 43:44Real-world Dask use cases
- 46:10Dask in psychtoolbox
- 47:33Dask vs joblib in scikit-learn
- 48:35Motivation for Dask explained
- 48:57Closing announcements
