Re:Zig cc: A drop-in replacement for GCC/Clang
by sitkack on Tuesday March 24, 2020 @07:24PM
(#22680150)
Containers most likely wouldn't have existed if we had a proper ecosystem around static linking and resolution of dependencies. Containers solve the problem of the lack of executable state control, mostly caused by dynamic linking.
[ Parent
| on HN ]
Re:Zig cc: A drop-in replacement for GCC/Clang
by sjwright on Tuesday March 24, 2020 @07:56PM
(#22680389)
More broadly, containers solve the problem of reproducibility. No longer does software get to vomit crap all over your file system in ways that make reproducing a functioning environment frustrating and troublesome. They have the effect of side-stepping the dependencies problem, but that isn’t the core benefit.
Re:Zig cc: A drop-in replacement for GCC/Clang
by senderista on Wednesday March 25, 2020 @01:12AM
(#22682104)
But the images themselves are not easily reproducible with standard build tooling.
Re:Zig cc: A drop-in replacement for GCC/Clang
by sjwright on Wednesday March 25, 2020 @02:55AM
(#22682530)
True—but that's far less of a problem, because it rarely occurs unexpectedly and under a time crunch.
Diffing two docker images to determine the differences between builds would be far less onerous than attempting to diff a new deployment against a long-lived production server.
Re:Zig cc: A drop-in replacement for GCC/Clang
by SAI_Peregrinus on Thursday March 26, 2020 @09:48AM
(#22693502)
Dynamic linking isn't the issue. Shared libraries are the issue. You could bundle a bunch of .so files with your executable & stick it in a directory, and have the executable link using those. That's basically how Windows does it, and it's why there's no "dependency hell" there despite having .dlls (dynamically linked libraries) all over the place.
Shared libraries are shared (obviously) and get updated, so they're mutable. Linux systems depend on a substantial amount of shared mutable state being kept consistent. This causes lots of headaches, just as it does in concurrent programming.