r/programming • • May 14 '21

Python programming: We want to make the language twice as fast, says its creator

https://www.tectalk.co/python-programming-we-want-to-make-the-language-twice-as-fast-says-its-creator/
780 Upvotes

260 comments sorted by

View all comments

Show parent comments

13

u/Strange_Meadowlark May 15 '21

AFAIK your knowledge is still current on this. V8 (like every other JS runtime I know of) is still single-threaded. If you need separate threads, you launch (Web)Workers and effectively pass a copy of your data over a message event.

1

u/[deleted] May 15 '21

I don't think you are correct anymore, from memory, chrome (perhaps you are correct and this is chrome canary I'm talking about though) has a SharedArrayBuffer

3

u/josefx May 15 '21

SharedArrayBuffer is only for raw data? That still eliminates the need for a GIL and the chance that multiple threads could access and modify the structure of an object at the same time.