3 ms·
I mean can't we say the same thing about sending around a .exe though?
by outside1234 4mo ago
I mean can't we say the same thing about sending around a .exe though?
- jastanton 4mo agoexactly
- gavinray 4mo agoDouble-clicking an ".exe" (or running it via a shell) is not the same as "bag of bytes", it's "send these bytes to an executable environment". Doing `head foo.exe` is quite different than `run foo.exe` If I encode executable instructions in "image.png" and then send them to an interpreter that runs those instructions, the file extension doesn't matter.
- bluejekyll 4mo ago.exe has bindings to OS ABI and system calls, WASM doesn’t have this by default, it’s up to the VM to provide whatever environment the WASM executable needs, ideally there should be no system calls, no stdio, just instructions on how to interpret the file format.