Re:WebAssembly: Mozilla Won
by roca on Thursday June 01, 2017 @08:09AM
(#14459576)
That's not really true. With JS glue code (including many libraries already written) Wasm modules can access anything JS can do. E.g. there are Wasm demos showing access to WebGL2, audio generation, camera/microphone, HTTP, storage, gamepads, ...
[ Parent
| on HN ]
> E.g. there are Wasm demos showing access to WebGL2, audio generation, camera/microphone, HTTP, storage, gamepads, ...
All web API. nothing a Javascript app in the browser can't do.
Re:WebAssembly: Mozilla Won
by livingparadox on Thursday June 01, 2017 @12:48PM
(#14461946)
That's the point. a WASM app has access to the same Web APIs that JS does, for the most part. This was in response to the claim that WASM only gets to work off of a limited api, not an argument as to why WASM is an improvement over JS.
Re:WebAssembly: Mozilla Won
by TremendousJudge on Thursday June 01, 2017 @11:57AM
(#14461390)
>nothing a Javascript app in the browser can't do.
not being written in Javascript is a great advantage
Re:WebAssembly: Mozilla Won
by TazeTSchnitzel on Thursday June 01, 2017 @08:22AM
(#14459639)
You have the full Web API, yes, but it's limited compared to native, although sure, it's nonetheless very capable.