Unable to generate target.wasm for wasmer-c-api example.
I'm trying to run https://github.com/wasmerio/wasmer-c-api with a generated wasm file. When using the provided target.wasm file, it runs perfectly, however if I try to generate it myself using emscripten, I receive a compilation error. I'm using the same command as the one…
Wasmer compiler backends and performance target?
Hi everyone, (I hope this is also an appropriate forum for Wasmer development questions.) What's the plan with Wasmer's different compiler backends? Are you guys planning tiered compilation, for example, to combine them? Is the deployment model in Wasmer just-in-time or…
Determining unoccupied memory
Im trying to pass a pointer to a struct that will be allocated in the WASM memory of the context (ctx.memory()). I'm aware I can write in the memory however I cannot determine whether there are memory that is free an available to be written to. I can see that theres a function…
How use wasmer to run my existing code?
Hey, I have a wasm code which is generated for my rust code. Now I wan't use wasmer to run my code in runtime environment. Can I use wasmer run my_wasm.wasm command directly? Or the restructure of my rust code is required as there in wasm-rust-example?? …
All the examples on the wasmer repo are really nice, but they are in rust. Thus, the examples use rust std lib functions. Unfortunately, I have to write functions in AssemblyScript that call wasi functions manually, and could use some help with figuring out which ones are needed…
The calls to wasm functions are slow
I've done some basic benchmarks and found that calls to wasm functions take around 300 nano seconds That's huge comparing this operation to a call from wasm vm to native which is just 5 nano seconds. Is there any way to improve the performance of calls?
Embedded Runtime with WASI
Hi, I'm trying to modify the plugin.rs example to run a module which reads a file file via WASI but when I run it I get a panic: "thread 'main' panicked at 'Call failed: WebAssembly trap occured during runtime: unknown', src/libcore/result.rs:999:5" …
how to pass a rust string to a wasm module
I'm trying to do the reverse of hello_wasm in wasm calling imported print_str provided in rust, I want to pass the string to the wasm function and send it back to print_str . I managed to make it compile declaring the wasm function rust pub extern "C" fn print_str_param(ptr:…