Replies: 4 comments
-
interpreter works fine. go binding is lack of maintenance for a while. Please feel free to contribute. |
Beta Was this translation helpful? Give feedback.
-
Hi @benozol thanks for paying attention to WAMR's go language binding:
We are not familiar with how to publish the the go package, per my understanding, we should put the header and binary files under a specify folder, for example:
and in go.mod, add "module github.com/bytecodealliance/wasm-micro-runtime/language-bindings/go", right?
Yes, but many C APIs have been supported, it can meet a lot of requirements. You can add more if needed, and open issue in community for help if needed.
It wasn't updated, but the samples work fine.
Please cd samples and run Call func `i32 fib2(i32)` with CallFunc:
fib2(32) return: 3524578
Call func `void test1(i32, i64, f32, f64)` with CallFuncV:
i32: 12345678, i64: 3344556677889900, f32: 5678.123535, f64: 987654321.567800
Call func `i64 test2(i64, i64)` with CallFuncV:
3344556677889900 + 1122331122110099 = 4466887799999999
test2(3344556677889900, 1122331122110099) return: 4466887799999999 Note that the result is gotten and dumped after calling some functions. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your reply, that's reassuring! I will try the bindings in our use case.
Yes, that's my understanding
Great, I will check what went wrong on my side |
Beta Was this translation helpful? Give feedback.
-
Figured out why my test wasn't working: |
Beta Was this translation helpful? Give feedback.
-
wasm-micro-runtime
provides bindings for the Go language, but it seems that they are currently not in focus of the development:go.mod
doesn't match the organization, which makesgo get
choke on it,Because we are currently looking for a Wasm interpreter (not JIT) in Go, I would like to inquire about the current plans for these bindings. Are there updates planned? Which target platforms will be supported? Will the
wamr
interpreter mode become available? Or does is just depend on external contributions?Beta Was this translation helpful? Give feedback.
All reactions