|
|
|
|
|
by flohofwoe
1151 days ago
|
|
> performance should not be the reason you choose to make your web application with WASM This I can mostly agree with, but it's a slightly different take than "JS is faster than WASM" though ;) The marshalling for 'non-trivial types' (like strings or data structures) can indeed be a performance problem, but quite often one can get away with just passing numbers between the JS and WASM side. I'm actually a bit disappointed that WebGPU turned out so 'object-oriented' (e.g. most WebGPU objects are actual Javascript objects instead of 'number-handles'), which means that a lookup-table needs to be maintained on the JS side (I think that's what the externref proposal is supposed to solve). |
|