Hacker News new | ask | show | jobs
by linsomniac 10 days ago
>I'm not really seeing these mythical results from others either.

Ok, I'll bite. Let's take https://github.com/linsomniac/apt-cacher-ultra for example, it is a caching proxy server with some fairly tricky code around snapshotting.

It is code entirely written by AI, used by me every day and also used by some others. It's probably 2+ years of expert developer time if written by hand. It's around 8 months old, and has been serving requests for my fleet of ~200 machines in that time.

By the following measures, it has been "quality code":

- It is more reliable than the apt-cacher-ng software it replaced. - It allowed us to do machine reinstalls/upgrades/package installs when ubuntu.com was recently down. - The nature of the issues that have been raised with it by others has been nothing outside of what I would expect from human generated code: unanticipated corner cases, some queries that needed to be optimized, etc...

A couple years worth of effort for a few weeks of evening and spare time work is, it seems to me, pretty miraculous results.

So what would it take to change your mind that AI producing results is no longer mythical?

1 comments

Before I even look at the code: that repo appears to be a (a) small (b) greenfield project (c) with just one primary maintainer, yourself. It doesn't seem like anyone else has even had to read your code with any frequency at all, let alone gauge its maintainability and approve it.

In essence, you've drastically oversimplified the software engineering problem and turned it into something easy. It's like you're dealing with spherical cows, and wondering what all the fuss around cows is about. (And yes, of course AI gives you impressive speedup. It does even in tougher scenarios. When did I ever dispute that.)

In the real world you have new hires joining the company who have to modify code they have no familiarity with. You have large codebases with long histories that you lack tribal sufficient historical context and knowledge for. You have programs whose behaviors and correctness are a lot harder to characterize, assess, and maintain than just a caching proxy. And you have years/decades worth of millions of lines of code and comments that were written for & by humans, not AI, spanning eras with varying coding practices. Not to mention that the stakes are higher too: mistakes can cause a lot more damage than DoS or bad caching.

You can get away with a colossal amount of corner-cutting and otherwise-poor engineering practice under your conditions while still producing great output. (This was true pre-AI too, btw.) I've personally made great programs with e.g. almost no tests whatsoever as a solo developer. The hard parts of software engineering - including examples I gave in some sibling comments - rear their heads when your cows stop being so spherical.

... but, I'll take your bait again. This repo is from 9 months ago, well pre-Fable, and it shows the AIs ability to work with an existing code-base and implement something significant. Unfortunately, ganeti is a pretty dead-end project so this never got any traction, even I decided that I'm going to be migrating to Incus rather than using this patch in production.

https://github.com/linsomniac/ganeti

A first-class ZFS storage provider that includes a ZFS replication-based live-migration.

If anyone is baiting anyone, I feel like it's the other way around. But anyway... let me take a quick glance at recent commits on my phone while I'm on vacation... oh, here's a nontrivial one.

The claim was AI codes better than humans, right?

"Fix bugs, security issues, and dead code found in ZFS code review"

  -  pipeline = ("set -o pipefail; zfs send -i '%s@%s' '%s@%s' | %s" %
  -             (dataset, incremental_base, dataset, snap_name, ssh_part))

  +  q_dataset_base = utils.ShellQuote("%s@%s" % (dataset, incremental_base))
  +  pipeline = ("set -o pipefail; zfs send -i %s %s | %s" %
  +              (q_dataset_base, q_dataset_snap, ssh_part))
https://github.com/linsomniac/ganeti/commit/11a1c9e73354e7b8...

I haven't even looked at the other lines yet, but I wonder who had introduced these...

https://github.com/linsomniac/ganeti/commit/8c700e8b3f05013b...

"Co-Authored-By: Claude Opus 4.6"

Yeah, humans are fallible too, but I can tell you that neither I nor my coworkers tend to write shell-injection vulnerabilities this blatant in 2026. And if we somehow did by accident, others would catch it during code review. In fact, even today's AI would probably catch this during code review...

... in fact AI DID catch this in code review.
Man, you are moving the goalposts.

But, you didn't look very hard; the Contributors file lists more than just me.