The tool is still in Proof of Concept phase and online demo is here: https://cobol-converter.com/ .
Very far. I also admit that I have no Cobol experience prior to this, and this tool is built in only 1 month in my free time. Nonetheless, this tool does prove the point that a fast and automated conversion is totally feasible, and it does so by breaking through several choke points:
- Readability: result JS code is succinct has same structure with Cobol code.
- Decimal precision: JS code maintain 100% numeric precision like Cobol code without sacrificing any code readability. It use Decimal.js lib underneath for precise numeric calculation.
- Performance: It is quite performant. Although JS by nature is not a very good CPU-bound execution environment, most Cobol program is IO-bound anyway, which is a JS strong point.
- I also added external file and sub programs support, just to test how far this can go. There are quite a few example projects that you can open from the "File" menu in demo app (link above).
The demo app also supports running the result JS code right in your browser, so you can try it out immediately, you can even run IO commands like "accept" (user input), or writing file out. Check it out.
As stated above, I am not a Cobol expert. I wrote this tool in a desire to solve the long standing problem that our IT industry is facing: the outdated Cobol systems are still in use today after 60 years of existence. However, I don't have the needed Cobol expertise to fully understand the real challenge here. This tool can be a good start, and with it I addressed the most prominent problems that I can see, but I am sure I haven't seen enough.
So, if you have Cobol experience, please come forward and help me. You can either tell me if there are still obstacles that I haven't seen, or just "this idea is plain stupid". I really don't want to put too much effort into this and later find out it is not going anywhere.
Sincerely and honestly, please help.