WasmEdge-go icon indicating copy to clipboard operation
WasmEdge-go copied to clipboard

Examples for calling languages other than Rust and TinyGo?

Open purplefox opened this issue 10 months ago • 1 comments

I've been trying to get WasmEdge to be able to invoke a WASM function compiled in AssemblyScript. I can get it to work by passing simple types (int32, int64) but trying to get it to work with more complex types (e.g. string) is more difficult.

As I understand it the memory for the string argument would need to be allocated/deallocated from within the compiled AssemblyScript - I see this technique is used for the Rust/GoLang examples, but its not clear to me what those allocate/deallocate functions would look like for AssemblyScript, or for other languages (e.g. Python? Java?). Do you have any plans to create some examples for languages other then GoLang and Rust?

purplefox avatar Apr 30 '24 12:04 purplefox