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

All software sucks (2007) (opens external site)

171 points by archargelod 10 hours ago harmful.cat-v.org 204 comments (opens Hacker News) Vote (opens Hacker News)

View full thread · View on Hacker News

Comment thread (3)

  1. This is DLL hell, well-known problem. Replace DLL with Python, NPM, Java and you have exactly the same problem.

    If dynamic linking is used right, it has a lot of advantages. libSystem/dyld_shared_cache in darwin/XNU is a good example how to do it right.

    Replies (1)
    1. I think the problem is that the problem gets trivialized when in reality, it's more difficult than we realize.

      I want to use LibraryA in ProgramA and in ProgramB. It would be nice if they could both use the same binary, that way I can save some storage. Also, if I notice a problem in LibraryA, I could fix that and just replace that.

      But inevitably, you get to a position where you need to make a change to LibraryA that would make it incompatible with previous versions. There's no nice, clean way to have both all producers and all consumers be both backwards and forwards compatible. Or, at the very least, you have to be aware that's what dynamic linking is asking of your software, that it be both backwards and forwards compatible.

      Replies (1)
      1. Reality: you save up all your breaking changes and call it libmylibrary2 when you make them