Cobol to Kotlin via Formal Models (ir and Alloy and Golden Master)
Postedabout 2 months agoActiveabout 2 months ago
marcoeg.medium.comTechstory
calmmixed
Debate
60/100
CobolModernizationFormal VerificationSoftware Migration
Key topics
Cobol
Modernization
Formal Verification
Software Migration
The article discusses modernizing COBOL code to Kotlin using formal models and verification, sparking discussion on the challenges and limitations of such an approach.
Snapshot generated from the HN discussion
Discussion Activity
Active discussionFirst comment
N/A
Peak period
15
132-144h
Avg / period
4.8
Comment distribution19 data points
Loading chart...
Based on 19 loaded comments
Key moments
- 01Story posted
Nov 8, 2025 at 12:32 AM EST
about 2 months ago
Step 01 - 02First comment
Nov 8, 2025 at 12:32 AM EST
0s after posting
Step 02 - 03Peak activity
15 comments in 132-144h
Hottest window of the conversation
Step 03 - 04Latest activity
Nov 14, 2025 at 7:40 AM EST
about 2 months ago
Step 04
Generating AI Summary...
Analyzing up to 500 comments to identify key contributors and discussion patterns
ID: 45854418Type: storyLast synced: 11/20/2025, 8:56:45 PM
Want the full context?
Jump to the original sources
Read the primary article or dive into the live Hacker News thread when you're ready.
Repo: https://github.com/marcoeg/cobol-modernization-playbook
Would love feedback from people who’ve worked on reverse engineering or legacy transformations at scale.
Would it be possible to do the same to modernize a Kotlin program becoming legacy in the future to something even more modern?
All the inputs and outputs are hardcoded. The code doesn't do anything except write hardcoded strings to files. Am I mistaken?
> This enduring reliance exists not out of nostalgia, but necessity: COBOL’s reliability, stability, and the prohibitive cost and risk of replacing decades of deeply integrated logic make it one of the most mission-critical technologies ever built.
That sentence struck me as odd. Is COBOL any more "reliable" or "stable" than any other language? I'm no COBOL expert, but when I've looked at it and read about how it works, it seems rather verbose and mundane. That's not unexpected; it was developed in a different era with different sensibilities.
> 2. Each writes its results to out/accounts_out_*.dat.
> 3. Python scripts convert fixed-width output to CSV and compute SHA-256 checksums.
> 4. If the hashes match — behavior is proven identical.
Step 3 above introduces the possibility that the python scripts alter the output in such a way that the outputs don't actually match prior to the python.
I'm curious why step 3 is not "If the two outputs match — behavior is proven identical."