objectbuffer
proposal-atomics-wait-async
objectbuffer | proposal-atomics-wait-async | |
---|---|---|
4 | 1 | |
163 | 85 | |
- | - | |
2.9 | 0.0 | |
8 days ago | about 2 years ago | |
TypeScript | HTML | |
MIT License | GNU General Public License v3.0 or later |
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.
objectbuffer
-
JavaScript APIs You Don’t Know About
is a great example, which I also tried to (poorly) reimplement myself.
It creates a new data structures that behave as an object for the user but is backed by SharedArrayBuffer in order to support parallel computation over it.
- [0]: https://github.com/Bnaya/objectbuffer
- Web Crypto API
-
isoworker - universal multithreading with main-thread dependencies, 6kB
There is a lot of complexity involved in representing arbitrary javascript objects inside an ArrayBuffer whilst making them thread-safe. I'd first point to a library like objectbuffer. There's also more fixed struct-like options such as Google's FlatBuffers or buffer-backed-object.
proposal-atomics-wait-async
-
isoworker - universal multithreading with main-thread dependencies, 6kB
The new stage-3 Atomics.waitAsync proposal shipping in Chrome is worth a look for polling/signalling and the proposal has a fallback polyfill in terms of the current Atomics.wait
What are some alternatives?
d2-checklist - Source for www.d2checklist.com, written in Angular and using the Bungie API
comlink - Comlink makes WebWorkers enjoyable.
isoworker - Isomorphic workerization with context support
worktank-loader - WebPack plugin for WorkTank which enables you to execute whole files in a worker pool, transparently.
zip.js - JavaScript library to zip and unzip files supporting multi-core compression, compression streams, zip64, split files and encryption.
worktank - A simple isomorphic library for executing functions inside WebWorkers or Node Threads pools.
taskwork - Efficient multi-threaded task scheduler using generic re-usable WebWorkers.
wasm-futures-executor - Executor for asynchronous task based on wasm web workers.
rinzler - An autonomous parallel processing engine for the browser.
wireworld-player - A multithreaded web app for loading and simulating instances of the Wireworld cellular automaton