Cloudflare goes retro with COBOL delivery service. Older coders: Who's laughing now? Turns out we're still vital

Dust off your COBOL code and give it new life in WebAssembly


Network infrastructure biz Cloudflare has implemented a way to run COBOL code on its serverless platform Cloudflare Workers.

COBOL, 60 years old this month if you start at the publication of the US Defense Department's April 1960 software specification, is short for COmmon Business Oriented Language.

Work on the programming language began in 1959 and the first COBOL code was deployed in 1960. Within a decade, COBOL had become the most widely used programming language in the world at the time, and it has proved surprisingly resilient.

The software was designed to be machine-independent and easy to use, so that government organizations and businesses could run data processing jobs on diverse hardware. It was also disparaged by some computer scientists for its lack of academic pedigree.

Despite its age, COBOL is still in use and COBOL programmers are still in demand, particularly given the impact of the COVID-19 pandemic on government agencies with legacy IT systems.

Connecticut Labor Commissioner Kurt Westby on Wednesday recounted the "hundreds of hours of programming" that have gone into modifying his state's unemployment claims system, which runs on 40-year-old hardware, to handle the surge in COVID-19 claims. And earlier this month New Jersey Gov. Phil Murphy put out a call for COBOL programmers to prop up that state's aging mainframes.

And a Missouri-based IT biz FairCom on Thursday said it is offering COBOL modernization services for non-mainframe COBOL systems for free for a year to government agencies, because of the burden COVID-19 has placed on those systems.

A source of amusement...

"COBOL is often a source of amusement for programmers because it is seen as old, verbose, clunky, and difficult to maintain," wrote John Graham-Cumming, CTO of Cloudflare, in a blog post.

Game over greenscreen

COBOL-coding volunteers sought as slammed mainframes slow New Jersey's coronavirus response

READ MORE

"And it's often the case that people making the jokes have never actually written any COBOL. We plan to give them a chance: COBOL can now be used to write code for Cloudflare's serverless platform Workers."

COBOL is a compiled language, so it can be converted to WebAssembly, which allows the instructions to run on Cloudflare Workers.

Typically written in JavaScript/TypeScript, C/C++, or Rust and executed on the Chromium V8 engine, Cloudflare Workers implement the Service Worker API to handle HTTP traffic at the edge of the Cloudflare network. One reason to do so is that proximity to users can improve response times.

Using the GNUCobol project, you can compile COBOL code to C and then use Emscripten to compile the C code to WebAssembly. Cloudflare offers a tool called cobaul to simplify this process.

Deploying a COBOL Worker involves installing wrangler, a tool for setting up Cloudflare Workers, on a local machine.

You then run the command:

wrangler generate cobol-worker https://github.com/cloudflare/cobol-worker-template

That creates a directory named cobol-worker with the Worker code. Cloudflare account configuration instructions get printed to the terminal.

After that, the worker can be deployed with the command npm run deploy.

To get a sense of the possibilities of COBOL, Cloudflare has a Paper, Scissors, Rock demo. ®


Other stories you might like

  • Experts: AI should be recognized as inventors in patent law
    Plus: Police release deepfake of murdered teen in cold case, and more

    In-brief Governments around the world should pass intellectual property laws that grant rights to AI systems, two academics at the University of New South Wales in Australia argued.

    Alexandra George, and Toby Walsh, professors of law and AI, respectively, believe failing to recognize machines as inventors could have long-lasting impacts on economies and societies. 

    "If courts and governments decide that AI-made inventions cannot be patented, the implications could be huge," they wrote in a comment article published in Nature. "Funders and businesses would be less incentivized to pursue useful research using AI inventors when a return on their investment could be limited. Society could miss out on the development of worthwhile and life-saving inventions."

    Continue reading
  • Declassified and released: More secret files on US govt's emergency doomsday powers
    Nuke incoming? Quick break out the plans for rationing, censorship, property seizures, and more

    More papers describing the orders and messages the US President can issue in the event of apocalyptic crises, such as a devastating nuclear attack, have been declassified and released for all to see.

    These government files are part of a larger collection of records that discuss the nature, reach, and use of secret Presidential Emergency Action Documents: these are executive orders, announcements, and statements to Congress that are all ready to sign and send out as soon as a doomsday scenario occurs. PEADs are supposed to give America's commander-in-chief immediate extraordinary powers to overcome extraordinary events.

    PEADs have never been declassified or revealed before. They remain hush-hush, and their exact details are not publicly known.

    Continue reading
  • Stolen university credentials up for sale by Russian crooks, FBI warns
    Forget dark-web souks, thousands of these are already being traded on public bazaars

    Russian crooks are selling network credentials and virtual private network access for a "multitude" of US universities and colleges on criminal marketplaces, according to the FBI.

    According to a warning issued on Thursday, these stolen credentials sell for thousands of dollars on both dark web and public internet forums, and could lead to subsequent cyberattacks against individual employees or the schools themselves.

    "The exposure of usernames and passwords can lead to brute force credential stuffing computer network attacks, whereby attackers attempt logins across various internet sites or exploit them for subsequent cyber attacks as criminal actors take advantage of users recycling the same credentials across multiple accounts, internet sites, and services," the Feds' alert [PDF] said.

    Continue reading

Biting the hand that feeds IT © 1998–2022