Tuesday, November 3, 2026

Computer bugs, legacy programs, and the coming crime wave

 

Eric S. Raymond, well-known computer systems author and commenter, recently commented on the potential usefulness of artificial intelligence to detect and fix errors in computer software.  He observed on X:



I have to agree with him:  if we turn a blind eye to the capacity of AI to fix past errors, we basically give in to cybercriminals who will have no hesitation in using AI to find such errors, and then to exploit them rather than fix them.

The scale of the problem was recently revealed.


The prevalence of COBOL is hard to overstate. Created in 1959, the “common business-oriented language” is still widely used today. According to IBM, COBOL underpins over 40 percent of online banking systems, facilitates 80 percent of in-person credit card transactions, and manages 95 percent of ATM transactions. It also supports various government systems, including Social Security and IRS operations. One estimate suggests that COBOL’s inefficiencies cost the US GDP around $105 billion annually.

However, replacing COBOL is no easy task. The same goes for other legacy programming languages like Fortran, which are still utilized in scientific computing, weather forecasting, and critical nuclear security codes. These systems are often too vital to risk breaking, and many of the programmers who once understood them have retired or passed away.

. . .

In its latest update, OpenAI shared encouraging results in migrating COBOL code to more contemporary programming languages such as C++, Java, Kotlin, Python, and Rust, all while preserving the original software’s functionality ... “These evaluation results demonstrate progress toward more accurate, affordable code migration for teams modernizing the software their businesses depend on,” OpenAI stated.

. . .

Experts ... caution that the advancements highlighted by OpenAI are still far from enabling the safe replacement of critical legacy systems ... When dealing with systems as critical as those running on COBOL, experts stress the need for absolute certainty that replacements function correctly. “In many cases, even minor differences in system behavior before and after migration are unacceptable,” Zaytsev noted. While AI can certainly provide efficiencies and speed, the complexity of legacy systems means that partial automation isn’t sufficient.

“Suppose you have a magic AI wand that handles 99 percent of your code,” Zaytsev said. “What do you do with the remaining 1 percent? That 1 percent can be a million lines of code, scattered throughout the system and potentially failing in ways you can’t even imagine.”


There's more at the link.

I couldn't agree more, particularly given that "legacy" code - originally written years or even decades ago, and since then updated and maintained in operation because of various pressures that made it uneconomic to replace - can now be almost impossible to update any further, because of the myriad internal cross-references and patchings over the years.  Let me give you an example.

Way back when, I wrote the main computer program for BP South Africa's Price Book system.  Every day, this program ran in batch mode to update the price charged for every single item sold by BP - engine fuels, lubricants, chemicals, whatever.  When I was given the task to write it, I recommended that I do so in modular fashion:  one program for fuels, one for lubricants, one for chemicals, one for specialized products, and so on.  That way, if any one category needed a major update, its specialized program could be modified and updated without affecting the rest of the Price Book system.  However, I was told that wasn't acceptable.  I had to write one program covering every product in BP's catalog.  Rolling my eyes a little, I set to work.

By the time I finished, if I recall correctly, the program was 6-7,000 lines of COBOL code.  It called in dozens of computer files, moved data around through hundreds of working-storage entries to hold interim calculations and results, and had a test data file of over 5,000 product entries.  It took almost a year to write, test, correct, re-test, etc. and get it into production.

By the time I left South Africa in the mid-1990's, I was told that the program now had a team of three programmers permanently assigned to it;  a lead analyst/programmer designing the updates and fixes, and two programmers to implement them.  It had grown to more than twice the original size, and all of the documentation I had left with it was so far out of date it was almost useless.  The source code and diagrams of section activity were filled with handwritten notes, exclamation points, and even a few profanities.  That wasn't due to anything lacking in the program as I'd handed it over:  it was because so many modifications and changes had come down the pike that one single, monolithic program could not cope with their rapidity.  It wasn't unusual for one fix to be in preparation (design), one to be in the implementation phase (programming and testing), and one going into production - simultaneously.  If it was that bad then, I shudder to think what it's like today . . . assuming it's still in use, of course.

Now, imagine trying to analyze a program like that using AI.  It's comparatively small compared to some very large systems out there, yet I think most AI agents and systems would battle to follow all the convolutions of the design, the code and the output.  Whether authorized or malicious, they'd have a doozy on their hands!

Unfortunately, there are a lot of systems like that out there.  As Mr. Raymond says, "the only way out is through".  We have to gain control of the mess of our legacy systems, because if we don't, malicious actors will use them to rob us blind.  Let the battle begin!

Peter


Monday, November 2, 2026

Friday, October 30, 2026

Halloween, courtesy of Stephan Pastis

 

Click the image to be taken to a larger version at the "Pearls Before Swine" Web page.



That made me cackle loudly . . .

Peter


Thursday, October 29, 2026

On the road again

 

My wife and I are heading to Arkansas to join friends for the celebration of a significant wedding anniversary.  It's a day to get there, a day to celebrate, and a day to get home again.

Blogging will resume on Monday, God willing and the crick don't rise.

Peter


Wednesday, October 28, 2026

Exercise assistance - but could they help pain management, too?

 

Apparently exoskeletons (frame sort of things with an electric motor that one wears to augment muscle power) are becoming more and more popular in the fitness culture.  The New York Post reports:


 E-bikes gave cyclists a major boost. Now, a wearable robot wants to do the same for your legs.

Meet the exoskeleton, a battery-powered gadget that straps onto your body and promises to make running, hiking and everyday movement feel like less — or more — of a workout.

Robotic exoskeletons have been used in medical rehabilitation for decades, helping people practice walking following illness or injury.

Now, companies are bringing lighter-weight versions to the consumer fitness market, with ambitions that go beyond restoring mobility: They’re helping healthy, active people move farther, faster and with less effort.


There's more at the link, including closer examination of various models.

I think it's a given by now that exoskeletons help recovery from injury, allowing one's muscles to get back into training without over-exerting themselves.  However, what about someone like me with ongoing, permanent pain issues?

A particular problem for me is that if I start walking, I'm already at a baseline level of pain.  The further I walk, the greater the pain becomes, forcing me to walk ever more slowly until eventually I have to stop - and, if possible, sit down - until the pain reduces to a manageable level.  At that point I can start walking again, but inevitably the pain comes back, and the cycle repeats.  I can't walk for more than 5-10 minutes before I have to stop.  I doubt I could cover half a mile, even including frequent breaks, without having to quit, or use a mobility scooter or wheelchair.

Does any reader with a "pain problem" like that use an exoskeleton to help?  Could they extend the period one can walk until the pain increases to an unbearable level?  I've been looking for feedback on that, but so far haven't found any.  If you, dear reader, can provide information from your own experience, or know where to find it, I'd love to hear from you in Comments.

Thanks in advance.

Peter