5 ms·
It gets you very close to native performance while running in your browser and browser sandbox. That's mind-blowing. You'd still use JS for UI stuff, but WASM
by eat_veggies 9y ago
It gets you very close to native performance while running in your browser and browser sandbox. That's mind-blowing.
You'd still use JS for UI stuff, but WASM lets you run algorithmic or CPU intensive tasks like e.g. games, video decoding, image resizing, AI, or anything else you need fast performance for client-side.
- FridgeSeal 9y agoThere was a demo the other day of Rust outperforming JS for stuff JS usually does. Presumably this will continue to improve, so it won't even be a case of equivalent, it'll be a case of "thoroughly beats the pants off".
- kqr 9y ago"Very close to native" means "much more efficient than JS", because JS is nowhere near native. (Have we really gone so far that people hear "native" and think of the browser? Like the web browser is the machine we target, and not the metal box the end user purchased?)
- stochastic_monk 9y agoIs it pretty easy to write C++ extensions to V8? I've seen a couple of projects of that sort. I wonder if they're relatively difficult, and if that's perhaps why the push for WebAssembly has been so strong.