This repository was archived by the owner on May 11, 2020. It is now read-only.
This repository was archived by the owner on May 11, 2020. It is now read-only.
need usage examples #60
Open
Description
Hi folks,
I've found this project while looking for a Go wasm interpreter that I can use as a library. It seems awesome, but I've got to say that I'm a bit at a loss about how I am supposed to use it. I've perused the tests in the repo some, but it wasn't enough for me. This is partially because I'm new to wasm too.
If it's not too much trouble, I would kindly ask for some guidance/example around:
- How would I go about producing "compatible" wasm files from a high-level language? validate: could not validate a simple program #36 suggests that the current go compiler targeting the wasm arch does not work for some reason. How have y'all produced the testdata files / what is known to work? Any hand-holding would be gold.
- How would I pass data (input args of different types, say) into a (function from a) loaded module?
- I see that recently support for calling Go functions provided by the host binary has been added. I've tried parsing the test case added, but the interesting bit - calling the exposed function from wasm - seems to be hidden inside a binary blob. Any example of both the wasm side calling the host function and the go side providing the function together would be, again, gold.
I'm interested in playing around with wagon for prototyping wasm user-defined functions in a SQL database - CockroachDB.
Thanks!
Metadata
Metadata
Assignees
Labels
No labels