Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SharedArrayBuffer all typed arrays by default? #66

Open
sirisian opened this issue Feb 18, 2022 · 1 comment
Open

SharedArrayBuffer all typed arrays by default? #66

sirisian opened this issue Feb 18, 2022 · 1 comment

Comments

@sirisian
Copy link
Owner

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
Copy link
Owner Author

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

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

No branches or pull requests

1 participant