An open API service indexing awesome lists of open source software.

https://github.com/fibo/hello-webassembly

is a pretty simple ‘hello world’ WebAssembly module (in WAT format)
https://github.com/fibo/hello-webassembly

webassembly

Last synced: 8 months ago
JSON representation

is a pretty simple ‘hello world’ WebAssembly module (in WAT format)

Awesome Lists containing this project

README

          

# hello-WebAssembly

> is a pretty simple ‘hello world’ WebAssembly module (in WAT format)

## Instructions

Compile *the-answer.wat* file to *the-answer.wasm*.

```bash
$ node wat2wasm.js
```

Run WebAssembly module: it will print 42, [the answer](https://www.youtube.com/watch?v=aboZctrHfK8).

```bash
$ node run.js
42
```

## Credits

Code from [Writing WebAssembly By Hand](http://blog.scottlogic.com/2018/04/26/webassembly-by-hand.html) article.