logoalt Hacker News

coldteayesterday at 8:25 AM1 replyview on HN

> Go also has the unique ability to compile a cross-platform binary, which I can run on any machine.

Huh? Is this true? I know Go makes cross-compiling trivial - I've tried it in the past, it's totally painless - but is it also able to make a "cross platform binary" (singular)?

How would that work? Some kind of magic bytes combined with a wrapper file with binaries for multiple architectures?


Replies

heinrich5991yesterday at 9:34 AM

Not what OP meant, but there's a project doing what you ask for: https://justine.lol/cosmopolitan/. It's quite interesting. :)