For AI agents: the complete documentation index is available at /tc39-atlas/en/llms.txt, the full documentation bundle is available at /tc39-atlas/en/llms-full.txt, and this page is available as Markdown at /tc39-atlas/en/proposals/year/pending/simd-js-simd-apis.md.
  • English
  • SIMD.JS - SIMD APIs ?

    Proposal details
    Proposal overview

    This proposal introduced SIMD APIs for JavaScript, allowing vectorized operations on packed data types for performance.js operations. The repository remains as a historical snapshot including documentation, a polyfill, tests, and benchmark examples.

    Note

    The README below comes from the upstream repository and may contain outdated stage or status metadata. Use the proposal details above as the current source of truth.

    SIMD.js

    ===============

    SIMD.js has been taken out of active development in TC39 and removed from Stage 3, and is not being pursued by web browsers for implementation. SIMD operations exposed to the web are under active development within WebAssembly, with operations based on the SIMD.js operations. With WebAssembly in advanced development or shipping in multiple browsers, it seems like an adequate vehicle to subsume asm.js use cases, which are judged to be the broader cases. Although some developers have expressed interest in using SIMD.js outside of asm.js, implementers have found that implementing and optimizing for this case reliably creates a lot of complexity, and have made the decision to focus instead on delivering WebAssembly and SIMD instructions in WASM.

    See https://github.com/WebAssembly/simd for current development.

    This repository retains a historical snapshot of the SIMD.js specification work:

    • The authoritative API reference documentation is generated from tc39/spec.html. You can view a rendered copy at http://tc39.github.io/ecmascript_simd/ .
    • A polyfill at src/ecmascript_simd.js, which can't implement value semantics, but includes a correct implementation of all functions
    • Extensive tests at src/ecmascript_simd_tests.js, which can be run using other files in src/. Benchmarks and example code live in the same directory.
    • A presentation explaining the motivation and outlining the approach at tc39/SIMD-128 TC-39.pdf