Stream: ideas

Topic: Actually Portable Executable (APE) hosts


view this post on Zulip Richard Feldman (May 13 2024 at 02:09):

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

view this post on Zulip Richard Feldman (May 13 2024 at 02:11):

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

view this post on Zulip Richard Feldman (May 13 2024 at 02:12):

the host could be written in Cosmopolitan

view this post on Zulip Richard Feldman (May 13 2024 at 02:13):

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