Why WebAssembly (WASM) is the Future of High-Performance Web Apps (dev.to)
from cm0002@lemmy.world to programming@programming.dev on 11 Feb 15:35
https://lemmy.world/post/25439153

#programming

threaded - newest

Deckweiss@lemmy.world on 11 Feb 16:13 next collapse

To answer the headline question:

  • because wasm fast

(the rest of the points are debatable)

tomalley8342@lemmy.world on 11 Feb 18:19 next collapse

It’s also a compiled blob, which is wonderful news if you were developing closed source software. You don’t have to work around javascript with pesky obfuscation tricks to protect your intellectual property anymore! ♥️

Deckweiss@lemmy.world on 11 Feb 22:01 collapse

Every program is “open” source if you know how to use a decompiler.

OnfireNFS@lemmy.world on 12 Feb 18:54 next collapse

WASM in the browser is cool but I think WASI is going to be the big game charger to come out of WASM

xoggy@programming.dev on 14 Feb 21:59 collapse

the future of complex web apps*

I can see in-browser games and containerized desktop application benefiting from wasm, but simple ecommerce sites without all the fluff can be just as performant with SSR or a multi-page application. For instance several years ago I built the frontend and middleware for the Hart Tools and Ryobi Tools websites using Nuxt for SSR and Algolia for the search. Images are the majority of CPU and network load and the websites are snappy as a result. Even this tech stack is overkill for what the websites need to do but my point is for general use case this or a similar tech stack won’t benefit from introducing wasm.