wasmtime-go
wasmtime-go copied to clipboard
Go WebAssembly runtime powered by Wasmtime
Hi, I made a simple POC to integrate wasmtime-go into gVisor. Please see the following link as reference: https://github.com/google/gvisor/issues/5811 gVisor is a user space kernel. Integrating wasmtime-go into gVisor has...
I saw that I cannot easily convert the string `path` in `SetStdoutFile(path string)` to the `io.ReadWriter` on wasmtime-go, so this is a suggestion to wasmtime. `io.ReadWriter` is an interface which...
I think a dynamic library version should be provided to support some users, because static libraries may cause symbol redefinition conflicts, what do you think? @alexcrichton
close #147
I got a strange error when using libwasmtime.dylib on macos: 2022-09-12 23:25:39,764 [ERROR] [wasmtime][instance] Start fail to new wasmtimego instance, err: unknown import: `wasi_snapshot_preview1::fd_write` has not been defined
According to this discussion https://forum.golangbridge.org/t/curious-about-runtime-keepalive-usage/3530, some common scenarios that need to call `runtime.KeepAlive()` is 1. you have obtained the file descriptor to an underlying os.File. 2. you have passed memory...
Missing V15 features.component_model in config. Where can I find component_model, thanks for the tip.
Hello! In my project I need to monitor memory usage **inside** the Wasm VM's store. Is there a corresponding API to do this? Thank you.
In memory.go: ``` func (mem *Memory) UnsafeData(store Storelike) []byte { // see https://github.com/golang/go/wiki/cgo#turning-c-arrays-into-go-slices const MaxLen = 1 = MaxLen { panic("memory is too big") } return (*[MaxLen]byte)(mem.Data(store))[:length:length] } ``` The...