upvote
No matter history it seems pretty useful to build a library just once and then use the built artifact multiple times, rather than compiling it over and over from scratch.

I do definitely agree for dynamic linking though. It was mostly a disk space saving measure. If one insists it could be a compatibility feature too.

reply
It was a RAM saving measure since everyone on multiuser unix systems could share text and rodata segments. Important when RAM was over $1000/MB.
reply
The good news is we're trending back toward $1000/MB RAM. Maybe it's time for a dynamic linking comeback!
reply
> Important when RAM was over $1000/MB.

So just like today then? (Tongue only partially in cheek.)

reply
It is an important feature to roll out security updates.
reply
And plugins, although one might argue multiple processes with OS IPC is more secure and stable, given the hardware resources.
reply
Isn't the point of dynamic linking to have each piece of functionality in 1 place? Broken -> fix library -> fixes issue for all apps using that library.

Sounds like a good idea in general. Memory savings are a welcome side-effect.

Static linking is simpler but does away with those advantages.

I suppose much hatred against DL isn't the concept itself, but specific implementations. Like, any which do the versioning / dependency management badly.

reply
But in practice you end up with users using untested configurations of software, subtle, minor-version DLL changes end up causing issues.

You can't just strip and inline the parts of the lib you need. You still probably need to pack in the DLLs you want in case the end users might not have a way to easily procure them elsewhere. Its a big ol' mess...

reply
deleted
reply