Explore the intricacies of using closures safely in Scala programming during this 40-minute conference talk from Strange Loop 2022. Delve into the essential role of closures in data processing engines like Apache Spark and Flink, and their importance in functional programming. Discover the challenges and limitations of closures in parallel and distributed programming environments, including serialization issues and potential race conditions. Learn to identify unsafe closure usage, implement safer coding practices, and leverage newly developed library components to enhance closure flexibility and safety in Scala. Benefit from the expertise of Philipp Haller, an Associate Professor at KTH Royal Institute of Technology and co-author of Scala's async/await extension, as he shares insights on writing more secure and efficient code using closures.
Overview
Syllabus
"How to Avoid Safety Hazards when using Closures in Scala" by Philipp Haller (Strange Loop 2022)
Taught by
Strange Loop Conference