Maybe you don't need Rust and WASM to speed up your JS (mrale.ph)
from tedu@azorius.net to programming@azorius.net on 21 Sep 2023 18:58
https://azorius.net/g/programming/p/SskywvbYQkST2kdnV2-Maybe-you-dont-need-Rust-and-WASM-to-speed-up-yo

Few weeks ago I noticed a blog post “Oxidizing Source Maps with Rust and WebAssembly” making rounds on Twitter - talking about performance benefits of replacing plain JavaScript in the core of source-map library with a Rust version compiled to WebAssembly.

This post piqued my interest, not because I am a huge on either Rust or WASM, but rather because I am always curious about language features and optimizations missing in pure JavaScript to achieve similar performance characteristics.

So I checked out the library from GitHub and departed on a small performance investigation, which I am documenting here almost verbatim.

#javascript #jit #programming

threaded - newest