You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to find a way to pass zero-copy buffers from Rust to JS to WASM.
For now, according to this issue in WebAssembly design, we have to copy buffers from JS to WASM.
We can pass WASM pointers to JS, but they are valid until the WASM memory grows, so we can't rely on this.
Any idea? Could Deno go beyond this design choice? Is this impossible?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to find a way to pass zero-copy buffers from Rust to JS to WASM.
For now, according to this issue in WebAssembly design, we have to copy buffers from JS to WASM.
We can pass WASM pointers to JS, but they are valid until the WASM memory grows, so we can't rely on this.
Any idea? Could Deno go beyond this design choice? Is this impossible?
Beta Was this translation helpful? Give feedback.
All reactions