logoalt Hacker News

bananaflag • yesterday at 10:33 PM • 7 replies • view on HN

From ~17M lines to just ~76k lines, a 99.56% reduction.


Replies

gregdeon • today at 1:34 AM

It's worth noting that the 76k line version is heavily "golfed" (e.g., cramming the same content into fewer lines), which heavily hurts readability for the sake of a smaller line count. A more sane version is around 300k lines. Still, a massive reduction!

The proof also still contains a few unused intermediate results. Sounds like these were neat findings where the proof of RH ultimately only needed a weaker version of the result, but folks at Anthropic thought it would be worthwhile to finish fleshing out the details.

➕ show 1 reply
w-m • yesterday at 10:52 PM

Meanwhile, the community-driven compression with a hundred contributors and thousands of pull requests sits at a mere 33% reduction.

Why this huge discrepancy?

https://riemann.verifytask.cn/

➕ show 5 replies
josephg • yesterday at 11:15 PM

Does anyone have any tips for simplifying llm output like this using LLMs? I’ve never had any luck getting Claude to simplify code unless I just reprompt.

➕ show 1 reply
6thbit • yesterday at 10:59 PM

That's interesting. If the method used to reduce is applicable to arbitrary software libraries, we could be able to simplify a lot of cruft that may help making some systems easier to understand.

chubot • today at 12:23 AM

That is some ratio! I picture Alpoge just hacking like crazy on Claude and not looking at the code! I guess he has a strong intuition and just keeps piling stuff on in parallel.

Then he makes it "go green", and doesn't care about cleaning it up

I only did CTF once or twice, long ago, pre-AI ... but that's how I felt: just keep writing code and trying things. No cleanup. Whereas when I write code I plan to maintain, I probably do too much cleanup and refactoring.

➕ show 1 reply
seizethecheese • yesterday at 10:50 PM

76k lines sounds like it would just about fit into a 1m token context window. Cool.

➕ show 1 reply
qwrt1a • yesterday at 10:34 PM

They needed to show off code golfing for Friday's stock support.

➕ show 2 replies