wasm-futures-executor
coi-serviceworker
wasm-futures-executor | coi-serviceworker | |
---|---|---|
3 | 2 | |
29 | 296 | |
- | - | |
0.0 | 6.1 | |
almost 2 years ago | 5 months ago | |
Rust | JavaScript | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
wasm-futures-executor
-
How to enable Bulk Memory Operations when compiling to WebAssembly?
RUSTFLAGS='-C target-feature=+bulk-memory' should work according to the readme of https://github.com/wngr/wasm-futures-executor
-
Threading for WASM target
I recommend using it through the wasm-futures-executor crate: https://github.com/wngr/wasm-futures-executor.
-
Web Crypto API
By the way, I built something similar (?): A Rust library that mimics the API of the `futures-executor` crate, but each worker thread is a single WebWorker.
https://github.com/wngr/wasm-futures-executor
coi-serviceworker
-
Future of Godot 4 Web Export
try https://github.com/gzuidhof/coi-serviceworker i haven't tested myself but it might work
-
Threading for WASM target
Note that certain secure context headers need to be set for wasm multithreading to work. You could do this in your web server, but a more portable solution is to use a service worker for this: https://github.com/gzuidhof/coi-serviceworker
What are some alternatives?
wireworld-player - A multithreaded web app for loading and simulating instances of the Wireworld cellular automaton
yew - Rust / Wasm framework for creating reliable and efficient web applications
worktank - A simple isomorphic library for executing functions inside WebWorkers or Node Threads pools.
pasts - Minimal and simpler alternative to the futures crate.
worktank-loader - WebPack plugin for WorkTank which enables you to execute whole files in a worker pool, transparently.
objectbuffer - JavaScript Object like api, backed by an arraybuffer
comlink - Comlink makes WebWorkers enjoyable.
rinzler - An autonomous parallel processing engine for the browser.
scalable-concurrent-containers - High performance containers and utilities for concurrent and asynchronous programming