| ▲ | outside1234 4 hours ago | |
I mean can't we say the same thing about sending around a .exe though? | ||
| ▲ | bluejekyll 4 hours ago | parent | next [-] | |
.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. | ||
| ▲ | gavinray 4 hours ago | parent | prev | next [-] | |
Double-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. | ||
| ▲ | jastanton 4 hours ago | parent | prev [-] | |
exactly | ||