multi-memory icon indicating copy to clipboard operation
multi-memory copied to clipboard

Additional motivation: efficient memory mapping

Open ratchetfreak opened this issue 4 years ago • 3 comments

An application may want to map en external buffer and read/write to it directly.

A concrete example is mapping a webgl vertex buffer into a wasm module to have it filled out based by decoding a model file.

ratchetfreak avatar Apr 29 '20 15:04 ratchetfreak

If a non-web encoding was able to mark a region as volitile, memory-mapped I/O based device drivers could be implemented in WebAssembly. (If this isn't currently possible at this late state of proposal, I'm likely to add this to a new proposal.)

SamuraiCrow avatar Jul 25 '22 08:07 SamuraiCrow

This has been discussed in the context of a new proposal we call "memory control" (See https://github.com/WebAssembly/memory-control and the discussion proposing it)

dschuff avatar Jul 26 '22 00:07 dschuff

@dschuff Thanks for the links!

SamuraiCrow avatar Jul 26 '22 00:07 SamuraiCrow