4 ms·
i do wonder what aspects of Go make it good for the container use-case. both Docker and the other container system mentioned at the top of the article are writ
by auvrw 11y ago
i do wonder what aspects of Go make it good for the container use-case. both Docker and the other container system mentioned at the top of the article are written in Go.
- jacques_chester 11y ago> i do wonder what aspects of Go make it good for the container use-case. Same as JARs or C/C++ binaries. You can ship the compiled product to the target runtime and expect it to launch and run as-is. Languages with an interpreted nature require containers to also ship an additional runtime, plus a dependencies mechanism.
- techdragon 11y agoGo is a step further than these though since it enables "static binaries" you can run go programs in docker with nothing else in their containers. Just one file, the Go binary. Which is amazing and frustrating since it exposes the inability of other languages to operate in such a simple environment. Even languages like Rust, C and C++ aren't able to do this reliably all the time, with the results being highly dependent on libraries and platforms of choice.
- auvrw 11y agothanks for the &replies ;-) ... tbh, Go vs. Rust for the, "i wanna write a Docker-thing!" use case was pretty much the question i had in mind. the Rust ppl are looking toward static linking [links]... https://internals.rust-lang.org/t/static-binary-support-in-rust/2011/48 https://internals.rust-lang.org/t/static-binary-support-in-r... https://github.com/rust-lang/rust-buildbot/issues/24 https://github.com/rust-lang/rust-buildbot/issues/24