Orb icon indicating copy to clipboard operation
Orb copied to clipboard

Compile to `.wasm`

Open RoyalIcing opened this issue 1 year ago • 1 comments

Currently Orb only outputs WebAssembly text format (.wat). This can run in some libraries like wasmex or be converted using wat2wasm but it would be best to output .wasm directly.

This would involve adding a Orb.ToWasm protocol to pair with the existing Orb.ToWat one, and a boat load of integration tests.


Status

There are 33 defimpl of Orb.ToWat, and 14 defimpl of Orb.ToWasm

  • [ ] 14/33

RoyalIcing avatar Jan 28 '24 06:01 RoyalIcing

Lo has a really easy to follow wasm outputter: https://github.com/glebbash/LO/blob/60b80d1b325136ce1ceaf4dc12073b7faaceb853/src/wasm.rs

RoyalIcing avatar May 27 '24 00:05 RoyalIcing