Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Java's main feature is compile once - run (almost) anywhere. From embedded to mainframe as long as a JVM is available.

How does Go stack up for cross-platform development? Does every application and library have to be (re)compiled for the target platform?

What about support for alternative architectures (ARM, PowerPC, etc)?



Go does require recompilation for every platform, but I'll give them this, it's very painless. Apparently in 1.5 you can just set an environment variable for your architecture and one for your OS and you're good to go.


AFAIK Go support cross-compilation for multiple targets... as long as one isn't linking C libraries.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: