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.
[ Parent
| on HN ]
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.