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

avoid SAB when possible #295

Open
zamfofex opened this issue Mar 17, 2024 · 1 comment
Open

avoid SAB when possible #295

zamfofex opened this issue Mar 17, 2024 · 1 comment

Comments

@zamfofex
Copy link

When stdin is constant (or potentially empty), SharedArrayBuffer doesn’t seem necessary.

Besides that, another option would be to run Binaryen with the asyncify pass on the WebAssembly file in order to be able to run some code asynchronously. I have used Binaryen.js (from the AssemblyScript community) in the past for that effect, modifying the Wasm binary within the browser itself!

@taybenlor
Copy link
Owner

Yeah those are both interesting ideas!

I've avoided doing asyncify to keep things simple, but it's worth exploring.

Being able yo dodge SAB would really help with improving the integration experience. Changing headers is annoying.

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

2 participants