Home

Awesome

CircleCI

windtrap

A WASM VM written in Elixir

Installation

TODO

Usage

iEx

Start iex with mix:

$ iex -S mix

Then decode a file, e.g. file.wasm:

Windrap.decode_file("file.wasm")

To execute a file, e.g. file.wasm:

module = Windtrap.decode_file("file.wasm") |> Windtrap.load_module
vm = Windtrap.VM.new([], 0, module)
  |> Windtrap.VM.exec

the parameters to Windtrap.VM.new are:

It is possible to pass Windtrap.load_module a hash map for module resolution:

TODO

Debugging WASM code

TODO

TODO