ecmascript-types icon indicating copy to clipboard operation
ecmascript-types copied to clipboard

SharedArrayBuffer all typed arrays by default?

Open sirisian opened this issue 3 years ago • 1 comments

I've thought about this before, but I think this is important. I've done a few multi-threading projects. I think all arrays should be accessible across threads with any special considerations. The user shouldn't have to a:SharedArrayBuffer<T> explicitly.

I've been meaning to ask the TC39 people about introducing language level threading for a while since the current web worker stuff is a mess. Should probably write a proposal sometime.

sirisian avatar Feb 18 '22 17:02 sirisian

I've added this into the array section (and class value types) to ensure that all arrays by default can be shared across threads.

sirisian avatar Nov 28 '22 01:11 sirisian