I don’t know how stupid of a suggestion this is, but if no one is reading the code anymore (I do, but I hear many in much more elite shops than mine do not), then should we not just be using AI to write binary or machine code?
If you're going all the way down that route, you might use something like Ada or OCaml or Haskell. They can catch classes of errors at compile time that Rust does not cover.
I agree. I was writing a task runner, and when I used generative AI to write Haskell code, it tended to produce higher-quality code compared to other languages. In particular, I’ve rarely encountered runtime errors when testing the code.
On the other hand, when it came to design, there were errors where my intentions weren’t conveyed properly.
talon8635 · · focus · HN ↗
pianopatrick · · focus · HN ↗
Like I remember reading human studies that people make 1.5 - 5 errors per 100 loc.
If AI works in a similar way then we should stick to higher level languages that minimize loc
calvinmorrison · · focus · HN ↗
you can do a hell of a lot with a PERL one liner. What i'd recommend is extremely obvious languages like Golang
imron · · focus · HN ↗
pianopatrick · · focus · HN ↗
imron · · focus · HN ↗
Move errors from runtime to compile time as much as possible.
torudev · · focus · HN ↗