SIMD For JavaScript Continues Coming Along
Written by Michael Larabel in Mozilla on 30 October 2014 at 12:30 PM EDT. 21 Comments
MOZILLA --
SIMD for JavaScript continues to be worked on by Mozilla, Google, Intel, and others for better accelerating particular workloads in the web.

SIMD.js is the API being worked on for Single Instruction Multiple Data that in turn will use SSE on x86 platforms, NEON on ARM, etc. As described today in a new Mozilla Hacks blog post, "SIMD.js is a new API being developed by Intel, Google, and Mozilla for JavaScript which introduces several new types and functions for doing SIMD computations. For example, the Float32x4 type represents 4 float32 values packed up together. The API contains functions to operate on those values together, including all the basic arithmetic operations, and operations to rearrange, load, and store such values. The intent is for browsers to implement this API directly, and provide optimized implementations that make use of SIMD instructions in the underlying hardware."

SIMD.js is currently supported in Firefox Nightly, there's a prototype implementation branch for Chromium, and it's currently under consideration for Microsoft's Internet Explorer. Those interested in more information on SIMD.js should check out the aforelinked blog post for plenty more details along with links to example code.

About The Author
Author picture

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter or contacted via MichaelLarabel.com.

Related Mozilla News
Popular News This Week