logoalt Hacker News

Was software just always too complex for humans?

58 points • by nathcd • yesterday at 5:32 PM • 78 comments • view on HN

Comments

analog31 • yesterday at 9:12 PM

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.

➕ show 7 replies
yyyk • yesterday at 9:13 PM

No, and users of this site know better. Humans built massive reliable software system. Inasmuch as anything was 'too complex', it was the choice to rely on underspecified interfaces, ancient tools and legacy protocols for various reasons (often boiling down to economics of time and resources). But it would have been humanly possible to rebuild the entire software stack using more reliable methods (that the article suggests for LLMs, but there's nothing yet making these methods inaccessible for mere humans), and these reliable methods would have solved nearly all bugs. It would just be a lot less economic and take more time (both directly and as opportunity cost).

➕ show 1 reply
hypfer • yesterday at 8:56 PM

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.

➕ show 2 replies
LichenStone • yesterday at 10:16 PM

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

dgoodell • yesterday at 8:40 PM

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.

amelius • yesterday at 8:51 PM

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

adrianmonk • yesterday at 10:09 PM

I'm not following the reasoning how specs improve security issue response.

The idea is that a formal spec exists and AI generates code from that. Then when an attacker discovers a vulnerability, you can generate code again without needing to wait on the project maintainer.

If the spec plus the AI is sufficient to generate software without the vulnerability, why didn't it just do that originally? Why would doing the same thing again fix anything?

Instead, the formal spec needs to be updated to add "and don't have this vulnerability". Which can be done, but now you're back to coordinating with the maintainer. The maintainer owns the spec. What's really happened is that software is now written in a different language, a formal spec language instead of a traditional language.

If you don't want to wait on the maintainer, you could just change the spec yourself as a temporary measure. But that's also not anything new. With traditional software, you can patch the source without the maintainer's involvement as a temporary measure.

doug_durham • yesterday at 9:29 PM

Yes, and users of this site agree. Software complexity has always been at the edge of human abilities. This is why there have been countless attempts at managing complexity such as OOP, functional programming, type-driven development, ... The only reliable software is that which has been stripped down to the bare essentials. The way to allow humans to deal with software complexity is to not write software. SWE in practice is a deliberate balance between cost of development and completeness, where completeness means fully tested and all corner cases accounted for. It has been the general case that shipped software is knowingly incomplete. For the most part that pays off. It will continue to pay off.

ssrc • yesterday at 8:56 PM

Maybe for some software systems it was. For most systems, the problem was just professional immaturity caused by the eternal September state the profession is in since the beginning.

randallsquared • yesterday at 9:02 PM

Specification has its place, but even with "perfect" pieces of software, the interaction of them, together with their interaction with the physical hardware, mean that you still can't know everything that can happen in the whole system. You can specify a unix tool (do one thing and do it well...), but you can't formally prove all of an operating system plus userland without very strictly limiting what outcomes are possible, and even then novel or buggy hardware or other physical environment variables could produce unexpected results: bugs. The formal specifications themselves, to cover all this, will have to become so complex that no human can understand them, which just means that some potential exploits will be explicitly allowed by the spec, and an evaluator at a given level of intelligence (human or other) may not understand the bug or even that it exists.

For any system designed by some intelligent agent IA, there's going to be holes/bugs/exploits that can be easily seen by some agent IA*100. This has never been a serious problem in anything before, because humans don't span that range of intelligence, and collaboration doesn't provide such insights.

RunSet • today at 1:03 AM

"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

prestonvasquez • yesterday at 10:32 PM

> Historically, software has tended towards a monoculture through reuse, so one bug can screw over vast numbers of hosts. Agents could instead force diversity via novel 'genetic' mechanisms so digital services aren't all simultaneously infected. This works well with formal specifications, since any decent spec allows multiple valid implementations. The Internet's entire philosophy is based around Postel's Law and encouraging hosts to be liberal in what we receive and strict in what we transmit.

What evidence is there that a diverse system is better than a homogenous one? This is pretty non-sensical.

mikewarot • today at 1:47 AM

Our biggest software problem is that the design of our operating systems relies on ambient authority, which was fine for single PCs without networks, and software and users that could be trusted. It's been insane to use those systems since we all got Internet.

The second biggest problem is null terminated strings.

The fourth is off by one errors

socketcluster • today at 12:24 AM

I think one of the most profound changes I've observed on the tech side is the definition of 'modularity'; in the past, ideal modularity implied that the code could be locked down to a specific version, packaged up, distributed and everyone would integrate it into their projects as-is; everyone's projects would use the same module. This is a double-edged sword. If the module is secure and efficient, then that means everyone benefits from the security and efficiency, otherwise it means everyone is vulnerable to the same flaws or everyone suffers from the same inefficiencies.

In our new reality, module distribution has changed. We no longer need to obtain a module as-is from npm or whatever package manager... We can just get AI to pull it from another repo and make any necessary adaptations. The AI becomes the new npm and it's not a straight copy. Modules are more like blueprints rather than ready-made parts.

That said, modules still benefit from having simple interfaces, high cohesion, loose coupling. The ideal code doesn't look any different than before, it's just that the ideal distribution mechanism for it has changed. The design of the module significantly influences the logic surrounding it and that's why code quality still matters.

librasteve • yesterday at 10:37 PM

The post states “That means rebuilding operating system stacks from the ground up”

I think that’s right and I think Omarchy is making headway on that.

yepyoukno • yesterday at 5:34 PM

Many handle it just fine.

maxrev17 • yesterday at 9:17 PM

It’s just how quickly you can deploy the resource right? Models are not bad but you can deploy tonnes of energy quickly. With people you can’t deploy as quickly. Maybe?

cowlevel • yesterday at 10:17 PM

"Engineer diversity in deliberately" - garden-path sentence found in the wild! (So a forest-trail sentence?)

https://en.wikipedia.org/wiki/Garden-path_sentence

j45 • yesterday at 10:04 PM

Building/Implementing software is often about learning the actual complexity and solving it.

0c3ca83 • yesterday at 9:15 PM

Betteridges law of headlines strikes again.

0xbadcafebee • yesterday at 9:47 PM

To answer OP's question: if we can build nuclear reactors, particle accelerators, and rockets that land themselves, we can make software that validates an e-mail address. But even that basic test fails in modern software. Below are the reasons why.

> How the hell did we get here?

Two ways: 1) Software-based businesses optimize for profit, not quality. Physical-world engineering is as good as it is because of a couple hundred years of effort, the inherent limitations of the resources used for building, and legal liability/accountability/regulations. 2) The software industry's lack of required formal training and apprenticeship led to an influx of workers who lacked the same knowledge, expertise, and commitment to excellence that made software less-bad in previous decades.

> Have we just completely overestimated the human ability to write software?

No, we've known for decades the limits of humans' ability to write software. There are books on this going back to the 70s. But nobody who writes software today has read them.

> Or will software engineering 'catch up' once LLM harnesses get better?

No, because 1) and 2) are the same as before.

twotwoone • yesterday at 10:08 PM

[dead]

AIShill101 • yesterday at 5:41 PM

Yea I agree with the article wholly. This new era of AI assisted or driven coding is going to help us extend our capability way beyond anything humans could've built.

➕ show 2 replies
ex-aws-dude • yesterday at 8:55 PM

I mean if you zoom out the whole lesson we keep learning over and over with AI/ML is “we are not smart enough to design this function”