Comment by hu3

5 hours ago

Java has decade(s) of cruft and breaking changes which LLMs were trained on. It's hard to compare. Plus Go compilation speed/test running provides quick iteration for LLMs.

All you need is a JAVA_CODING_GUIDELINES.md with some hints about what kind of Java code you like the agent to write.

breaking changes? hardly.

  • Yes, breaking changes. And many ways to do the same thing because the language kept evolving (thankfully).

  • There is a decently long list of breaking changes now. Removing JavaEE modules from the JDK, and restricting sun.misc.Unsafe, are the ones people usually run into.

    • These are relatively small-scoped library changes only though.

      Meanwhile Go already had a language change, while being less than half its age (loop variable capture).

      3 replies →