Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> You cannot access the browser APIs from WASM

Do you have a reference? I'm confused about why you wouldn't want to access browser APIs.



The high level goals of WASM do include access to browser APIs, but the MVP version that is being implemented now, does not yet allow it: https://github.com/WebAssembly/design/blob/master/JS.md

WASM code can call external functions defined per module, and the external code can be JS code that interacts with browser APIs. So indirect use of browser APIs is possible.


Right now it's more like Flash or Java applets, running in a sandbox within a sandbox.


Huh? WebAssembly, like asm.js before it, can access Web APIs (albeit via JS).


Not exactly. You have to export those APIs into the WebAssembly module. It's certainly possible to have a WASM implementation that doesn't provide web APIs, but is still WASM.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: