Skip to content

Implement SharedBuffer/SharedBufferView#25

Draft
CountBleck wants to merge 2 commits intolunatic-solutions:masterfrom
CountBleck:shared-buffer
Draft

Implement SharedBuffer/SharedBufferView#25
CountBleck wants to merge 2 commits intolunatic-solutions:masterfrom
CountBleck:shared-buffer

Conversation

@CountBleck
Copy link
Copy Markdown
Contributor

@CountBleck CountBleck commented Nov 9, 2022

This is a WIP. There are no tests yet.

@jtenner
Copy link
Copy Markdown
Contributor

jtenner commented Nov 18, 2022

It would be time to revisit this, converting the ArrayBuffer into a heap allocation that sits on the stack that sits inside a Held<ArrayBuffer>

Do you think we could try SharedBuffer extends Held<ArrayBuffer>?

This allows other Shared objects to be present in their own files.
This commit introduces SharedBuffer and SharedBufferView, which are akin
to ArrayBuffer and TypedArray respectively. Most of the TypedArray
methods are unimplemented, but the Atomics functions have been fully
implemented.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants