by microtonal · 13y ago · 0 comments
I know, that's why I said that it is true for deployment. It's an advantage of compilers that compile in packages/modules statically into the binary. E.g. Haskell also has this advantage.
The downside, of course, is that if there is a security vulnerability in some package, you have to recompile and redeploy all your binaries, rather than replacing one dynamic library.
Whether it is an advantage depends on the usage scenario.
I think you realised that, but versioning imports in Go is at exactly the same state as versioning imports in Python. I can't write an import statement in Python that describes what version I need, nor can I in Go.
Or Haskell or Java or Ruby. But these languages have standard (or nearly standard) tools that allow you to specify versioned dependencies (Cabal, Maven, Gem). Go puts package management more or less in the language, but doesn't do version management.
So, your comparison here is not fair. You should compare Go's package management with Python plus setuptools/easy_install, Java plus Maven, Haskell plus Cabal, etc.
Library and version management at Integration (and before test) simplifies the question "what version are you on?" There is one answer, which for many environments may be useful.
> So, your comparison here is not fair. You should compare
> Go's package management with Python plus
> setuptools/easy_install, Java plus Maven, Haskell plus
> Cabal, etc.
That makes Go look even worse, doesn't it?Hell even the stated "just update the library you link to" advantage of compiled programs tends to be overstated as you end up with some software that works and some that doesn't. So statically linking in dependencies and library dependencies by my mind is less of a issue now.
If you don't break ABI compatibility it will work. A security fix very rarely changes the ABI.