second-state / WasmEdge-go

The GO language SDK and API for WasmEdge
https://www.secondstate.io/articles/extend-golang-app-with-webassembly-rust/
Apache License 2.0
107 stars 16 forks source link

v1.14.0 #47

Open hiroshi opened 2 weeks ago

hiroshi commented 2 weeks ago

https://github.com/WasmEdge/WasmEdge/releases/tag/0.14.0 is released (2024-05-24).

How do I get wasmedge-go v0.14.0?

hiroshi commented 2 weeks ago

As first try, using latest version of wasmedge-go 0.13.4 with wasmedge 0.14.0.

I got following error

# github.com/second-state/WasmEdge-go/wasmedge                                                                                 
cgo-dwarf-inference:4:17: error: 'WasmEdge_ValType' defined as wrong kind of tag                                               

I found WasmEdge_ValType in https://github.com/WasmEdge/WasmEdge/releases/tag/0.14.0

New WasmEdge_ValType structure for replacing enum WasmEdge_ValType. ....

To fix this issue, I may need master HEAD of Wasmedge-go instead of 0.13.4, with github.com/second-state/WasmEdge-go@master, but no lack...

I'll post update if I get some progress... thanks.

hydai commented 2 weeks ago

Hi @hiroshi Thanks for this issue. The WasmEdge-go is not yet up-to-date with 0.14.0. If you are interested in using Go SDK, you can try to downgrade to 0.13 or try to upgrade the codebase to 0.14.0. Thanks.

hiroshi commented 2 weeks ago

I'm trying to use wasmedge-quickjs with wasmedge-go. When I tried quickjs with wasmedge CLI 0.13, the fetch API is very slow or timed out, but it solved since I updated wasmedge to 0.14 as I recall.

I do same with version 0.13.4 of wasmedge-go and wasmedge, got same result.

I'll try to solve this problem. Thanks.