2min chapter

ClojureStream Podcast cover image

E81 Concurrency and parallelism with Paul Butcher

ClojureStream Podcast

CHAPTER

Functional Programming for Threads and Locks

Functional programming solves the problem not by avoiding sharing but by avoiding mutable state. So if you're in a situation where as soon as you have written something to memory, it will never change and that's what a pure functional language guarantees. It's impossible for a thread to modify data that's being created by another thread because no part of the program can ever modify data. That's what functional programming is all about, is avoiding mutation. Right. And how does functional programming come into the picture when it comes to like thread and locks? Sure. I want to take a setback maybe before we talk about that and talk about why threads and locks have problems. And it basically boils down to

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode