logoalt Hacker News

dwb • yesterday at 9:36 PM • 5 replies • view on HN

It’s a 1.5M line TypeScript and Rust codebase, fairly conceptually dense and complex, but in decent shape otherwise. Both models will happily write 200-line functions, no blank lines or comments, badly named variables, un-factored, horrible to read. They can manage better when told to improve it but I don’t remember code generation being this bad off the bat since pre-Opus 4.5.


Replies

aerhardt • yesterday at 11:13 PM

I see the same with both model families, I've honestly come to believe that current commercially available models can't produce "decent" code unless you load your codebase to the gills with static analysis tooling and checks.

➕ show 1 reply
tezza • yesterday at 10:23 PM

Thanks, that really helps. That does sound like a regression. Have you evaluated downgrading to 6.1-Sol? Not that doing so is your job... that's OpenAI's job!

➕ show 2 replies
mycall • yesterday at 10:18 PM

Couldn't some changes to AGENTS.md with "lint often" with style rules and proper code cookbooks help solve that?

➕ show 1 reply
slopinthebag • yesterday at 10:35 PM

this has been happening since astra was released and it affects sol as well now. i think it's a side effect of how it's trained to emit tool calls, it's optimising for conciseness when outputting a 200 line python tool call, and that bleeds into the code that it generates. it's so bad that i had to stop using those models, even though they were effective (sorry i still care about the code) and the code technically works. i think a lot of people simply dont care and even see it as a positive (more concise for the model to understand). it just doesn't care about human readability at all, perhaps it was even explicitly trained to do this, who knows.

oh well, neon is my new model of choice and is a breath of fresh air compared to gpt's codeslop and claude's wordslop.

IshKebab • yesterday at 10:25 PM

> no blank lines

Yeah what's up with that? I get it doesn't help the models but they seem to manage blank lines in other situations, yet Opus 5.5 will almost never put them in Rust functions unless I explicitly tell it to (which does work). Seems to be language dependent too. It happily puts blank lines in other languages.