Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. OpenAI Expands ChatGPT Ads with Sponsored Agents(openai.com ↗)
    59comments
  2. The Google Play app review process now regularly takes longer than a week(gultsch.social ↗)
    161comments
  3. Mistral X Mozilla: Private, Multilingual AI Browsing(mistral.ai ↗)
    81comments
  4. DeepMind Paper: Dream-RSI: Recursive Self-Improvement Through Evolving Worlds(arxiv.org ↗)
    8comments
  5. Salesforce Global Outage(salesforce.com ↗)
    83comments
  6. ImpactGate: A merge gate that scores the structural decay AI adds(github.com/officefloor ↗)
    29comments
  7. Introducing System One Models and Jev(typesafe.ai ↗)
    444comments
  8. Hackers Got Inside a Flock Camera. Its Data Shows How the System Works(wired.com ↗)
    42comments
  9. Show HN: How Stale Is Your AI? Release age and training cutoff for 20 models(stale.jock.pl ↗)
    8comments
  10. Show HN: An e-ink frame that hears birds and draws them as 1800s illustrations(github.com/arnegiacomo ↗)
    217comments
  11. Kyber (YC W23) Is Hiring a Forward Deployed Engineer(ycombinator.com ↗)
    discuss
  12. Scaling Golang CI by Replacing actions/setup-go(cloudx.ai ↗)
    1comments
  13. Apple Reference Image: A New Approach for Verified Photography(security.apple.com ↗)
    248comments
  14. Original Sony PlayStation 2 security chip 'broken wide open' after 26 years(tomshardware.com ↗)
    33comments
  15. How Big Are Factorials?(thegreenplace.net ↗)
    3comments
  16. Douglas Adams and the exterminated Doctor Who adventure(bbc.co.uk ↗)
    25comments
  17. An update on Wayback Machine access(blog.archive.org ↗)
    334comments
  18. Learning Programming in an Age of LLMs(ploeh.dk ↗)
    90comments
  19. Doing Everyone Else's Job(yosefk.com ↗)
    65comments
  20. DeepSeek v4.1 Flash Is Now Our Best Hacking Model(enclave.ai ↗)
    discuss
  21. Show HN: I made a flight simulator, except you're just a passenger(inflightsimulator.com ↗)
    160comments
  22. Gemini 3.8 Live and 3.8 Live Extended Thinking(blog.google ↗)
    304comments
  23. Intelligence per Watt: Measuring Intelligence Efficiency of Local AI(arxiv.org ↗)
    21comments
  24. Why I'm still bearish on LLMs after Navier-Stokes(dank.systems ↗)
    409comments
  25. We do modern frequentist statistics: Using fake-data simulation(columbia.edu ↗)
    7comments
  26. A software thing I built: GPS on a 25MHz 486-SX(vcfed.org ↗)
    17comments
  27. German Rheinmetall open-sources its Battlesuite connected weapon system protcol(rheinmetall.github.io ↗)
    95comments
  28. Recreating Voodoo Graphics and a Late-1990s Gaming PC on an FPGA(nand2mario.github.io ↗)
    46comments
  29. Building a Linux GPU Driver for the M4 Mac Mini in One Month(codyho.dev ↗)
    234comments
  30. Negativland, Culture Jamming, and the Art of Making Something New(blog.archive.org ↗)
    26comments

ImpactGate: A merge gate that scores the structural decay AI adds

28 pointsby 1h agogithub.com
29 comments
1h agoHN ↗

Nice idea. Our new CTO brought in a tool he made for analyzing cyclomatic complexity and it’s been useful since we’re a heavily AI-forward shop.

BTW, you can avoid your comments being flagged and killed by writing them yourself! I know it’s tempting to offshore it to AI (especially after you’ve vibe-coded a whole project) but some genuine human communication goes a long way.

1h agoHN ↗

