Was software just always too complex for humans?

(anil.recoil.org)

72 points | by nathcd 1 day ago

25 comments

  • bob1029 16 minutes ago

    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.

    • LichenStone 20 hours ago

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

      • hypfer 21 hours ago

        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.

        • mentalgear 21 hours ago

          The systemic incentives were acceptable risk / effort.

          It's not that engineers 30, 40, 50, ... years ago didn't know the potential risks of the hard- or software, but business executives found them acceptable, and those companies that provided the best 'bang for you bucks' with acceptable risk surfaced.

          But this equation, which rested on the assumption of a fixed cap of humans being able to have the resources and skills to exploit a system, is now dissolving quickly as all you need now to do e2e cyber penetration or even soon social engineering is compute (no expertise or humans).

          • Muromec 20 hours ago

            > but business executives found them acceptable, and those companies that provided the best 'bang for you bucks' with acceptable risk surfaced.

            that does not explain all the CVEs in open source projects. or does it?

            • ozim 20 hours ago

              with enough eyeballs all bugs are shallow

              We never had enough eyeballs for all the software open or closed source.

              Don’t mix up complexity with just high amounts of code.

              • Terr_ 11 minutes ago

                I'd also caution that the saying relies on an implicit understanding that "eyeballs" is proportional to independently-minded reviewers.

                Running a thousand copies of the same checker-program might give 1000x eyeballs, but not in the original useful way.

              • fc417fc802 20 hours ago

                s/business executives/people with common sense/ is how I resolve that one. It's easy to end up lost out in the weeds with edge cases when you're the one building something but take a step back and most people can see roughly what does and doesn't make sense to spend time on.

                And then LLMs came along and completely upended the status quo.

            • Muromec 20 hours ago

              I believe it's like with rivers. We just keep adding stuff until we can't deal with complexity anymore and adding stuff takes too much time to get enough value. Nobody stops developing their piece of software while it's still under control.

            • analog31 21 hours ago

              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.

              • Ekaros 8 hours ago

                Defensive coding often is added because shit happens. So you need to take in account lot of scenarios you did not even consider at first.

                My latest example is verifying JWT token. Works fine. Then just for some testing run with old token... Not verifying against any key I stored... Keys are pulled at start... And the service which sings JWTs might change them... Well now I needed to add logic to repull keys.

                For long lived projects this sort of stuff happens over and over again. And thus more of these edge cases are added. And they are actually needed to solve some edge scenario. Even if that edge scenario can be very rare.

                • worried_individ 54 minutes ago

                  the high levels of abstraction until you get to what the algorithm actually does is a real criticism even inside software engineering circles.

                  java enterprise application programming is a meme almost everywhere, but in the middle people still write too many abstractions that in the end don't really improve the code or application.

                  there are programming styles that try to improve it.

                  but it's important to understand that source code complexity scales non linearly as a function of several things like features of your program and how much they can interact with each other. this will inevitably make the source code for almost everything more complex than a naked and isolated prototype or purpose-specific piece of code that can make more ad hoc assumptions.

                  • breatheoften 2 hours ago

                    I think this outcome is more a consequence of software ecosystem and legacy debt than necessarily a pure fault of the coding agents ... Building on piles of sand (aka anything in python) tends to induce an enormous amount of "incidental complexity" failure modes that are not normally handled and reducing the impact of those is essentially impossible.

                    I've often found that reframing the problem into a form that can be directly solved at a lower level often yields ai generated solutions that are actually robust and far more minimally coded ...

                    Leaky abstractions are worse than no abstractions remains true in ai coding age

                    • jrmg 20 hours ago

                      > 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 think you might be under a misapprehension about how non-rank-amateurs code. Almost all coding is trial-and-error if we're honest. No-one, no matter how well they plan, writes towering pristine monoliths of code.

                      The code might sometimes look like that after they're done, but that's only because so much time has been spent testing and 'polishing'.

                      Most - maybe all - professional programmers I've worked with spend longer in the debugger or inserting and reading logs than they do in writing code.

                      Sometimes it's possible to plan an architecture beforehand and implement it as-designed, but even that is usually a fool’s errand - the plan needs to change as the architecture meets reality and unforeseen complications arise.

                      • stingraycharles 20 hours ago

                        This is accurate, and it’s also that the code of those projects evolved over years, sometimes decades, of time, often by multiple people iteratively improved to fix issues.

                        It’s a time management thing as well; we would all like to have infinite time to make things beautiful and perfect, but you have to pick your battles.

                        This shouldn’t be the case for AI, but because it’s trained on this type of code, it probably has a tendency to write similar “verbose” code.

                        You can still steer it in the correct direction when reviewing its code though.

                        • asdff 20 hours ago

                          There is stuff that just is not done at all in scientific coding that is routine in more "I majored in this in undergrad" sort of coding roles. For example, type checking. Engineering tech interview will ding you for not specifying type in say function input definitions. After all, to the engineer brain, someone could supply an unexpected type and trigger a bug, better catch it there.

                          To the scientific programmer brain, that is just irrelevant, because the function will only ever be used with expected data. The type definition would be superfluous. Even if unexpected data were supplied, the pipeline would likely break anyhow with some other error.

                          • HappyDreamer 20 hours ago

                            > spend longer in the debugger or inserting and reading logs

                            Id say more time writing tests and doing code review,

                            than debugging and looking at logs.

                            • cadamsdotcom 18 hours ago

                              > Most - maybe all - professional programmers I've worked with spend longer in the debugger or inserting and reading logs

                              Don't say debugger! A debugger is a tool of last, last, last resort. It only helps for an instant! It doesn't build durable assurance of correctness for you or your team; and the knowledge you gain only helps once. It's a super low leverage use of time.

                              Your limited time and energy should produce durable assurances of quality in your work. Consider replacing with these practices -

                              1. Test-driven Development (TDD, red/green/refactor.. it has many names)

                              Write the tests first; witness the tests fail, confirm they're failing for the right reason (not some irrelevant issue like missing imports) and only then move on to implementation. If you're putting tests in for code that already works, modify the production code to break it; witness the tests fails. Make 100% sure those prove what you think they do, because a test that has never been seen to fail is not only useless it's a risk that you left lies forever in your codebase.

                              2. End-to-end testing and the testing pyramid

                              Write end to end tests. Exercise as much of the system's architecture as possible in a closed container (eg. with a browser test framework like Playwright, and a container orchestrator like docker compose)... but since that's slow at the scale of a real product only cover the happy path. Defer to unit, feature, and integration tests for the rest, because smaller tests can remove all I/O, not test third-party code, and have injected dependencies - and thus, run in parallel under a millisecond. End to end tests don't have that luxury; hence, testing pyramid.

                              3. User Acceptance Testing

                              Which stakeholder(s) declare your implementation meets the original requirements? Put them in the process before release. They should confirm business and technical compliance with what you were supposed to build, and help catch more bugs before production

                              4. Feature-flags, A/B tests, and smaller, more frequent releases

                              Release more often, so each change can be smaller, spreading the risk of releasing out over many releases instead of one "big bang" (you know why we call them big bang releases right? because that's what they do) .. Hide work behind feature flags that ready to be enabled, then when it's ready, unleash it on the world in an instant. Bug with the work? Roll back the feature flag. Amazing.

                              5. Observability.

                              Make it possible to understand in the present moment as well as forensically what is happening in your product. Add traces, emit metrics, plan out logs to insert ahead of time (any time a metric won't suffice), add in product usage metrics to see where people are dropping out/getting confused and improve those things, and any other

                              6. Load testing, fuzz testing, security testing, performance testing, fault-injection testing

                              Most products have requirements that'll drive these and many other types of testing. Don't do a once-off test & fix. Produce harnesses and artifacts - and include them for the next person to pick up where you left off. Even better make these tests continuous and put them into your process - ie. in CI.

                              All preventative stuff that should helps keep that debugger at bay. In conclusion: say no to debuggers!

                              • Zanfa 7 hours ago

                                I’m not gonna argue against the importance of testing, but what you described here is completely orthogonal to the use of a debugger. If anything, it would be step 0 of your hierarchy. After all, you have some code that’s has unexpected behavior, debugger is how you figure out how to write a failing test case in the first place.

                                • Eggpants 4 hours ago

                                  Debuggers teach you how the computer really works. Your list is for someone who treats it like a black box.

                                  • skydhash 5 hours ago

                                    Try to do all of those stuff with embedded programming, or kernel programming, or desktop programming. A debugger may be your only tool to investigate the cause of a crash.

                                • vrighter 5 hours ago

                                  in a lot of software, handling failures is vastly more complex than doing the thing properly and assuming everything will go right, and is usually a significant chunk of the code. It's what makes for good robust software. It is not overcomplication.

                                  • metalcrow 20 hours ago

                                    Isn't defensive code just outright better to do? Sure if you're making scripts for single use or small one-offs, it's unneeded. But the moment you make a usable product or a library or a tool that more people use, if your code isn't defensive won't the program just be strictly worse? It's always better to avoid crashes or bugs or exploits and you need to be defensive to do that.

                                    • cowlevel 20 hours ago

                                      Code with the necessary level of defense isn't defensive code, it's just code. It becomes defensive when you add too much defense. Like C programmers writing if(!ptr) return -EBADPTR; at the start of every function instead of just letting it crash.

                                      (Yes it's technically undefined behaviour and not guaranteed to crash. In practice, an errant null does crash, producing a much more debuggable symptom than an ignored error code, and we are writing code for real compilers that actually exist.)

                                      • AnimalMuppet 20 hours ago

                                        Depends on what it's code for. For aircraft software, "just letting it crash" can be unpleasantly literal.

                                        • cowlevel 19 hours ago

                                          For aircraft software neither approach is acceptable. You can't have crashes, you can't have exceptions, you can't have error codes, you can't have any other way to signal that something went wrong. Instead, the thing has to not go wrong.

                                          • AnimalMuppet 18 hours ago

                                            You can't have error codes? I have never seen anything saying that you can't. (If there is something I have missed, feel free to cite it.)

                                            Of course you can have things go wrong. Things actually do. But when they do, it has to not crash - neither the software nor the plane.

                                            You got a malformed packet from some other system? You'd better not use it like it's valid, and you'd better not crash. Returning an error code to say "that packet wasn't valid" is a perfectly valid way to deal with it.

                                            The engine fell off the plane? You'd better not be trying to respond to the sensor readings from that engine any more, because they are by definition garbage.

                                            Sure, for each individual thing, try as hard as possible to make it so that it cannot go wrong. But that won't be possible for everything. For the rest, make it so that it can go wrong and you still have a flyable plane and running software.

                                            • cowlevel 18 hours ago

                                              Do you know what happened the last time a plane dropped packets it thought were invalid? Nobody noticed and it just kept receiving them until it (by chance) decided one was valid, and then an A330 full of people suddenly plummeted towards the ground, causing 12 serious and 107 minor injuries. Thankfully it was able to recover before it hit the ground, and land at the nearest suitable airport. https://en.wikipedia.org/wiki/Qantas_Flight_72

                                              • defrost 18 hours ago

                                                So, the two fail safes worked?

                                                A bad instrument (one of three, for safety) produced bad data. Bad programming let some bad data slip through leading to a bad plane reaction.

                                                The first fail safe "The triggering of a flight-control primary computer (FCPC) pitch fault" kicked in.

                                                The second fail safe (Navy trained pilot) also kicked in.

                                                So ... was that a good overall system that resulted in a life threatening low probability chain of events ultimately causing no crash and no deaths?

                                                • metalcrow 18 hours ago

                                                  What is the correct approach avionics software should take in this case?

                                        • contravariant 20 hours ago

                                          You need to balance this using the robustness principle by being very strict in the code you've written yourself.

                                          If you're constantly checking the output of your own functions then something has gone wrong. Also if you're accepting really broad arguments then that's not necessarily better if only some values make sense.

                                          If someone sends you a date of birth as a string by all means try to parse it within reason but if they send 13-14-15 you should throw an error instead of trying to figure out the typo. Even better do not accept strings but use a date type. Yes this limits your interface but it's a lot clearer on both sides.

                                          • radlad 20 hours ago

                                            There are other takes. Notably, the Robustness Principle: https://en.wikipedia.org/wiki/Robustness_principle

                                            • cowlevel 20 hours ago

                                              Turns out that's good for prototypes and experiments, bad for production systems - the internet has a ton of jank where some early robustness principle ossified. For reliable production code it's better to reject anything that doesn't look right.

                                            • popkkksidhd 17 hours ago

                                              No, absolutely not. If you don’t understand the ways in which your code will be used, you need to fix that. Defensive programming is just lazy - and more importantly, it’s taking on massive amounts of technical debt. Some of the worst codebases I’ve ever worked on were heavily defensive. And I mean the product they produced, not my ability to understand it (though over my career I’ve noticed a strong correlation between the two).

                                            • pxc 20 hours ago

                                              I have a computer science degree and have bounced around security engineering, software engineering, and DevOps roles. I currently produce code for a living, although it's internal tools rather than application code for end users.

                                              LLMs typically write 2x-25x as much code as they should. Occasionally they write 50x as much code as they should. It's not mimicking competent developers, or even the "over-complication" of perfectionists. It's plain bad.

                                              • rstuart4133 15 hours ago

                                                It's rare that you can compare LLM output to a human's, but I got the opportunity. It was some one-off throwaway code to scrape some websites, to find a good deal on buying a car the first time around and buying a tractor the second time around. It took me 800-odd lines for the car. The LLM generated over 50k lines for a very similar task.

                                                The technique was a wild success for the car, and a total failure (so far) for the tractor. My guess on why is kinda surprising to me.

                                                The LLM (in the end) produced reliable working code that did exactly what I asked. But when I wrote the car-searching code, something else happened – I learnt about the second-hand car market, features available and what they sold for, and what they were worth to me. By the end of the process my expectations squarely matched market reality, the filters so finely tuned that I only had to look at a couple of candidates, and I was very happy with the outcome. The LLM's search results were full of noise. For example, I told it I only wanted nearby ads. It dropped the ones that gave a distant location, but kept the ones that gave none, even when their landlines put them 1000s of km away. Worse, it missed many real candidates as it repeatedly missed features in the ads that were obvious to a human. For example, if they mentioned mowing it probably came with a slasher Had I written it myself, I'd have hit both of these early on, because I'd have been reading the ads. With the LLM writing it, I never read them, so I never knew to ask. I still don't have a good feel for prices and what type of seller offers them, so I find myself going back and doing the searches manually to see what the LLM missed.

                                                A middle ground would be to write the filters myself, so I get a feel for the market, and get the LLM to write the rest. The trouble is the same one you get with a bash script. You start with 10 lines; months later it's a 1000-line monster, bash was clearly the wrong choice, and by then it's far too hard to change. This started as a fully vibe-coded program. To bolt my own filters on I'd first have to understand its structure well enough to know what sort of filtering API would fit. That's possible, but no one wants to read and understand 50k lines of crap that could have been done in 1k. It would be less painful to write the whole thing myself.

                                                • Balooga 19 hours ago

                                                  Exactly. Here is what I have found in my own project. Because I hadn't explicitly told the LLM (Hi Claude!) to not create a brand new build tool, it created a brand new build tool.

                                                  The LLM created a build tool that sequenced dependent files by time instead of result. So a test would kick off 2 seconds after a compile was initiated instead of the build waiting for a compile to complete. Race conditions left and right under load which the LLM decided to mitigate by increasing wait times. Which lead to increased build times, but that didn't fix the race conditions.

                                                  So the LLM decided to compile/test each file 50x times in a row, only continuing with the build if all 50x runs resulted in no race conditions.

                                                  Also, run the entire build 3x in a row -- because why in the hell not. The first time under ptrace to inventory files that are created or modified. The second time to create a hash of each file inventoried during the first run. The third time to compare file hashes to the second run to determine build failures.

                                                  A build that should have takes less than a minute using plain make and Makefiles just about turned my laptop into slag after 30 minutes of 100% CPU load.

                                                  Fun times.

                                                • cataflam 19 hours ago

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

                                                  I took your message to be in a half-joking tone and I mean mine in the friendliest spirit, from someone who's been where you are, in response to the half-serious part :)

                                                  I used to be an "amateur scientific" programmer like you, learned Pascal ~35 years ago, used Fortran and Delphi extensively (my field was experimental physics). At some point, I switched careers and become a "professional" programmer, working on operating systems and embedded software.

                                                  Your code simply has (more) bugs. All those unchecked bounds, uncaught error conditions, etc. Your short functions probably work fine on most inputs you give them and, if they occasionally don't, with some luck you notice and you're there to fix them (or if you're less lucky, it propagates into some calculations and results unnoticed...)

                                                  I had a hard time accepting it the first time I was told. "But that's not a bug, it's "just" an uncaught memory allocation error." Yeah, that's a bug.

                                                  That defensive code probably has bugs too, but fewer bugs. It really depends on the field and the application, and the ease of update / consequence of failure, how fewer bugs you need. For production code, that runs unattended, where uncaught errors can have bad consequences, the 10x extra code is there. That's also why most of the tests focus on those edge cases (the main path will get tested heavily every time you're running the program anyway).

                                                  I don't mean your approach is wrong for you, it may very well be best for your use cases. But that "over-complication" is there for very good reasons.

                                                  • analog31 18 hours ago

                                                    No offense taken at all. What I realized at some point is that I really didn't want to do software development, and am at a place where I have the luxury of saying that the professional devs will take my ball of crap and turn it into something that they can ship. The ball of crap only has to express and test the theory of operation well enough to guide actual product development.

                                                    • popkkksidhd 17 hours ago

                                                      Parent said “probably has more bugs” but the correct answer is we can’t really say. I spend half my day ripping out defensive LLM programming that would never occur in the real world.

                                                      Do your best to learn what’s needed and what isn’t. Much easier said than done.

                                                  • 14113 20 hours ago

                                                    Software engineers like to over-complicate code in the same way that structural engineers like to over-complicate buildings.

                                                    • Muromec 20 hours ago

                                                      It's the architects. The love doing things like Sluishuis because it's cool. So next time you see a bug and an architect, hit the architect first.

                                                    • spoiler 20 hours ago

                                                      I think a lot of the complexity comes with having to handle unknowns or weird edge conditions, most of which are there because code runs on hardware which follows the laws of physics. So really, we need to blame the physicists for not drafting better laws!

                                                      • loup-vaillant 20 hours ago

                                                        A lot, yes, but far from most.

                                                        Most of the complexity I've seen in most programs I worked with so far was avoidable complexity, caused by under- and over-engineering. Mostly the latter.

                                                        If I had to identify the biggest culprit, that would be the OOP cult: all these organisation "principles" (not just SOLID) that have little basis in reality, and ultimately causes programs to be up to several times bigger, and up to several orders of magnitude slower, than the reasonable thing that just does the job.

                                                        The slower part is mostly because we forgot the laws of physics, ironically: the speed of light that ultimately drives the cache hierarchy for instance. That stuff is so fundamental by the way that even we humans have similar limitations with our working memory. The reason we split our source code in manageable, relatively isolated chunks, is very similar to the reason CPUs work faster when memory locality is good.

                                                        This parallel by the way may explain in part why simpler programs tends to run faster.

                                                      • aetherspawn 20 hours ago

                                                        In python yes, but if you add or use only static types it clears this all up and the LLM will generate short, optimal code without edge case fluff.

                                                        • viklove 20 minutes ago

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

                                                          This is why no one lets you touch production code. lmao

                                                          • antonvs 8 hours ago

                                                            Sorry, but what you're describing sounds like ignorance in your part.

                                                            Code that needs to run in production environments has to deal with all sorts of issues that go far beyond just doing some sort of calculation. Scaling, concurrency, data integrity over time, maintenance over time, edge cases, code worked on by tags if people - all sorts of non-functional requirements which are not obvious to an amateur, which is what you are in this context.

                                                            If you're unfamiliar with all of that - as most scientific and ML programmers are - you're just not going to even recognize it when you see it, or recognize the need for it. And if you have the kind of personality that assumes anything you don't understand is unnecessary, you end up posting comments like the above.

                                                            • rf15 20 hours ago

                                                              my experience has been similar, working for over 20 years as an egineer: engineers like to talk too much, even with their code.

                                                              • dude250711 20 hours ago

                                                                > When I ask AI to write code with similar functionality, it's about 10x more code.

                                                                Using AI is still a skill in 2026. You do not have to one-shot it, you can prompt it to reduce the amount of code e.g. by dismissing unlikely edge cases or pointing it at some preexisting reference code.

                                                                • tayo42 20 hours ago

                                                                  I feel like alot of code complexity comes from making it testable in practice. To make unit testing possibly you need so many ways to hook into things and you need abstraction everywhere to make it possible.

                                                                • dgoodell 21 hours ago

                                                                  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.

                                                                  • necovek 18 hours ago

                                                                    The difference is that people will look at the "software bridge", and decide that it could really use a 16-lane roundabout in the middle of it. And software engineers would add it.

                                                                    A few months later, somebody would ask for a couple skyscrapers on the bridge. And software engineers would add them.

                                                                    Finally, someone will organize a concert on it, and 1M people will jump up and down on it, and it will come crashing down.

                                                                    And certainly, it's going to be due to the fact that software engineers do not do proper engineering.

                                                                  • amelius 21 hours ago

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

                                                                    • RunSet 17 hours ago

                                                                      "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

                                                                      • adrianmonk 20 hours ago

                                                                        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.

                                                                        • xkcd-sucks 1 hour ago

                                                                          No and yes; business logic and requirements are too complex because they encompass all the messiness and logical inconsistency of human endeavor. To which "1. Derive everything from specifications" totally misses the point.

                                                                          • yyyk 21 hours ago

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

                                                                            • cowlevel 20 hours ago

                                                                              Human software is not massively reliable. Anyone who has used a computer knows this is true.

                                                                              • written-beyond 20 hours ago

                                                                                If human software wasn't massively reliable then no one would bother using any computing device.

                                                                                • cowlevel 19 hours ago

                                                                                  Are you talking about how one in a billion is next Tuesday because computers run so fast, and one in a billion is pretty good reliability? Or are you actually making the argument that modern software rarely misbehaves even in wall-clock terms - are you arguing that something doesn't go wrong at least once every Tuesday?

                                                                                  • owebmaster 7 hours ago

                                                                                    The point is quite clear. Software works so well it changed everything in society the past 20 years. Saying software is unreliable makes zero sense.

                                                                                • agumonkey 6 hours ago

                                                                                  depends on what class of software. some are, trains are complex yet operate 24/7 with almost no failure. mainstream computing and webapps on the other hand..

                                                                                  • byward 19 hours ago

                                                                                    Maybe you’ve heard of this operating system called Windows XP? It had a pretty good run.

                                                                                    • mikewarot 16 hours ago

                                                                                      I had about 20 Windows XP workstations under my care... they would blue-screen when you needed them most, right before you printed the document you were done with.

                                                                                      It turned out to be the HP printer drivers... well actually the optimizing compiler used to create the HP Printer Drivers.... it decided that the floating point emulation could be unloaded once it was idle... but page layout (for print preview) used floating point, thus triggered the blue screens.

                                                                                      Once I figured that out (after a year+ hunt)... it got really, REALLY reliable.

                                                                                      • jurgenburgen 8 hours ago

                                                                                        Sounds like XP could have used some defensive checks instead of crashing the whole OS.

                                                                                        • yyyk 5 hours ago

                                                                                          It's code running at kernel level, it has access to nearly everything, it's very unlikely there's a place a check could have been added. Later Windows editions would significantly reduce access to kernel level.

                                                                                          Microkernels - which would have stopped any such crashes in the first place - were a popular idea in the 90s (due to a revival I'd say), but weren't very performant and in practice servers and desktops were made reliable enough without them. Google's Fuchsia is a modern example thereof.

                                                                                          • mikewarot 5 hours ago

                                                                                            Only an idiot would put device drivers in a kernel, like they all do.

                                                                                            • skydhash 5 hours ago

                                                                                              Most device drivers are just shuffling data back and forth according to some protocol. The actual user facing logic can be outside the kernel. This is why I like openbsd. Simple subsystems to provide a common interface for some drivers, then a controlling program/library for actual usage.

                                                                                        • cowlevel 19 hours ago

                                                                                          Yep, until late in its life it bluescreened all the time, I had to reinstall it several times.

                                                                                        • honeycrispy 20 hours ago

                                                                                          I use a computer, and no this isn't true. Why are AI enthusiasts trying so hard to pretend software was terrible up until last year?

                                                                                          There was good software and there was bad software.

                                                                                        • bgun 20 hours ago

                                                                                          Just because it’s humanly possible to build complex systems correctly doesn’t mean they’re likely to evolve that way while under human oversight. There are too many competing incentives within large organizations for any human collective to guarantee this.

                                                                                          Your comment comes off as a little shaming of organizations that don’t meet your standards, which seems to be most if not all of them including most institutions. Which is your right, but it gives the ick.

                                                                                          • layer8 20 hours ago

                                                                                            I don’t see how AI leads to complex systems being built more correctly, at least at the current state of affairs.

                                                                                            Regarding the standards not met: That’s because it would be more costly and/or take more time. Correct software is expensive and takes time. I don’t want to shame everyone who has been cutting corners, but the state the industry as a whole is in regarding software quality after 50-ish years really isn’t praiseworthy either. We could and should do better.

                                                                                            • written-beyond 19 hours ago

                                                                                              It doesn't.

                                                                                              Standards are dropping, fast. There's is no way to get what you wanted exactly from an LLM, you will 100% capitulate to the response if it comes within a margin of your expectations. That margin gradually widdens as usage increases.

                                                                                              I am not saying LLMs don't generate working code, they do. I use them all the time. But were basically on the exact opposite trajectory we were on 15 years ago. Everything written in high level languages and letting the machines improve performance, basically every startup being written in Python.

                                                                                              Now every startup is being written in Rust. However this time the quality of the implementation is garbage, which is okay since it's cheap to do again but only till a threshold of complexity.

                                                                                              Look at somewhat successful 100% Vibe coded projects like T3Code. It's a nightmare to use, riddled with bugs, getting updates every couple of days. Vibe coding is 600x-ing your velocity but the software being produced is nothing short of a dumpster fire.

                                                                                          • spiderice 20 hours ago

                                                                                            > Humans built massive reliable software system

                                                                                            Where? Lol

                                                                                            All of our massive "reliable" software is currently being torn apart by AI. All the vulnerabilities that have existed for decades, hidden, are being found.

                                                                                            Further, show me a bug free piece of software. You can't. Because humans absolutely suck at writing software. It's so hard to do reliably that it's fairly safe to call it impossible for a human. We can do a decent job, sure. But the best software in the world is bug ridden and vulnerable.

                                                                                            So no, humans are absolutely incapable of creating massive, reliable software.

                                                                                            Source: The past 6 months worth of zero days.

                                                                                            • yyyk 19 hours ago

                                                                                              'Reliable' does not indicate no bugs, much less no security bugs (plenty of people deprioritize those). It indicates working correctly for years even without supervision. Human built software is reliable, just like the website you're posting on.

                                                                                              The security bugs found (there were worse in the past) is a passing phase, and in any event, a result of using insecure software languages that humans could have avoided and in many cases did avoid.

                                                                                              I still haven't seen AI 'tear apart' software actually written with secure practices (or at least by people who pay attention to security and not just features) - memory safe language, separation of concerns, least privilege principle, auditing, etc.

                                                                                              If AI can tear down everything, well, there's a lot of free money in crypto circles for it to take, right? Or perhaps software was done just right enough to avoid this.

                                                                                              • watwut 5 hours ago

                                                                                                Here, back in the real world where internet was working for decades and planes were flying for decades. Reliable does not mean perfect. "Humans are able to create reliable systems" does not imply "every single low importance system is reliable".

                                                                                                • Jabrov 20 hours ago

                                                                                                  What, and AI is writing bug-free software?

                                                                                                  The browser you're using, the OS you're using, the firmware linking it to your hardware, the networking stack allowing you to post this comment... they're all massive reliable software systems.

                                                                                                  Sure, they have bugs and vulnerabilities. But at this scale it's practically impossible not to. Especially with changing requirements and behaviors.

                                                                                              • doug_durham 20 hours ago

                                                                                                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 21 hours ago

                                                                                                  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 21 hours ago

                                                                                                    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.

                                                                                                    • prestonvasquez 19 hours ago

                                                                                                      > 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 16 hours ago

                                                                                                        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 17 hours ago

                                                                                                          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 19 hours ago

                                                                                                            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 1 day ago

                                                                                                              Many handle it just fine.

                                                                                                              • maxrev17 21 hours ago

                                                                                                                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 20 hours ago

                                                                                                                  "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 20 hours ago

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

                                                                                                                    • 0c3ca83 21 hours ago

                                                                                                                      Betteridges law of headlines strikes again.

                                                                                                                      • 0xbadcafebee 20 hours ago

                                                                                                                        > 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. The business doesn't care if the software is crap, and the people running the AI agents don't know how to make it better. AI can't read your mind; you have to explain to it what you want, and how it should be done, or it'll just do whatever it feels like, which isn't necessarily what you want or need.

                                                                                                                        • AIShill101 1 day ago

                                                                                                                          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.

                                                                                                                          • dingaling911 21 hours ago

                                                                                                                            At the moment, oversight is still heavily required.

                                                                                                                            Before, we used to write code and machines converted it to binary.

                                                                                                                            Now we will write designs and machines will convert it to code (and then to binary.)

                                                                                                                            There is a possibility of models taking over design for somewhat run-of-the-mill applications with minor architectural tweaks. This is the area that "vibe coding" is currently dominating. How many vibe coded apps, written by others, are you using? None. So that tells you something.

                                                                                                                            At best, models are currently at VB6 level: domain experts can do a lot of good. But they could've done it with VB6 as well. And MS Access. And Excel.

                                                                                                                            I am not sure how we would give the models an idea of taste and beauty because that is often what differentiates good/bad from great designs.

                                                                                                                            • onion2k 21 hours ago

                                                                                                                              This new era of AI assisted or driven coding is going to help us extend our capability way beyond anything humans could've built.

                                                                                                                              For individuals, sure. I'm fairly sure we're all building things that we couldn't build ourselves if only because we don't have the time needed. For large scale projects like building an OS from scratch or a database engine that's a lot less likely to be true, simply because there are dozens of examples of humans doing that level of complicated work without AI already (the OSs and DB engines we have are very literal evidence of it.) They just need to work collectively. Every part of those projects is understood people a person even if no person understands the whole thing.

                                                                                                                              So the problem with doing the same sort of thing with AI becomes a question of whether someone can build the equivalent sort of project with AI by describing something more complex than they understand themselves. And even if they just ignore the complex details and let AI do that bit, how can they validate that the AI has actually done what they asked if they can't understand it? It might have taken a shortcut that works until it doesn't. I hope no one builds an aviation or a life support system by doing that.

                                                                                                                              Ultimately, I suspect we want to be able to understand the system even if it limits what we build. A system that fails in an edge case carries significant risk which people probably don't want to be liable for.

                                                                                                                            • ex-aws-dude 21 hours ago

                                                                                                                              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”