3 ms·
> then I can give you a single file which can be executed on Linux, BSD, Mac, or Windows. Using what libraries & syscalls? A portable IR and a portable execut
by kllrnohj 3y ago
> then I can give you a single file which can be executed on Linux, BSD, Mac, or Windows.
Using what libraries & syscalls? A portable IR and a portable executable are very different things, yet the WASM crowd loves to conflate them. WASM is only a portable IR, it doesn't get you portable programs at least not if you want your program to do anything beyond a trivial hello world.
- VikingCoder 3y agoFor WASM, that's what WASI is all about, yes? And for Cosmopolitan Libc, there's documented Functions: https://justine.lol/cosmopolitan/functions.html https://justine.lol/cosmopolitan/functions.html And if you want to see things beyond a trivial hello world, you can check out some examples: https://github.com/shmup/awesome-cosmopolitan https://github.com/shmup/awesome-cosmopolitan https://github.com/burggraf/awesome-cosmo https://github.com/burggraf/awesome-cosmo Or you can see a pretty big list of pre-compiled Actually Portable Executables here: https://cosmo.zip/pub/cosmos/bin/ https://cosmo.zip/pub/cosmos/bin/