so I remember reading about Actually Portable Executables and it just occurred to me that there's actually a real potential use case for them: portable Roc scripts compiled to binaries for systems that don't have Roc installed
in theory we could support this if the surgical linker is aware of the possibility of having ELF, PE, and Mach-O headers in the same binary, once we have surgical linking code that can already support all of those individually
the host could be written in Cosmopolitan
it's an interesting idea to me because this is a cool concept but today you have to write C to get it, and it's interesting to think that Roc is potentially the best-positioned language to provide a totally ergonomic experience for building Actually Portable Executables!
Last updated: Jun 16 2026 at 16:19 UTC