I know cyclomatic complexity has been heavily debated for a long time, but I do think it’s valuable. It’s really good at highlighting common annoyances like overly clever code, nested ternaries, dense functions with too many branches…

The only thing is that these issues seem like human code problems and IME LLMs don’t really write code like this anymore. It’s almost the opposite in python, actually, where Claude leans on writing lots of 2-3 liner private utils which is a separate kind of complexity and organization problem.

I still find it useful specifically for React where it’s frustratingly normalized to write many branches in your JSX though.

46m agoHN ↗

The difference to previous CC use, is the the change impact formula looks at the complexity already in the class/file. Typical CC just looks at the function it is change and not the context of the change. The Change Impact formula incorporates that to avoid god class and god method issues. Plus multiplying by number of files punishes for non-cohesive code bases. For me it puts the intuition of high cohesion and low coupling into a measurable metric.

1h agoHN ↗

The overuse of “gate” in this post title makes me think the entire thing was vibe coded even the marketing.

1h agoHN ↗

Personally I’m ok with vibe coded projects - certainly feels like the future of things, and I think the line between vibe coded and “professionally” coded is increasingly blurring - but I completely agree on the marketing/communications piece. Ideally your communication about a project conveys real expertise and ownership, signaling that you really understand the problem you’re trying to solve and the tradeoffs you made in your approach to do so. I am very hesitant to use a project where it feels like the eng couldn’t pass a pop quiz about how it works + why.

1h agoHN ↗

Seems like the posts on this site are largely LLM-generated though? Correct me if I’m wrong.

41m agoHN ↗

"That is a lot to ask of one number. Here is how it fits into one. Built one decision at a time." it sure sounds like Claude.

51m agoHN ↗

Uncanny how any coding model I use will employ the word "gate".

35m agoHN ↗

Probably because I've had Quality Gates in my pipelines for so long :)

1h agoHN ↗

A sloppy project to find slop in projects. It sure works well

1h agoHN ↗

Interesting idea even for non-AI code.

50m agoHN ↗

Yes, I've run it against a bunch of open source projects with long histories (before AI) to see if it predicts bugs. Seems file size is still a better predictor. However, for the projects where good coding was strictly adhered to and others that were not, it showed the differences appropriately. So I've found it useful in general for Software erosion.

1h agoHN ↗

Yes, I'm doing my own research on AI augmented pipelines https://blog.officefloor.net . I actually found most code quality tools look for bugs and complexity, but nothing much about cohesive erosion. The nice thing about this metric, is that it determine the files where the erosion is occurring. I turned it into a GitHub action to make it easier to access to get wider feedback on the metric. The GitHub action triggers on your merge request and tells you the files where erosion is occurring to refactor. This stops erosion before it gets too expensive to change (big refactors or rewrite). Yes, happy to work with others to get the metric into other tools.

41m agoHN ↗

What exactly is “cohesive erosion”?

19m agoHN ↗

Comes from the basic Computer Science principals of High Cohesion and Low Coupling.

High cohesion means the functionality of a component are closely related and focused on performing a single well defined task. Basically single classes for single purposes.

Erosion of this is when classes start doing to many things, in the case of God classes.

The Change Impact formula looks at a way of detecting when the cohesion is eroding and flagging it on a change (as the pull/merge request itself should generally be single focus cohesive change)

37m agoHN ↗

I've never encountered that term before (cohesive erosion) but I like it, if I'm interpreting it correctly.

