3 ms·
Ah. OK. I still don't understand why did Zig need to write their own WASM interpreter in C. There is no already existing interpreter of WASM? Also was that WA
by shp0ngle 4y ago
Ah. OK.
I still don't understand why did Zig need to write their own WASM interpreter in C. There is no already existing interpreter of WASM?
Also was that WASM interpreter written in C, or in Zig and compiled to C?
Wait it might be covered in the article. I will read once more, slowly...
- TUSF 4y agoThey wanted you to only have to use what's in the git repo itself, plus whatever C compiler is on your system. Thus, a basic WASM→C converter was written, and kept minimal to save on space, because it's only meant to work on this one binary.