I'm a WebAssembly newb just looking to get started, but I have a question I can't seem to find a reasonable answer to. I have an idea of how I would like to design this software, but I don't know if I'm asking the wrong thing of WebAssembly.
Do external JavaScript calls interrupt WebAssembly? Say I'm running a game loop for some visualization, and I want a HTML button bound to JavaScript to change some value within the currently executing WebAssembly context. Is that possible? Would it be more ideal to update values between each frame and only use WebAssembly for per-frame rendering?
The thing is, I really like the targetability of WebAssembly from other languages like C++, as I could never really get into either JavaScript or Typescript, and I'm also looking to build a more performant game-type application. However, since I was planning on making this a web game anyway, I wanted to see if I could use HTML + CSS for my UI elements instead of replicating a UI into WebAssembly, essentially turning it into a terrible canned Java applet.