3 ms·
WebAssembly modules can still import an external linear address space, but they can now also define their own linear address space, with their own initializatio
by sunfish 10y ago
WebAssembly 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.