boa icon indicating copy to clipboard operation
boa copied to clipboard

Implement `SharedArrayBuffer` built-in object

Open raskad opened this issue 3 years ago • 4 comments

Additional to the implementation of the SharedArrayBuffer built-in object, the corresponding uses in TypedArray should be implemented.

ECMASCript feature The SharedArrayBuffer object is used to represent a generic, fixed-length raw binary data buffer, similar to the ArrayBuffer object, but in a way that they can be used to create views on shared memory. Unlike an ArrayBuffer, a SharedArrayBuffer cannot become detached.

ECMAScript specification MDN documentation

raskad avatar Oct 06 '21 19:10 raskad

Blocked until we implement Agents (reason: CreateSharedByteDataBlock) which are not trivial because we would need to first implement Realms and ExecutionContexts

jedel1043 avatar Oct 06 '21 19:10 jedel1043

Blocked until we implement Agents (reason: CreateSharedByteDataBlock) which are not trivial because we would need to first implement Realms and ExecutionContexts

Should we have an issue for implementing an Agent?

Razican avatar Oct 07 '21 06:10 Razican

Should we have an issue for implementing an Agent?

We should instead make a project, I think, because agents depend on execution contexts which depend on realms which depend on refactoring the Context type

jedel1043 avatar Oct 07 '21 06:10 jedel1043

Uh so I reevaluated this and it should be fine to treat Context as our agent. Anyways, this is not blocked on that, but the implementation is a bit complex because of overlapping atomics of different sizes, so I'll unblock this but mark it as hard.

jedel1043 avatar May 31 '23 00:05 jedel1043

Implemented in #3384

raskad avatar Mar 29 '24 02:03 raskad