News for hackers. Stuff that matters.
Re:Zig cc: A drop-in replacement for GCC/Clang by PaulDavisThe1st on Tuesday March 24, 2020 @07:39PM (#22680242)
In addition to the other excellent reasons mentioned here, there's also the fact that some libraries deliberately choose to use runtime dynamic linkage (dlopen) to load optional/runtime-dependent functionality.
Re:Zig cc: A drop-in replacement for GCC/Clang by gmueckl on Tuesday March 24, 2020 @07:56PM (#22680390)
If you want make a program that supports plugins, you have only two real options: non-native runtimes or dynamic linking. And the later gets you into a lot of trouble quickly. The former trades performance and memory usage for ease of use and a zoo of dependencies.
Re:Zig cc: A drop-in replacement for GCC/Clang by rumanator on Tuesday March 24, 2020 @07:57PM (#22680400)
> some libraries deliberately choose to use runtime dynamic linkage (dlopen) to load optional/runtime-dependent functionality.

Also known as plugins.

It's not a design flaw, it's a feature.