Live data from Hacker News

Go is an ideal language for AI-assisted software engineering

developers.googleblog.com

1–10 of 586 posts

Re: Go is an ideal language for AI-assisted software engineering

#6
post #2

Rust is better. It just is. Go is not bad. But as a long time go advocate, the hurdle for my teams using rust is gone, and thus everything is now rust.

Personally I find Rust a lot harder to read than Go.

If you're going to have an agent write most of your code readability is very important.

Re: Go is an ideal language for AI-assisted software engineering

#7
The killer feature of golang for LLM dev is the tooling.

forbidigo is what allows me to keep ambient config out of my app, and restrict file access to a small set of paths. The coverage tool has "nocover", so you can guarantee that every realistic path is exercised at least once ("100%" code coverage, which is not a marker for testing completeness, but rather for flagging code you forgot to test). Linting is really good as well.

The only thing I haven't found is something to enforce error handling. Rust is better for error paths because you're not allowed to ignore them.

Re: Go is an ideal language for AI-assisted software engineering

#8
post #2

Rust is better. It just is. Go is not bad. But as a long time go advocate, the hurdle for my teams using rust is gone, and thus everything is now rust.

I agree, but this doesn't justify anything. Saying rust is better because it "just is" won't convince anyone. I'd like to know why you think it's better.

Re: Go is an ideal language for AI-assisted software engineering

#9
post #4
post #2

Rust is better. It just is. Go is not bad. But as a long time go advocate, the hurdle for my teams using rust is gone, and thus everything is now rust.

can you elaborate?

Rust compiler is a tyrant. Type system is strict. Borrow checker is relentless. LLMs can't slop too much without being beaten up by the compiler.
Post reply on HN