Stream: git-wasmtime

Topic: wasmtime / issue #7248 support running wasm from a url


view this post on Zulip Wasmtime GitHub notifications bot (Oct 16 2023 at 13:22):

dvc94ch opened issue #7248:

was a bit surprised that WebAssembly.instantiateStreaming() is a core webassembly api, but you can't open a wasm url with wasmtime.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 16 2023 at 14:46):

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 fetch Response (or a promise that will return a Response), not directly a url.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 16 2023 at 15:55):

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 called xdg-url-open registered as the default handler for x-scheme-handler/https which then identifies the default program based on the extension (in this case wasmtime) and then opens it in wasmtime. 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.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 11 2023 at 06:43):

elliottt closed issue #7248:

was a bit surprised that WebAssembly.instantiateStreaming() is a core webassembly api, but you can't open a wasm url with wasmtime.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 11 2023 at 14:33):

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.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 11 2023 at 17:52):

elliottt reopened issue #7248:

was a bit surprised that WebAssembly.instantiateStreaming() is a core webassembly api, but you can't open a wasm url with wasmtime.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 11 2023 at 17:52):

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