Re:Ask HN: COBOL devs, how are AI coding affecting your work?
by antonvs on Monday January 19, 2026 @10:38AM
(#46680155)
The weakness goes beyond lifetimes. In Rust programs with non-trivial type schemas, it can really struggle to get the types right. You see something similar with Haskell. Basically, proving non-trivial correctness properties globally is more difficult than just making a program work.
[ Parent
| on HN ]
Re:Ask HN: COBOL devs, how are AI coding affecting your work?
by drrotmos on Monday January 19, 2026 @10:50AM
(#46680304)
True. I do however like the process of working with an AI more in a language like Rust. It's a lot less prone to use ugly hacks to make something that compiles but fail spectacularly at runtime - usually because it can't get the ugly hacks to compile :D
Makes it easier to intercede to steer the AI in the right direction.
Re:Ask HN: COBOL devs, how are AI coding affecting your work?
by fzzzy on Monday January 19, 2026 @11:07AM
(#46680550)
Luckily that's the compiler's job.
Re:Ask HN: COBOL devs, how are AI coding affecting your work?
by antonvs on Monday January 19, 2026 @11:43AM
(#46681093)
Yes, I was referring to writing the proofs, which is very much the human or LLM's job.
Re:Ask HN: COBOL devs, how are AI coding affecting your work?
by jmalicki on Monday January 19, 2026 @10:15PM
(#46687508)
How is this an issue specifically with Rust and Haskell? Do you find that LLMs have an easier time proving global correctness with C, Python, or Typescript?
Re:Ask HN: COBOL devs, how are AI coding affecting your work?
by antonvs on Tuesday January 20, 2026 @12:54AM
(#46688369)
Yes, because those other languages all have much weaker type systems.
Re:Ask HN: COBOL devs, how are AI coding affecting your work?
by jmalicki on Tuesday January 20, 2026 @07:59PM
(#46699872)
Do you have examples of LLMs proving global correctness for say, C? Having worked on static analysis for both C and Rust, Rust is the easier problem because of the type system, but I am eager to be proven wrong!