Questions tagged [wasi]
The wasi tag has no usage guidance.
wasi
59
questions
1
vote
0
answers
24
views
Why CGo-based build targeting GOOS=wasip1 failed
I cannot build a cgo-based project targeting GOOS=wasip1. Here is github repository helping reproduction.
Environment
Go 1.22.4
Debian 12
Output of go env command goes as
GO111MODULE=''
GOARCH='...
0
votes
1
answer
43
views
Why use WASI if WASM supported languages have their own standard libraries?
I might have a fundamental misunderstanding about WASM, tried to google it and read some of the docs, but it is not clear to me yet.
As far as I understand, WASI is an language agnostic API for many ...
1
vote
1
answer
18
views
WebAssembly wait & notify not working across wasi threads
I'm trying to make a thread_join function in WebAssembly by setting a mutex to 1 in the main thread, and then launching a thread. the thread unlocks its mutex before exiting. the main thread can get ...
0
votes
0
answers
49
views
WebAssembly Runtimes.. Wasmer versus Wasmtime when using WASI
If we attempt to access the file system, such as the example provided https://github.com/bsletten/wasm_tdg/tree/main/ch11
We should see wasmtime and wasmer behave nearly the same, however wasmer v4.3....
0
votes
1
answer
51
views
wasmtime example doesn't run
I am currently exploring the add example for wasm component which is wasi-0.2, from wasmtime component doc diligently following their example, unfortunately it doesn't run
#[allow(warnings)]
mod ...
0
votes
0
answers
43
views
Logging with Rust WebAssembly Modules
I get the following error when executing:
"wasmer foo_bar.wasm"
error: Instantiation failed
1: Error while importing "wasi:logging/logging"."log": unknown import. ...
0
votes
1
answer
26
views
Why does .NET Wasi.Sdk throw on garbage collection?
When using the .NET WASI SDK it seems the garbage collector throws, either when it runs itself in the background or when called explicitly.
I lodged an issue on Github but Microsoft are not responding ...
0
votes
0
answers
65
views
What is the best way to compile Python code to WASI?
I have a Python script that reads a file from a path. For what I know, compiling the script to WebAssembly will require to make use of WASI, as the script needs to access system calls to read the file....
0
votes
0
answers
46
views
Read/write stdin/stdout of a WASI module in Node
Node's experimental WASI interface seems to support stdin & stdout, however instead of returning some kind of streams (WritableStream / ReadableStream seem like the obvious choice), you have to ...
1
vote
0
answers
104
views
Error loading WASM module: [TypeError: WebAssembly.instantiate(): Import #0 module="go" error: module is not an object or function]
Hey guys i stuck on try to pass connection from nodejs to wasm. i successfully deploy it using "node server.js" it open on localhost port 8080. but when i want to test the result
this is the ...
0
votes
0
answers
139
views
Compile clang into WASM using WASI-SDK
I'm trying to compile "clang" and "lld" into web assembly with the WASI-SDK 21.0 as my system root directory. I got build errors while compiling but I cannot resolve them properly.
...
0
votes
0
answers
22
views
WAMR: relocation truncated to fit' when build with pthread library
I am trying to compile WAMR with pthread library on zephyr os.
I used the command in the root of my project:
west build . -b qemu_cortex_a53 -p always -- -DWAMR_BUILD_LIB_PTHREAD=1 -DWAMR_BUILD_TARGET=...
1
vote
0
answers
135
views
golang wasm:Remove the content of golang compilation wasm import wasi_snapshot_preview1
When I use Golang to compile into wasm, (import "wasi_snapshot_preview1" "fd_write" (func $runtime.fd_write (type 2))) will be introduced, but the environment running wasm does not ...
2
votes
0
answers
76
views
Would it be possible to run a Blazor server app with WASI?
I know that WASI is still experimental in Dotnet, but would it be possible to run a Blazor server app with WASI ?
I tried to add the wasi-wasm tag in the project file and adding the wasi-experimental ...
0
votes
0
answers
132
views
WASI interface in wasmtime-dotnet print to stdout
I'm trying to use the WASI interface in wasmtime-dotnet
. I am trying to print to stdout. - I also want to read input and so on. Here's the WebAssembly Text (wat) code that I'm using for testing:
(...