JS is great for web interactivity. Browsers are highly optimised for this purpose.
WASM is good if your web app needs to do a lot of background compute on a non-blocking thread. It's not dead on arrival.
People just need to use the right tool for the job.
Login to reply
Replies (2)
The first Nostr client I built, Blockcore Notes, utilized Web Workers, which allows you to do non-blocking background workers simply with JS. It's pretty sweet to work with. WASM has some use case of course, but the dream did not pan out. I was excited for WASI to replace Node.js and execution on edge compute, but never panned out.
Yes web workers are great for that but languages like Rust & C++ are so much faster. If you have something that is slow to compute in JS, WASM will be faster.