This post was originally written in Japanese and translated into English by the author using ChatGPT. The original post is available here .
Introduction
AI coding tools have become much better, and I now write code by hand far less often than before. I use GitHub Copilot in VSCode through the OSS benefit program, and recently I have also been trying Claude Code and Codex.
Porting libraries to the Crystal language
Compared with other programming languages, Crystal does not have a very large library ecosystem.
However, many open source libraries have licenses that allow porting, and AI can provide a lot of help with porting work. Because of this, when a library is missing, it is becoming realistic to consider porting as an option.
In this article, I want to put into words and record what I actually do when porting libraries.
Choosing a reference library
The first step is to choose the library to use as a reference.
In Crystal, compared with C or Go, a higher level of abstraction is often expected.…