Skip to content
Encoding the WASM binary format.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib Clean up documentation Feb 22, 2019
test Reduce package to encoding and improve it. Aug 12, 2018
.gitignore Reduce package to encoding and improve it. Aug 12, 2018
LICENSE Add LICENSE file Sep 30, 2017
README.md Clean up the documentation more. Feb 22, 2019
mix.exs Clean up documentation Feb 22, 2019
mix.lock Clean up documentation Feb 22, 2019

README.md

elixir-wasm

Functions and types for encoding WebAssembly.

For more information, see the WebAssembly spec, the Binary section, and the types documented for this module.

Scope

This module does not compile Elixir to WebAssembly, it lets Elixir encode a WebAssembly module using tuples of instructions.

Please see ElixirScript, where Elixir will eventually compile to WebAssembly using this module.

Documentation

See the Hexdocs.

Testing

The tests compare Elixir-compiled WASM and WAT-compiled WASM using the command wat2wasm (from the WebAssembly Binary Toolkit), so this needs to be installed or else the tests will fail.

After the tests, you can inspect the binaries at _build/test/*.wasm with wasm2wat, hexdump, etc.

You can’t perform that action at this time.