WebAssembly (Wasm) Stack Machine on BEAM

Has anyone looked at implementing a Wasm stack machine on BEAM?

We have recently added a WASM port of AtomVM that is still in alpha stage and could use testing and feedback.

The project is on GitHub:

Here are the docs for getting started with the WASM port:

https://www.atomvm.net/doc/v0.6.0-alpha.1/getting-started-guide.html#getting-started-with-atomvm-webassembly-port-for-browsers

1 Like

That is upside down from what I was asking about but quite interesting none the less.

Sorry, I had a funny feeling as soon as I posted that I had your question backwards. :face_with_peeking_eye:

I’m also not asking about interfacing to Wasmtime or other external Wasm runtime. I’m wondering how feasible it would be to implement the Wasm stack machine over the BEAM register machine. I assume that the result wouldn’t be performant but it might be useful for portability of simple functions.