News for hackers. Stuff that matters.
Re:Faster CPython (2021) [pdf] by inglor on Sunday January 23, 2022 @02:43PM (#30049702)
Worker threads aren't share-nothing, you can share data through SharedArrayBuffer which lets you share arbitrary binary data.

If they were share nothing, we probably wouldn't have shipped them.

Source: I'm Node.js core and one of the people who worked on them

Re:Faster CPython (2021) [pdf] by zielmicha on Sunday January 23, 2022 @04:20PM (#30050544)
You can also share arbitrary binary data between processes by using shared memory (e.g. Python has support for this in multiprocessing.shared_memory module).
Re:Faster CPython (2021) [pdf] by RussianCow on Sunday January 23, 2022 @05:22PM (#30051120)
Sorry, I realized after posting that I should have said "share-nothing by default". There are ways to share memory with a worker, but it's explicit and opt-in via a dedicated API. It's not like in Python where you can arbitrarily change global state from any thread.