AI-Assisted Rewrites in Go

2026-04-19

There was a period in my previous job when I was enamored with Perl. It is a great scripting language. I was deep enough in the Perl-hole that I wrote an important personal finance script in Perl: A script to convert a GnuCash book into a Ledger file. Ledger is great for analysis, but not the best tool for data entry.

With AI-assisted coding coming on the scene, I did a quick rewrite from Perl to Golang using OpenCode, backed by Claude Code’s Sonnet model. I was planning to do this by hand, it may have taken me months to get to it eventually. The world changes, and one must change with it! Rewriting open source projects which are probably already in the training dataset of the foundational models anyway is a total win-win.

I have not merged the rewrite yet because I am still running it locally, verifying the output, and updating the README.

Update: I have merged this MR after a few more minor tweaks and some testing sessions.