Stories
Slash Boxes
Comments

SoylentNews is people

SoylentNews is powered by your submissions, so send in your scoop. Only 18 submissions in the queue.
posted by martyb on Monday September 16 2019, @01:48PM   Printer-friendly
from the COBOL-is-often-fractionally-better dept.

https://medium.com/@bellmar/is-cobol-holding-you-hostage-with-math-5498c0eb428b

Face it: nobody likes fractions, not even computers.

When we talk about COBOL the first question on everyone's mind is always Why are we still using it in so many critical places? Banks are still running COBOL, close to 7% of the GDP is dependent on COBOL in the form of payments from the Centers for Medicare & Medicaid Services, The IRS famously still uses COBOL, airlines still use COBOL (Adam Fletcher dropped my favorite fun fact on this topic in his Systems We Love talk: the reservation number on your ticket used to be just a pointer), lots of critical infrastructure both in the private and public sector still runs on COBOL.

Why?

The traditional answer is deeply cynical. Organizations are lazy, incompetent, stupid. They are cheap: unwilling to invest the money needed upfront to rewrite the whole system in something modern. Overall we assume that the reason so much of civil society runs on COBOL is a combination of inertia and shortsightedness. And certainly there is a little truth there. Rewriting a mass of spaghetti code is no small task. It is expensive. It is difficult. And if the existing software seems to be working fine there might be little incentive to invest in the project.

But back when I was working with the IRS the old COBOL developers used to tell me: "We tried to rewrite the code in Java and Java couldn't do the calculations right."

[Ed note: The referenced article is extremely readable and clearly explains the differences between floating-point and fixed-point math, as well as providing an example and explanation that clearly shows the tradeoffs.]


Original Submission

 
This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 2, Insightful) by Anonymous Coward on Monday September 16 2019, @02:23PM (4 children)

    by Anonymous Coward on Monday September 16 2019, @02:23PM (#894602)
    Starting Score:    0  points
    Moderation   +2  
       Offtopic=1, Insightful=2, Interesting=1, Total=4
    Extra 'Insightful' Modifier   0  

    Total Score:   2  
  • (Score: 2) by kazzie on Monday September 16 2019, @05:27PM

    by kazzie (5309) Subscriber Badge on Monday September 16 2019, @05:27PM (#894703)

    I was just about to post that myself. It's well worth a watch.

  • (Score: 5, Insightful) by DeathMonkey on Monday September 16 2019, @05:38PM (1 child)

    by DeathMonkey (1380) on Monday September 16 2019, @05:38PM (#894712) Journal

    God I hate argumentum ad Youtubum.

    Maybe use your words, too. Or at least tell us what you are linking to.

    • (Score: 3, Informative) by Common Joe on Tuesday September 17 2019, @08:50AM

      by Common Joe (33) <common.joe.0101NO@SPAMgmail.com> on Tuesday September 17 2019, @08:50AM (#895077) Journal

      Fully agree, but I watched the video, so I can summarize for everyone.

      In short, toaster design from 1948 cooks toast by measuring how well cooked the toast is. There is no timer like the modern toasters have. It also cooks is in near absolute silence; it does not come up with a pop like a modern day toaster. There is no lever to push the bread down. It goes down automatically and it comes up automatically. No computers; just heating elements, levers, bi-metal thermostats, and lots of cleverness. There are some gotchas like non-grounded wiring and the outside gets really hot. He explains in detail how the toaster works and how improvements could be made to bring it up to modern day options and safety.

      And I can personally vouch for this authenticity. My grandfather had one of these and I used it. I wouldn't get as excited about it as this guy does, but he lays out some really good points. And as far as how silent it is? I barely heard anything except the expansion of the metal.

  • (Score: 0) by Anonymous Coward on Monday September 16 2019, @09:12PM

    by Anonymous Coward on Monday September 16 2019, @09:12PM (#894818)