Add Virtual Threads to Python

14 points by a5rocks


olliej

Virtual threads, fibers, and all the similar versions always run into problems where tasks are blocked on other virtual threads making progress but because they aren’t actually backed by real threads get functionally deadlocked.

There are ways to make it harder for that to happen but that means now you have something that is even more complex than just locking.

The whole purpose of the async/await and actor style models is to make the myriad difficulties of threads as close to impossible as possible at compile time.

People who say “threads are easier” are either doing things that are extremely uncomplicated and could trivially be done as async/await or their code has errors in it.