This is a specification for Shared Memory and Atomics for ECMAScript, a proposal submitted to Ecma TC39 and currently at Stage 2 in the ECMAScript approval process.
- Formatted specification
- Simple tutorial introduction
- Demo programs and other examples
- Frequently asked questions
- High-level design issues, cross-cutting concerns, security concerns, etc
- Slide decks for presentations given to Ecma TC39:
- asm.js companion specification
Both Firefox and Chrome ship with prototype implementations of the proposal; these are largely compatible.
- The feature is enabled by default in Firefox Nightly; starting with Firefox 46, users of Developer Edition, Aurora, Beta, and Release can visit
about:config
and set the optionjavascript.options.shared_memory
totrue
. - The feature is off by default in Chrome, but can be enabled by passing the command line options
--js-flags=--harmony-sharedarraybuffer
and--enable-blink-feature=SharedArrayBuffer
. (Known to work in Chrome 48.)
The sources for the specs are in the tc39/ subdirectory and the formatted versions are generated with the format.sh
script.