Software has been too complex for humans all along

Was software just always too complex for humans?

Software has been too complex for humans all along

After AI-assisted code cracked the Riemann hypothesis with 17 million lines no human fully understands, Anil Madhavapeddy asks whether software engineering was ever really under control. His answer: better models alone won't fix it. He proposes deriving all software from formal specifications and deliberately engineering diversity across implementations, models, and harnesses so one bug can't take down everything at once.

I don't think better harnesses and models alone will let software engineering catch up, as they just produce mountains of slop code.
  1. LichenStone

    Alan Kay, 2015 - https://youtu.be/NdSD07U5uBs?t=592

    "What's the expense of getting simplicity? ... one of the things that's worked the best the last three or four hundred years, is you get simplicity by finding a slightly more sophisticated building block to build your theories out of. It's when you go for a simple building block that anybody can understand through common sense, that is when you start screwing yourself right and left, because it just might not be able to ramify through the degrees of freedom and scaling that you have to go through. And it's this inability to fix the building blocks that is one of the largest problems that computing has today in large organizations, people just won't do it."

  2. hypfer

    Answering the Headline: Not really, no.

    Things are the way they are not because they would be difficult but because various systemic incentives and goals fought out each other, leading to the outcomes we then saw.

    This balance these various forces fought out relied on a bunch of undocumented assumptions about reality. Every time one of those breaks, you get disruptions. LLMs broke quite a few of them, leading to a lot of CVEs lately.

  3. bob1029

    What makes software complex is how long it takes to develop. Building a process that can accurately represent an incomplete software solution over time is an unsolved problem.

    We are at the brink of ultrafast AI models that can go so fast that we don't need much of a process in the middle anymore. A vast amount of this complexity is going to vanish overnight for the more adventurous enterprises.

  4. dgoodell

    I think it was a business decision to make it too complex for humans. I don’t think fundamentals were prioritized as much as features, resulting in a fragile house of cards.

    There’s a reason it doesn’t look like most engineering. If it was a bridge it would have collapsed long ago and killed people.

  5. analog31

    Take this from a rank amateur "scientific" programmer. I write functions with maybe a half dozen lines, then I piece them together. Sometimes my programs work, sometimes they don't, and I fix them. I've done it this way since I first learned Pascal 40+ years ago. I'm not allowed to touch production code, so don't panic.

    When I ask AI to write code with similar functionality, it's about 10x more code. Likewise when I look at the code for well respected open source projects. It's good code in terms following accepted practices, but hard to read because there's too much of it to see where the actual "working" code is.

    A lot of the code is "defensive," i.e., type and bounds checking, trapping error conditions, etc. When I've looked at the unit tests, most of them test the defensive code.

    I tell my engineering friends: "Engineers like to over-complicate things." Maybe the AI has picked up on this and is serving it back to us.

  6. throwawayffffas

    No, the main problem is the acceptance of undefined behavior and refusal to move to datastructures that spend a couple of words to keep track of their size.

    Seriously just put everything in the stack and you are almost golden.

  7. RunSet

    "There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult."

    - Tony Hoare

  8. amelius

    The always changing requirements are what make it too complex for humans.

More from this day

2026-11-22