|
|
|
|
|
by GianFabien
99 days ago
|
|
I don't use WASM as a replacement for JS. I never have a need to manipulate DOM, etc from WASM. JS is perfectly fine and performant for those purposes. As I see it, WASM is used to augment the JS/WebAPI ecosystem. For example, when you need to do heavy bit manipulation, complex numerical processing. The round-trip JS->WASM->JS is an overhead. So the WASM modules should perform a substantial amount of processing to offset that inefficiency. I frequently find that V8 optimisations yield sufficient performance without needing to delve into WASM. IMHO if you want to write WebApps in Rust, you're holding it wrong. |
|