4 ms·
As @maayank has already said, python’s shared state is limited to pure c-structures, rather than actual python objects. Web workers have the same through Shared
by olliej 8y ago
As @maayank has already said, python’s shared state is limited to pure c-structures, rather than actual python objects. Web workers have the same through SharedArrayBuffer (I am unsure though whether the security pains from spectre, etc have allowed them to be turned on again).
SharedArrayBuffer is fundamentally the same as python’s C-only sharing - a bunch of raw bytes not tied to the host environment’s type system.