Do you mean like the hyper focus an LLM puts on the task in front of it so you end up with drift (duplicated concepts/multiple ways of doing things, terminology drift (e.g., now we have "customer" and "client"). That sort of thing?

26m agoHN ↗

When you think about a god class or god method, it occurs over time by adding more than a single responsibility.

Yes, there are generally complex algorithms but they usually are not things developers write (imported from libraries).

What is usually going on in the god class/method is that things keep getting added to it. These things should be separated out. So the cohesiveness of the class/method erodes into doing too many things.

The idea of the Change Impact formula is to catch this early so you start refactoring to separate out into classes with single cohesive purposes.

The problem with AI is it handles complexity really well and will happily keep piling changes into god classes/methods reaching ridiculous CC levels (have see over 200). Previously developers would get annoyed and do the refactor. But with AI these days, changes are happening faster. So Change Impact is to try to monitor the cohesive erosion.

1h agoHN ↗

That project in itself looks very interesting. How are people using it, any examples of how people get this into an actual report / CI test / benchmark / whatever ?

34m agoHN ↗

Code metrics in general aren’t that widely used. I’ve only ever worked at one place (a bank) that tracked it, and that was only because sonarcube had it built in.

While a lot of metrics make intuitive sense, we don’t have that much hard evidence to prove or disprove their value. Part of it is the whole “if a metric becomes a target, it ceases to be a good metric” thing. Adding the checks to a large existing project probably has negative value. But I think it’s worth doing for greenfield projects.

For humans, these should just be advisory. But for LLMs I’m happy enough to make it a blocking check.

I keep thinking of doing an experiment where I give the same LLM the same problem, and only change which metric is enforced. And then see if any of them have a noticeable effect on correctness/maintainability.

any examples of how people get this into an actual report / CI test / benchmark / whatever ?

Yeah they have examples of adding it to CI, or local checks, generate html reports, etc in their docs.

19m agoHN ↗

I think the future of development will be a lot of automated quality checks like these on AI-drafted code that humans review and ensures that it doesn't muck up the business logic and actually fulfills the acceptance criteria. that said, I don't think existing toolsets are really great at actually measuring code quality

I've been in the process of reviewing and validating a lot of tools like this (qlty, Sonarqube, fallow, etc) and the false positive rate is anywhere from 20% to 80% for a lot of our sniff tests (zizmor produces an overwhelming majority of false positives here for what feels like arbitrary and very context-dependent GHA requirements)

the last thing I want to do is to annoy the hell out of our devs by requiring checks like these to pass especially since it's only a small percentage of them who vibe code everything and then also vibe response to code reviews. I feel like that's the anti-pattern that we'd push people towards by requiring checks like these to pass

another avenue of exploration has been requiring test coverage but also good test quality metrics (eg are there negative tests? mutation testing? empty asserts?) something that seems quite easy to spin up into a skill and pair with a deterministic harness. trash-tests is a neat little project that incorporates some of this: https://github.com/frangelbarrera/trash-tests (disclosure: I am not the repo owner or even a contributor, just a quality nerd who loves underdogs lol)

all in all, it really does feel like we'll need a revamp of the SDLC with our current expected velocities

2m agoHN ↗

Yep, this all actually started because of experimenting with my own open source project https://officefloor.net (giving full disclosure)

I was testing the additive pipeline style of OfficeFloor against the mutative handler style of Spring. I was looking to see what factors could be used to allow AI to make long on going changes (experiment is 60 changes to an end point, where all add functionality and every 4th change is mutative on existing rules). Then I watch how AI manages to make the 60 changes in each architecture.

I've done many runs and you are quite right about Goodhart effect in giving it the metric. Never knew Spring code could be written so badly.

I've tried runs with better prompting also and I'm starting to find the key factor is actually the architecture itself.

From my initial findings, it's seeming that additive pipeline architectures hold up much better against AI slop than our typically single method web handler architectures.

24m agoHN ↗

Great way of detecting AI slop.

Claude is pretty good at adding focused changes and if a fix is already present, then it correctly points it out rather than adding unnecessary refactors.

15m agoHN ↗

I'm not looking at building prototypes. Looking at ways to manage code bases after they've gone through hundreds if not thousands of changes.

18m agoHN ↗

What languages does this support? I'm guessing it's Python only, but it would be nice if that was mentioned somewhere.

18m agoHN ↗

What's the structural decay score of this HN title? Apparently not high enough to be gated.