Heard an excellent COBOL talk this summer that really helped me to understand it. The speaker was fairly confident that COBOL wasn't going away anytime soon. https://www.youtube.com/watch?v=RM7Q7u0pZyQ&list=PLxeenGqMmm...
There are many in-house tools (say at banks) where Java code generates... COBOL. It's wild: in the video you linked it's explained COBOL was meant for machines that don't exist anymore so COBOL is running inside emulators. So you have Java code, generating COBOL code, that's then run on an emulator emulating an old IBM system that was meant to run COBOL. It's just wild . Some of the tools are even front-facing users…
Ask HN: COBOL devs, how are AI coding affecting your work?
161–170 of 190 posts
Re: Ask HN: COBOL devs, how are AI coding affecting your work?
#162COBOL migration is one of Devin's advertised capabilities: https://docs.devin.ai/use-cases/examples/cobol-modernization https://cognition.ai/blog/infosys-cognition
I’m looking at a signal with no way to validate it (that this person may be biased?, exaggerating?, or lying?).
Stop downvoting without replying - it’s really unhelpful.
Re: Ask HN: COBOL devs, how are AI coding affecting your work?
#163Earlier quoted context omitted.
AI isn’t particularly great with C, Zig, or Rust either in my experience. It can certainly help with snippets of code and elucidate complex bitwise mathematics, and I’ll use it for those tedious tasks. And it’s a great research assistant, helping with referencing documentation. However, it’s gotten things wrong enough times that I’ve just lost trust in its ability to give me code I can’t review and confirm at a glanc…
AI is pretty bad at Python and Go as well. It depends a lot on who uses it though. We have a lot of non-developers who make things work with Python. A lot of it will never need a developer because it being bad doesn't matter for what it does. Some of it needs to be basically rewritten from scratch. Over all I think it's fine. I do love AI for writing yaml and bicep. I mean, it's completely terrible unless you prompt…
I disagree with this. At least for Go.
Re: Ask HN: COBOL devs, how are AI coding affecting your work?
#164Earlier quoted context omitted.
AI is pretty bad at Python and Go as well. It depends a lot on who uses it though. We have a lot of non-developers who make things work with Python. A lot of it will never need a developer because it being bad doesn't matter for what it does. Some of it needs to be basically rewritten from scratch. Over all I think it's fine. I do love AI for writing yaml and bicep. I mean, it's completely terrible unless you prompt…
> AI is pretty bad at Python and Go as well. It great in Golang IF its one shot tasks. LLMs seem to degrade a lot when they are forced to work on existing code bases (even their own). What seems to be more a issue with context sizes growing out of control way too fast (and this is what degrades LLMs the most). So far Opus 4.5 has been the one LLM that keeps mostly coding in a, how to say, predictable way even with a…
I find this to be true only if you have very explicit rules in CLAUDE.md and even then it still messes up.
I have "you will use the shared code " twice in my CLAUDE.md as it will constantly write duplicate code.
Something that is also annoying is that if it moves some code somewhere with the intent to slightly modify it I've seen it delete the code, then implement from scratch, and then modify it to what it has been specified to do. This completely breaks tests. I then have to say "look at this earlier commit - you've caused a complete regression."
Re: Ask HN: COBOL devs, how are AI coding affecting your work?
#165Earlier quoted context omitted.
vibecoding != AI. For example: I'm a senior dev, I use AI extensively but I fully understand and vet every single line of code I push. No exceptions. Not even in tests.
Whilst I agree with your point, I think what sometimes gets lost in these conversations is that reviewing code thoroughly is harder than writing code. Personally, and I’m not trying to speak for everyone here, I found it took me just as long to review AI output as it would have taken to write that code myself. There have been some exceptions to that rule. But those exceptions have generally been in domains I’m unfami…
So you re-roll the slot machine and pay the reviewing cost twice
I don't think AI's biggest strength is in writing code
Re: Ask HN: COBOL devs, how are AI coding affecting your work?
#166Earlier quoted context omitted.
> AI is pretty bad at Python and Go as well. It great in Golang IF its one shot tasks. LLMs seem to degrade a lot when they are forced to work on existing code bases (even their own). What seems to be more a issue with context sizes growing out of control way too fast (and this is what degrades LLMs the most). So far Opus 4.5 has been the one LLM that keeps mostly coding in a, how to say, predictable way even with a…
> So far Opus 4.5 has been the one LLM that keeps mostly coding in a, how to say, predictable way even with a existing code base. I find this to be true only if you have very explicit rules in CLAUDE.md and even then it still messes up. I have "you will use the shared code " twice in my CLAUDE.md as it will constantly write duplicate code. Something that is also annoying is that if it moves some code somewhere with t…
Re: Ask HN: COBOL devs, how are AI coding affecting your work?
#167Earlier quoted context omitted.
I’ve found claide code to be amazing at go. This is all nuts because experiences it’s so different from person to another.
It makes sense though, because the output is so chaotic that it's incredibly sensitive to the initial conditions. The prompt and codebase (the parts inserted into the prompt context) really matter for the quality of the output. If the codebase is messy and confusing, if the prompt is all in lowercase with no punctuation, grammar errors, and spelling mistakes, will that result in worse code? It seems extremely likely…
I realized this happens because I'm not as precise with my prompts when I get tired.
Re: Ask HN: COBOL devs, how are AI coding affecting your work?
#168Re: Ask HN: COBOL devs, how are AI coding affecting your work?
#169Earlier quoted context omitted.
In my experience AI and Rust is a mixed bag. The strong compile-time checks mean an agent can verify its work to a much larger extent than many other languages, but the understanding of lifetimes is somewhat weak (although better in Opus 4.5 than earlier models!), and the ecosystem moves fast and fairly often makes breaking changes, meaning that a lot of the training data is obsolete.
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.
Re: Ask HN: COBOL devs, how are AI coding affecting your work?
#170Earlier quoted context omitted.
With C++ formatting is optional. A better test case for LLMs is Python where indention specifies code blocks. Even ChatGPT 3.5 got the formatting for Python and YAML correct - now the actual code back then was often hilariously wrong.
A quick search finds many COBOL checkers. I’d be very surprised if a modern model was not able to fix its own mistakes if connected to a checker tool. Yes, it may not be able to one shot it perfectly, but if it can quickly call a tool once and it “works”, does it really matter much in the end? (Maybe it matters from a cost perspective, but I’m just referring to it solving the problem you asked it to solve.) Clearly i…
In this case, a five stage pipeline, built on demo environments and code that were already in the training data, was successful. I see more red flags there, than green.