Menu

1 / 9

The last mile of a long road: faster NumPy in the browser

Hacker News·about 1 month ago
#JKKurMMf
#notebook#numpy#webassembly#openblas#fortran
Reading 0:00
15s threshold

For a long time, running NumPy in the browser meant running it without an accelerated BLAS. Matrix multiplications fell back to plain loops (portable, but blind to cache and SIMD).

That just changed. The Emscripten-forge NumPy package now links OpenBLAS in WebAssembly, and at n = 1024 square np.matmul jumps to about 30.92× faster ( float32 ) and 14.90× faster ( float64 ). The next OpenBLAS release, already available as an experimental package on Emscripten-forge, with kernels contributed by QuantStack, pushes it further, and an optional Relaxed SIMD build adds another step on engines that support it.

What is Emscripten-forge? ​

Emscripten-forge is a software distribution for WebAssembly.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.