Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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...



They 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: