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

memory access for js callees #1276

Closed
devsnek opened this issue May 15, 2019 · 1 comment
Closed

memory access for js callees #1276

devsnek opened this issue May 15, 2019 · 1 comment

Comments

@devsnek
Copy link
Member

devsnek commented May 15, 2019

reposted from WebAssembly/gc#67

It's not possible for JS callees to gain access to S.mems[0] without it being explicitly exported under a prenegotiated name. This means that it's not possible to work with functions that require memory access within the wasm start function, and it makes it impossible to import a function with the esm proposal that can access the memory.

This seems like a super important step to consider with the design of memory moving forward. I've seen it be a design blocker at least once within WASI (WebAssembly/WASI#19), and I've had to work around it in various other projects I've worked on.

The main idea so far seems to be first-class references to memories.

cc @linclark @tschneidereit @lukewagner

@sbc100
Copy link
Member

sbc100 commented May 17, 2019

I think this is a duplicate of #1160

@sbc100 sbc100 closed this as completed May 17, 2019
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