Hacker News new | ask | show | jobs
by Rusky 3320 days ago
Yes, JS and wasm can call each other. In the long run wasm should also be able to call web APIs directly.
1 comments

Is wasm also restricted to running on one thread like js?
No, 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)
Shared-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.