Cloudflare Workers Now Support COBOL
Apr 16, 2020John Graham-Cumming

Summary
This post details the technical process of enabling COBOL to run on Cloudflare Workers by compiling it to WebAssembly. It covers the use of GnuCOBOL to compile COBOL to C, Emscripten to compile C to WebAssembly, and the optimization of the resulting binary by using a JavaScript-based GMP library and removing unnecessary file system emulation. It also explains how JavaScript functions are used to generate HTTP responses, making the COBOL code accessible via HTTP. The post provides a toolchain and deployment instructions for users to run their own COBOL Workers.