by ForHackernews · 3d ago · 0 comments
Every programming language is a tradeoff between performance, safety and programmer ergonomics. I trust LLMs will make this tradeoff obsolete, meaning we'll finally be able to ditch programmer ergonomics and some safety (testing can get better, tooling can get better, LLMs aren't as susceptible to footguns) and mostly ditck programmer ergonomics. This means we can finally write efficient software. And you won't implement highly performant software in a GC language.
I'd rather trust a deterministic garbage collector than a nondeterministic LLM.
I didn't say they were immune, I said they were less susceptible, and languages like Rust already eliminate most footguns. Humans are also nondeterministic, which is why we rely on tooling and tests.
I think LLMs write good Golang (e.g. they write the same golang anyone does) and mediocre to poor Rust, maybe because Go is simpler, or there's more examples in the training set.
Go also compiles extremely fast so that helps AI agents do tight loops to find and fix bugs.
It's extremely powerful and ergonomic, and as a result I stuff things into bits as a matter of course. If I have four of one option and eleven of another, why use two bytes when one will do? Packing and unpacking is branch-free, which means it can mostly be ignored when reasoning about performance: unlike memory pressure, which is only becoming more important over time.