Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
146 views

How do I make an outbound TLS connection (not HTTPS) from within WASM in Rust? Using WASI of course (not inside a browser). I've tried tokio_native_tls and rustls. Both fail to compile, saying that ...
AltF4's user avatar
  • 71
0 votes
1 answer
439 views

I am trying to load a wasm-component I wrote as a plugin in my rust app. Project is made of two main parts app and add: app contains the host application, add contains the plugin. The add plugin is ...
Francesco's user avatar
  • 1,857
1 vote
0 answers
136 views

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='...
sammyne's user avatar
  • 121
1 vote
1 answer
104 views

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 ...
Ali Qanbari's user avatar
  • 3,131
0 votes
1 answer
155 views

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 ...
Joshua Aruokhai's user avatar
1 vote
1 answer
156 views

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....
Nuno Lima's user avatar
1 vote
0 answers
236 views

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 ...
Abel's user avatar
  • 51
2 votes
1 answer
740 views

I'm trying out Go's newly added support for the WebAssembly System Interface (WASI). I'm attempting to access OS resources, such as the file system. package main import "os" func main() { ...
OptimusePrime's user avatar
2 votes
0 answers
139 views

Am trying to build a simple go file, with the following contents: package main import ( _ "embed" "fmt" "log" "github.com/mattn/gowasmer" ) //...
nigel239's user avatar
  • 1,925
1 vote
1 answer
747 views

How to produce single WASM file using .NET WASI SDK? Here is my project file <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net8.0</TargetFramework&...
codevision's user avatar
  • 5,620
4 votes
0 answers
598 views

I transfer a wasi-wasm to C file via wasm2c. wasm2c test.wasm -o test.c And I got a header file and a source C file. Part of the header file shows here. /* import: 'wasi_snapshot_preview1' 'args_get' ...
Dbettkk's user avatar
  • 113
0 votes
1 answer
2k views

The following short c example uses the standard c library and therefore requires the wasi sdk: #include <stdio.h> int main(void) { puts("Hello"); return 0; } When compiling ...
Konrad's user avatar
  • 107
3 votes
0 answers
106 views

I am exploring standalone WASM/WASI runtimes like Wasmtime/Wasmer and I am wondering where can I find up-to-date information regarding their current implementation of the WASI proposals? I tried their ...
geeko's user avatar
  • 2,912
1 vote
0 answers
200 views

I'm trying to follow a WASI-tutorial but all I'm getting are errors. I'm currently using wasmtime-cli version 1.0.0, and clang 14.0.0. The tutorial has 3 simple steps. save sample code to demo.c. ...
J'e's user avatar
  • 3,886
3 votes
0 answers
408 views

Is it possible to use .witx definition files for Go code generation to use with TinyGo's WebAssembly WASI (WebAssembly System Interface) support? Specifically, I want to create a Fastly Compute@Edge ...
Grokify's user avatar
  • 16.5k
1 vote
2 answers
753 views

In the NodeJS docs it states the following: The WASI API provides an implementation of the WebAssembly System Interface specification. WASI gives sandboxed WebAssembly applications access to the ...
Mytch's user avatar
  • 400
0 votes
1 answer
408 views

I am trying to compile C++ code to wasm and then embed it in other C++ code with wee8 (v8's wasm-api). Currently I'm getting a Segfault on instantiating the module: auto instance = wasm::Instance::...
talz's user avatar
  • 1,250
2 votes
1 answer
1k views

There is awesome webassembly compiler&vm named Wasmtime, which provide support for execution without any kind of embedding, which allows run WASM applications direcly from command line https://...
Vladislav Ihost's user avatar
0 votes
1 answer
915 views

I am building a Webassembly runtime and am currently implementing the WASI APIs. I'm wondering how the ABI looks like, according to this document: https://github.com/WebAssembly/WASI/blob/main/phases/...
Hellstorm's user avatar
  • 680
3 votes
0 answers
947 views

My question is if the JVM actually provides a virtual operating system too, similar to how WASI does. As for my understand WASM and JVM are both virtual machines, providing an environment to execute ...
prohit's user avatar
  • 737
1 vote
1 answer
5k views

I would like to debug using messages to the console.log. We have a rust wasm32-wasi function being called from javascript running in nodejs. We can not use ssvm/ssvmup due to other restrictions. Is ...
Frank C.'s user avatar
  • 8,185
1 vote
1 answer
2k views

As I know, WASI gives sand-boxed WebAssembly applications access to the underlying operating system and also Emscripten FS provides several file systems such, NODEFS. My question is both WASI and ...
Asanka's user avatar
  • 628
0 votes
1 answer
47 views

I've got REST service written in C++/Qt 5.15.x. Under some URL REST service sends WASM stuff. It's a GUI application (REST client) written in C++/Qt 5.15.x. It is possible to embed some function which ...
ilya's user avatar
  • 1,143
9 votes
1 answer
5k views

I know both Clang (by use target=wasm32) and Emscripten can compile C code into WebAssembly, but how are they different? It looks like they both use LLVM as the backend. Actually, I do not even quite ...
yeehaw's user avatar
  • 319
0 votes
2 answers
2k views

I'm trying to call a WASI function (fd_write) directly in a C program using wasi-sdk. This is the the library (lib.c): #include <stdint.h> struct Ciovec { uint8_t *buf; uint32_t buf_len;...
osa1's user avatar
  • 7,157