Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jayphelps/wasm-anyref-demo
Playing around with WebAssembly (Wasm) anyref using JavaScript's GC as the allocator
https://github.com/jayphelps/wasm-anyref-demo
Last synced: 16 days ago
JSON representation
Playing around with WebAssembly (Wasm) anyref using JavaScript's GC as the allocator
- Host: GitHub
- URL: https://github.com/jayphelps/wasm-anyref-demo
- Owner: jayphelps
- License: mit
- Created: 2019-08-04T06:47:21.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-04T05:57:44.000Z (about 2 years ago)
- Last Synced: 2024-10-19T17:58:24.213Z (3 months ago)
- Language: WebAssembly
- Size: 69.3 KB
- Stars: 21
- Watchers: 4
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wasm-anyref-demo
**Requires a fairly recent Node.js version with support for `--experimental-wasm-anyref`. I'm not sure which version off hand, but I'm using v12.7.0**
This is a (relatively speaking) simple demo of using JavaScript's Garbage Collector as the sole heap allocator for a WebAssembly (Wasm) module.
If this is interesting to a number of folks I might take time to explain more about it, as it does require some understanding of a lot of things, but I did include a few comments.
Performance is probably the biggest issue with this approach, but that's known and proposals in the W3C WebAssembly Community Group will fix them eventually.
```bash
npm install
npm start
```