koute / polkavm

A fast and secure RISC-V based virtual machine
Apache License 2.0
244 stars 52 forks source link

how to use polkavm in wasm runtime? #111

Closed xlc closed 5 months ago

xlc commented 5 months ago

Looks like polkavm crate requires std. I want to run a PolkaVM program in wasm runtime. How can I do it?

koute commented 5 months ago

Ideally you'd use it through a host function, but that's still a long ways off, so in the meantime, here:

https://github.com/koute/polkavm/pull/112

This will run interpreter-only, but it should run. Just keep in mind that the interpreter is currently not particularly optimized yet.

xlc commented 5 months ago

cool. I got it the runtime compiles.