News for hackers. Stuff that matters.
Re:Multi-Threading and Mutation by lewispollard on Wednesday March 13, 2024 @06:18AM (#39689795)
> even as recently as 2012 the most common advice was "avoid threads and use processes."

Ok, I know in the grand scheme of things this may seem recent, but that was 12 years ago. Has the story really not changed since then?

Re:Multi-Threading and Mutation by galbar on Wednesday March 13, 2024 @06:35AM (#39689895)
Not really, multi-threaded parallelism is still limited by the GIL and it is best to use multiple processes instead. Unless you are using threads for I/O, or anything not using the CPU.

What has changed since then is that Python now supports single-threaded concurrency, through async-await semantics.

Re:Multi-Threading and Mutation by jerf on Wednesday March 13, 2024 @09:53AM (#39691228)
Adding threading to a dynamic scripting language that had a multi-decade run as a single-threaded runtime turns out to be really, really difficult, especially if the language had C extensions. They all have had one form or another of very hard time about it, because it is a legitimately difficult problem.