Unofficial Hacker News companion — get notified on comment replies, and more.

All software sucks (2007) (opens external site)

166 points by archargelod 9 hours ago harmful.cat-v.org 194 comments (opens Hacker News) Vote (opens Hacker News)

View full thread · View on Hacker News

Comment thread (12)

  1. Even the concept of linking only exists because of history at this point right?
    Replies (2)
    1. 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.

      Replies (3)
      1. It is an important feature to roll out security updates.
        Replies (1)
        1. The future of computing is offline (or local trusted intranets)
      2. And plugins, although one might argue multiple processes with OS IPC is more secure and stable, given the hardware resources.
        Replies (1)
        1. RPC protocols just seem really inefficient. An in-process plugin architecture can share data synchronously in a few CPU instructions instead of asynchronously in tens of thousands. RPC architectures require both sides to duplicate state from the other side so they can query it efficiently while in-process architectures allow you to just call a get function.
          Replies (1)
          1. There are other ways to do OS IPC besides RPC, like memory segments.

            But yeah it comes with a cost versus plain dynamic linking.

      3. 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.
        Replies (2)
        1. The good news is we're trending back toward $1000/MB RAM. Maybe it's time for a dynamic linking comeback!
        2. > Important when RAM was over $1000/MB.

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

    2. 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.

      Replies (1)
      1. 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...