4 ms·
Yes, JS and wasm can call each other. In the long run wasm should also be able to call web APIs directly.
by Rusky 9y ago
Yes, JS and wasm can call each other. In the long run wasm should also be able to call web APIs directly.
- infogulch 9y agoIs wasm also restricted to running on one thread like js?
- Rusky 9y agoNo, though neither is Javascript. (I am not sure how far along non-WebWorker-based wasm threads are, but here's the proposal: https://github.com/WebAssembly/threads https://github.com/WebAssembly/threads)
- moosingin3space 9y agoShared-memory threads are something I hope lands in WASM, since they're part of the reason you'd want to drop down to WASM in an application in the first place.