Hacker News new | past | comments | ask | show | jobs | submit login

> By the way, this only works well because Go binaries are static, one of the things that make the language reasonable good.

Only by default, as the Go toolchain supports dynamic linking for ages, and without third party dependencies called via cgo, or stuff like DNS resolution on Linux.




Author here.

What I meant is that the toolchain itself is linked statically, this is why it can be just downloaded from the internet and it will work without extra setup from the user.

Yes, Go will build the libraries once you call `go build`, and yes, they may link to the system C libraries for things like you said. But the `go` binary itself is static.




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

Search: