Hacker News new | ask | show | jobs
by smitty1e 1459 days ago
Asycio is really a list of tasks in the main interpreter thread.

This is far easier to work with than multiprocessing.

When doing, e.g. AWS work, multiprocessing is additional pain for little gain.

Maybe 3.11 will make threads less painful.

1 comments

From what I've been following, it's going to take another release (or several) after 3.11 for Node-like worker threads to land in Python.
I'm not deep on Node, but this sounds like a GIL thing.
It is, and it's a subinterpreters thing. Node has separate interpreters that run in worker threads but also share memory, which is the route Python is planning on taking.