News for hackers. Stuff that matters.
Re:WebAssembly from Scratch: From FizzBuzz to DooM by flohofwoe on Thursday July 15, 2021 @06:51AM (#27843355)
It is "slow" relative to the overhead of calling from WASM into JS to manipulate the DOM from JS.

To be fair, I don't know how many clock cycles creating, destroying or modifying a DOM node costs on average, but most likely "a lot" compared to the overhead of a WASM to JS call because a lot more machinery is involved.

Re:WebAssembly from Scratch: From FizzBuzz to DooM by miohtama on Thursday July 15, 2021 @06:52PM (#27851042)
You are correct, today. But the overhead from WASM to JS is disappering with host binding, also known as WebAssembly Interface Types proposal.

https://www.chromestatus.com/feature/6219189974990848