4 ms·
I haven't read the article yet, but you can pass the emitted Wasm back to the top level JS and have it instantiate a new module, potentially using the same heap
by nerpderp82 4y ago
I haven't read the article yet, but you can pass the emitted Wasm back to the top level JS and have it instantiate a new module, potentially using the same heap.
A Wasm trampoline-continuation.
I assume this is what v86 does.
- yuri91 4y agoBy "Wasm JIT API in JavaScript" I mean a native way for the browser to support the JIT use-case. Generating entire modules works, but it has a number of issues. For example, you need to carefully decide how big your modules are going to be: - Too small, and you end up compiling many many modules, which eventually crashes the browser if you don't dispose of the old ones - Too big (many functions batched together), and you have too much latency before your code is available to run Being able to compile a single function to add to an existing module (or something like that) would help a lot.