3 ms·
It looks like Wasm.instantiateModule(b, m) currently takes the binary wasm and memory to create a module, when would you pass in a linear memory object? Does c
by icefox 10y ago
It looks like Wasm.instantiateModule(b, m) currently takes the binary wasm and memory to create a module, when would you pass in a linear memory object? Does converting a wast always produce two files?
- sunfish 10y agoWebAssembly modules can still import an external linear address space, but they can now also define their own linear address space, with their own initialization data included in the module file.
- icefox 10y agoSo if I understand that correctly unlike the current text ast format that is floating around the Binary Format doesn't include the contents of (memory ...)? So foo.wasm + foo.mem = foo.wast?
- sunfish 10y agowasm modules can include their own initializers now, so .mem files won't be needed. This is the Data Section in the WebAssembly docs. .wast is actually just a testing file format that's currently serving the purpose of a text format in the absence of a real one. It isn't expected to be part of typical user workflows.