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)
- Host: GitHub
- URL: https://github.com/fibo/hello-webassembly
- Owner: fibo
- Created: 2018-05-08T10:32:52.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-08T16:18:27.000Z (about 8 years ago)
- Last Synced: 2025-02-22T06:43:42.907Z (over 1 year ago)
- Topics: webassembly
- Language: JavaScript
- Size: 2.93 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.