dvc94ch opened issue #7248:
was a bit surprised that
WebAssembly.instantiateStreaming()
is a core webassembly api, but you can't open a wasm url withwasmtime
.
bjorn3 commented on issue #7248:
Wasmtime doesn't support any kind of streaming compilation right now. Not even from a file stored on the disk. It needs the entire file in memory at once currently. In any case even once it supports streaming, I think it would make more sense to accept an
std::io::Read
implementation rather than having a specific api for downloading from the internet. The web api also effectively does this.instantiateStreaming
accepts a fetchResponse
(or a promise that will return aResponse
), not directly a url.
dvc94ch commented on issue #7248:
ah was thinking more about configuring wasmtime to open url's with a wasm extension on my linux system. So
xdg-open https://github.com/torch2424/wasm-by-example/blob/master/examples/hello-world/demo/assemblyscript/hello-world.wasm
works. I have a small utility calledxdg-url-open
registered as the default handler forx-scheme-handler/https
which then identifies the default program based on the extension (in this casewasmtime
) and then opens it inwasmtime
. I guess I can build my own wrapper for wasmtime if I want to make this work.My particular use case is to kill the web/browser with a searchable p2p document store that supports opening the files in native tools (pdf, media, wasm) using ai to do image captioning and speech to text to enable full text search.
elliottt closed issue #7248:
was a bit surprised that
WebAssembly.instantiateStreaming()
is a core webassembly api, but you can't open a wasm url withwasmtime
.
tschneidereit commented on issue #7248:
@elliottt did you mean to close this issue via #7434? It doesn't look related to me, but maybe I'm missing something.
elliottt reopened issue #7248:
was a bit surprised that
WebAssembly.instantiateStreaming()
is a core webassembly api, but you can't open a wasm url withwasmtime
.
elliottt commented on issue #7248:
You're completely right -- I had meant to close #7428. Sorry about that!
Last updated: Dec 23 2024 at 12:05 UTC