4 ms·
I agree with your first sentence, although I believe that niche is really small, so I am entirely unconvinced as to the benefits of WASM. I am an author of a l
by jwr 3y ago
I agree with your first sentence, although I believe that niche is really small, so I am entirely unconvinced as to the benefits of WASM.
I am an author of a large ClojureScript app, which sometimes does need to do intensive computation. In my experience, the performance of compiled ClojureScript (it uses the Google Closure compiler in "advanced" mode, so the code is really optimized) is not a problem at all. What is a major issue is DOM manipulation: any time you touch the DOM, you run into slowdowns of two orders of magnitude. And that can't be magically waved away by WASM.
In my case, if I had a ClojureScript->WASM compiler, it would likely provide me with an overall perceptible app performance gain in the 5%-10% range, while introducing a whole range of interesting bugs and issues. Not something I'd like to use.