1 Matching Annotations
  1. Jun 2021
    1. The problem is that it’s slow. WebAssembly doesn’t allow you to dynamically generate new machine code and run it from within pure Wasm code. This means you can’t use the JIT. You can only use the interpreter.

      I believe wasm can run off a SharedArrayBuffer, which is mutable. I'm not sure how that interacts with the running engine, how dynamically modifiable it is. Trying to runtime rewrite wasm & figure out exports would be... complicated. But this blanket statement still comes as quite a surprise to me, even though I know that within WASM no one is able to re-write the code.