@oligami/browser_wasi_shim-threads
v0.1.0
Published
A pure javascript shim for WASI with support for threads
Downloads
65
Maintainers
Readme
A pure javascript shim for WASI Preview 1 threads
[!WARNING] The code in this directory is less production ready than the main browser_wasi_shim code. This code requires
SharedArrayBuffer
,waitAsync
andAtomics
to be enabled in the browser, so it may not work in all browsers. For example, Firefox failed to run the demo in this directory. Chrome worked fine. This library requirecross-origin isolation
to be enabled in the browser.
This project implement threads on browser_wasi_shim
Features
- [x] thread creation
- [x] Filesystem wrapper accessible by multiple workers
- [ ] thread pool
Building
$ npm install
$ npm run build
Running the demo
$ git submodule update --init
$ cd examples && npm install && npm run dev
And visit http://localhost