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

> just because you can't call directly from WASM into browser APIs

Surely that will change someday.



You are still limited by the fact that browser APIs are mainly designed for usage with Javascript, and those Javascript APIs usually don't map all that well to languages used with WASM (which typically use the "C ABI" for FFI). There is zero chance that each web API will get a second API which is compatible with "C calling conventions".

There is a (now inactive) "interface-types" proposal, which has dissolved into "component-types", but this scope-creep definitely is already quite concerning:

https://github.com/WebAssembly/interface-types




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

Search: