News for hackers. Stuff that matters.
Re:Wasmer 2.0 by Hywan on Friday June 18, 2021 @04:26AM (#27548457)
WebAssembly only supports i32, i64, f32, and f64 for the moment. So you need to allocate the string manually inside the Wasm memory, then pass the pointer of that string to the Wasm function.

I will add an example to showcase that, many people are asking this :-).

Re:Wasmer 2.0 by irq-1 on Friday June 18, 2021 @02:41PM (#27553479)
Thanks for your work on wasmer-go.

Would it be possible to make go functions that wrap string passing, and add them to the go api? Is freeing the memory manually inside the wasm vm something that can be delegated to the vm?

Re:Wasmer 2.0 by rad_gruchalski on Sunday June 20, 2021 @12:06PM (#27571384)
This would be awesome! Thank you.