3 ms·
Actually WASM as it is right now will not help significantly with any of that. The main issue with javascript is that it is a script, so it has to be compiled b
by haburka 9y ago
Actually WASM as it is right now will not help significantly with any of that. The main issue with javascript is that it is a script, so it has to be compiled before it can be run. Therefore, for decent sized scripts, it can take up to 1-3 seconds to actually parse the damn thing. With WASM, you can send up compiled code which will reduce that initial load time.
If you tried to implement OpenGL in WASM, it would be incredibly slow and take a long time to load. You will always be constrained by the browser painting the DOM, or changing canvas, whatever. You can't display info to the user from javascript without modifying the DOM.