Pop!_OS bans AI-generated code from much of its codebase
Thread
Unofficial Hacker News client; not affiliated with Y Combinator.
Pop!_OS bans AI-generated code from much of its codebase
Unofficial Hacker News client; not affiliated with Y Combinator.
brink · · focus · HN ↗
lucianmarin · · focus · HN ↗
dnautics · · focus · HN ↗
Are you in Python by chance? Python has a lot of crazy hidden/inexplicit/spooky action at a distance stuff (especially in the frameworks) that can make LLMs gunk up code by defensively programming or just burn context chasing data provenance
fasterik · · focus · HN ↗
globular-toast · · focus · HN ↗
fasterik · · focus · HN ↗
sashank_1509 · · focus · HN ↗
A model can reproduce large swaths of its training data exactly. It’s a different algorithm that powers its learning process (it’s why it needs trillions of tokens to even learn basics of language).
If there was a spectrum from copying on one end to creative production inspired from something else on the other end, the human generally lies heavily on the right end, while the model is much more on the left, that gap is large enough, that yes the model is in some sense “copying”.
XajniN · · focus · HN ↗
[dead]
fasterik · · focus · HN ↗
Just because a model can reproduce parts of its training set doesn't mean that's what it's doing when it solves a programming problem. It can also reason about the problem, draw on its knowledge of algorithms and data structures, write tests targeting APIs it's never seen before, generate synthetic data and run experiments, etc. etc. Also, the claim that it can reproduce large swaths of its training data verbatim is an empirical one. I would be surprised if it could even reproduce 0.1% of the books it's ingested, for example.
Saying that AI can't do anything but copy or steal from humans seems to be a rhetorical technique used by people who are still unaware or in denial about the capabilities of the agentic systems released in the past few months. They can now one-shot theorems and programming problems in a few minutes that would be difficult and time-intensive for even the 99.9th percentile human expert.
sashank_1509 · · focus · HN ↗
No human on earth can copy at this scale. Yes AI is beyond a database lookup, it does have reasoning on top of this knowledge, but my original claim that if there is a spectrum between copying with minimal changes and creative inspiration with minimal copying, AI is one the copying end while humans are on the creative end. Humans are very bad at reproducing anything verbatim, even if they wrote it like a week ago.
fasterik · · focus · HN ↗
I'm skeptical that there is a single spectrum like you're describing. It's not well defined. Say a human and an LLM prove a new theorem independently (without external help, i.e. from their own neural weights and reasoning). How do we measure how much each of them copied from previous work, as opposed to having learned from or been influenced by it?
bitexploder · · focus · HN ↗
fignews · · focus · HN ↗
runarberg · · focus · HN ↗
fignews · · focus · HN ↗
nvme0n1p1 · · focus · HN ↗
A good workman shuts up and finds better tools without complaining.
runarberg · · focus · HN ↗
sirsinsalot · · focus · HN ↗
Save your "you're holding it wrong" if you're not going to suggest how to hold it.
Cult speak escape hatches are intellectually lazy.
williamcotton · · focus · HN ↗
Edit: My latest project is all GPT-6 Astra High. It takes a lot of steering to keep it from adding a bunch of, while useful, features that are not strictly enough to the point. That main issue is it’ll use a lot of extra tokens in the process!
What was your process?
hirvi74 · · focus · HN ↗
In case it is unclear, I am genuinely curious. I have great success with chatbots, but vibing coding has never gotten me further than a proof-of-concept.
[deleted] · · focus · HN ↗
[deleted]
williamcotton · · focus · HN ↗
<a href="https://williamcotton.github.io/datafarm-studio" rel="nofollow">https://williamcotton.github.io/datafarm-studio
Some demos of the above charting language:
<a href="https://williamcotton.github.io/algraf/demos" rel="nofollow">https://williamcotton.github.io/algraf/demos
WASM, in browser editor, LSP, and more.
fignews · · focus · HN ↗
<a href="https://github.com/NousResearch/hermes-agent" rel="nofollow">https://github.com/NousResearch/hermes-agent is 99% (just a guess) LLM generated. 1140 closed pull requests this week. 1.5k closed issues. The github insights page for commits doesn't load for me presumably because it can't handle this scale of commits. But I estimate ~1K commits per day on average.
There's a blog entry <a href="https://nousresearch.com/refactoring-hermes-with-1393-agents" rel="nofollow">https://nousresearch.com/refactoring-hermes-with-1393-agents that details some work that was done by LLMs to refactor and improve the code.
I guess they know how to hold it?
chmod775 · · focus · HN ↗
I had a look at the kind of issues that are reported at that project (there's 15k of them, so I can at best assess a couple). It looks like a complete mess: A lot of concurrency and resource mismanagement issues and edge cases that in a better-managed project would have been avoided by construction. They will now will likely be solved by more defensive programming, driving overall complexity ever upwards.
If you really want to check some quantity metrics to try to reason about code quality, look at whether "fix" PRs are overall LOC neutral or negative (not counting tests). In this project, almost every "fix" is an addition. Worse, almost every fix is more branching.
If almost every PR is some sort of fix, and most of them add branching, and there's thousands of them weekly... That leads to only one place and I want to be nowhere near it.
nvme0n1p1 · · focus · HN ↗
Show me an AI that adds features by deleting code (<a href="https://www.folklore.org/Negative_2000_Lines_Of_Code.html" rel="nofollow">https://www.folklore.org/Negative_2000_Lines_Of_Code.html) and I'll pay attention.
northstar702 · · focus · HN ↗
[dead]
diek · · focus · HN ↗
Your response was: "Well you're not doing it right, but these hermes devs know what they're doing".
But the blog post you linked to shows their prompt, which is:
> I want god files broken up. I want simplification across the board. I want unification of helpers and methods that can be reused. I want less if-if-if-if-if-if-else routing. I want code legibility up. I want interpretability of the codebase and how things connect to each other up.
So it sounds like AI made their code a mess too. They then tried to make the point of how much money they saved cleaning up the code with AI, that AI made a mess of to begin with.
And if you look at the merged PRs on that project, a ton of them are bug fixes... to the code the AI wrote. And that's been my personal experience too: AI creates a huge amount of churn in a codebase. Just vast amounts of PRs fixing code that the AI itself wrote.
catlifeonmars · · focus · HN ↗
I’m saying it’s probably multiple factors and both you and GP are right.
satvikpendem · · focus · HN ↗
Keyframe · · focus · HN ↗
rickydroll · · focus · HN ↗
Seriously, I find I need to slow down the rate of change. I don't move forward until I understand the change proposed and have updated the docs. At the same time, I find that keeping up with the LLM/agent is exhausting. 3 hours with an LLM leaves me as tired as 6 hours with a keyboard had previously. I find that coding when tired or fuzzy yields code that shouldn't have been written in the first place. Sadly, once it's been written and debugged, the temporary fix becomes permanent.
cyanydeez · · focus · HN ↗
I'm using local models, and they go slow enough that I have no trouble following along with what they're doing; but visually, both go and typescript, along with react native, make me puke. So I wouldn't be able to do this without AI.
I describe how to do it in my comment history, but it's basically a Super-TDD along with some custom engineering harness.
I don't want to say skill issue, but the same way you can give a chain saw to a teenager and one to a skill craftsman, well, AI can obviously create whatever you want it to do.
I think some of the variety is simply how fast SOTA models pump out garbage that you simply have to close your eyes because it's not sensible to just watch characters flow across the screen.
Almost all the coding I'm doing via AI is just faster than readable. But I can see the thinking traces and I stop to model when it's obvious it doesn't understand my intent, etc.
So I'm not doubting you created garbage. I'm just doubting that it's a product of soley AI use.