Simd
ES7 (proposed) SIMD numeric type shim/polyfill
Install / Use
/learn @ljharb/SimdREADME
simd <sup>
</sup>
ES7 (proposed) SIMD numeric type shim/polyfill
128-bit SIMD numeric value type ECMAScript straw man proposal.
Source:
Nearly every word of this README and line of code and tests are taken directly from ecmascript_simd.
The purpose of this is to make it a require-able module, that does not automatically modify the global environment, for use in the es7-shim.
Requirements
The SIMD polyfill requires Typed Arrays to be present in the engine. A Typed Array polyfill can be found here - source is from here.
Usage:
var SIMD = require('simd');
var a = SIMD.float32x4(1.0, 2.0, 3.0, 4.0);
var b = SIMD.float32x4(5.0, 6.0, 7.0, 8.0);
var c = SIMD.float32x4.add(a,b);
assert.deepEqual(c, [6.0, 8.0, 10.0, 12.0]);
To install the shim in the global environment:
var simd = require('simd');
simd.shim();
assert.equal(SIMD, simd);
Introduction
Overview
Data Types
Related Skills
node-connect
345.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
104.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
345.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。


