Not COBOL but I sometimes have to maintain a large ColdFusion app. The early LLMs were pretty bad at it but these days, I can let AI write code and I "just" review it. I've also used AI to convert a really old legacy app to something more modern. It works surprisingly well.
I feel like people who can't get AI to write production ready code are really bad at describing what they want done. The problem is that people want an LLM to one shot GTA6. When the average software developer prompts an LLM they expect 1) absolutely safe code 2) optimized/performant code 3) production ready code without even putting the requirements on credential/session handling. You need to prompt it like it's an…
Ask HN: COBOL devs, how are AI coding affecting your work?
61–70 of 190 posts
Re: Ask HN: COBOL devs, how are AI coding affecting your work?
#62Earlier quoted context omitted.
Compiling high level languages to assembly is a deterministic procedure. You write a program using a small well defined language (relative to natural language every programming language is tiny and extremely well defined). The same input to the same compiler will get you the same output every time. LLMs are nothing like a compiler.
Except for COBOL, which is famously not a turing-complete language. So certain guesses have to be made.
Re: Ask HN: COBOL devs, how are AI coding affecting your work?
#63Earlier quoted context omitted.
Both Fortran and COBOL will be here long after many of the current languages have disappeared. They are unique to their domains viz. Fortran for Scientific Computing and COBOL for Business Data Processing with a huge amount of installed code-base much of it for critical systems.
Don't know about COBOL, but FORTRAN and Ada definitely would survive an Extinction Level Event on earth. Plenty of space based stuff running Ada and maybe some FORTRAN.
Re: Ask HN: COBOL devs, how are AI coding affecting your work?
#64Earlier quoted context omitted.
If we ignore optimizing compilers and UB. "Project the need 30 years out and imagine what might be possible in the context of the exponential curves" -- Alan Kay
Is there any compiler that "rolls the dice" when it comes to optimizations? Like, if you compile the exact same code with the exact same compiler multiple times you'll get different assembly? And th Alan Kay quote is great but does not apply here at all? I'm pointing out how silly it is to compare LLMs to compilers. That's all.
Or by using a managed language with dynamic compiler (aka JIT) and GC. They are also not deterministic when executed, and what outcome gets produced, it is all based on heuristics and measured probabilities.
Yes, the quote does apply because many cannot grasp the idea of how technology looks beyond today.
Re: Ask HN: COBOL devs, how are AI coding affecting your work?
#65No humans understand COBOL, no AI understand COBOL.
Re: Ask HN: COBOL devs, how are AI coding affecting your work?
#66I'm in an adjacent business (FORTRAN) and it hasn't hurt me at all.
Re: Ask HN: COBOL devs, how are AI coding affecting your work?
#67Earlier quoted context omitted.
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…
I think the point is in a banking context, every line of code gets reviewed thoroughly anyway.
The difference with AI is that the “prompt engineer” reviews the output, and then the code gets peer reviewed like usual from someone else too.
Re: Ask HN: COBOL devs, how are AI coding affecting your work?
#68Not COBOL but I sometimes have to maintain a large ColdFusion app. The early LLMs were pretty bad at it but these days, I can let AI write code and I "just" review it. I've also used AI to convert a really old legacy app to something more modern. It works surprisingly well.
I feel like people who can't get AI to write production ready code are really bad at describing what they want done. The problem is that people want an LLM to one shot GTA6. When the average software developer prompts an LLM they expect 1) absolutely safe code 2) optimized/performant code 3) production ready code without even putting the requirements on credential/session handling. You need to prompt it like it's an…
Re: Ask HN: COBOL devs, how are AI coding affecting your work?
#69Earlier 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…
Python is as good as output language as you are going to get.
Re: Ask HN: COBOL devs, how are AI coding affecting your work?
#70Earlier quoted context omitted.
I can't comment on Zig and Rust, but C is one of the languages in which LLMs are best, in my opinion. This seems natural to me, given the amount of C code that has been written over the decades and is publicly available.
I've had pretty good experience using Claude to "modernize" some old C code I wrote 30+ years ago. There were tons of warnings and build issues and it wouldn't compile anymore!