I started the GTK bindings because I wanted to write GUI applications in Crystal for my personal use since I’m a Linux/Gnome user. Crystal because read code in C for me is fine since I worked 10+ years with C and C++, but write glib C code is a pain… work with strings in C is too much “manual” to not say horrible. So the bindings are there and I was using it since then.
But last times I needed to change things in these pet projects I did it using AI, AI wrote the code, I reviewed, ask for few changes and that’s it, I believe this is how most people code nowadays… so I stopped for a moment and ask myself, “why am I asking AI to code using bindings that lack features and have bugs instead of write the app in C, since C isn’t alien for me?”, So I asked Claude to rewrite some pet Gtk/Crystal projects in Gtk/C and it was fast, readable code and fixed few bugs during the task.
TL;DR; IMHO doesn’t make sense to use bindings for Gtk nowadays to write applicatiosn if you are going to write it using AI and if you can read C code to understand what AI wrote, so I’ll just archive the project, thanks everyone that help me with that with patches, bug reports, trying it out or just using apps wrote with it.
If anyone is interested in continue the shards just fork it and say here, and I can put the link in the top of README of the archived projects.
Note: I’m still using and recommending Crystal for web-dev, compile time still not good but I really think “Go is ugly” (yes this is 500% subjective) to move to it.
Thanks for working this to this point.
I’m with you on this. At the beginning of 2026, I was having AI help write code in Crystal so I had a chance of reviewing and understanding what it is doing. But AI has progressed to the point that I’m using human language to define a goal and having it use a BDD/TDD workflow to develop capability. I now don’t care what language it is using and I don’t look at the code all. Granted these are just projects for me.
On GUI bindings, I did have AI create a Crystal library binding to the WinUI 3 framework for Windows. That was fun to see develop and will be what I use when I want to be more involved in a project.
I don’t get it. I can read enough JavaScript to figure out what it’s doing, but I’d rather not. I’ve worked 20 years with PHP, but I’m only looking at LLM generated PHP if it’s work. Outside of work constraints, I want to look at something prettier.
But AI has progressed to the point that I’m using human language to define a goal and having it use a BDD/TDD workflow to develop capability.
I don’t buy it. Yeah, I’ve done personal projects where I just cared about what the thing did, but I don’t think we can really skip understanding “the thing” we’re building in the long run. And I’ll take looking at Crystal code over Rust any day.
Oh, that’s a bit sad. But GTK has many users. People will keep forking the GTK bindings and using LLMs to make the changes they need. They make their forks public, and others can fork them again and add new GTK features. That’s probably how things will go. Thanks for all your work.
I see your point, but the bindings are far from being complete, even before AI I thought about rewrite these pet projects in C so I wouldn’t get my pet projects stuck due to binding generator bugs or missing features, so nowadays I can remove this blocker much easily by just use C, that is a language that I also speak and used to speak daily for work for more than 10 years, so it isn’t a pain at all for me, even Crystal being better for reading.
OTOH, not wanting to continue bindings is fair. It is a lot of work to do it well and sometimes interest fleets or go some other place. Being open about it and perhaps let someone else take over is a good thing.
I can really relate to your thoughts, even though I switched to Crystal only relatively recently and GTK4 applications have been my latest creations.
One of my first projects was actually the Crystal plugin for JetBrains IDEs, which I started developing with AI support. My original motivation was to have Crystal support in my favorite IDE so that I could then learn Crystal properly.
However, I notice that I’m writing less and less code myself and focusing more on architecture and requirements instead. All three GTK4 applications I recently presented here were developed without writing a single line of code myself, except for the Flatpak manifests.
I also experienced some sporadic segmentation faults in my applications that I couldn’t reproduce. This made me suspect that there might be some issues in the bindings as well. So I’m also considering whether to move my applications away from Crystal and use a different technological foundation.
Your post even makes me question whether continuing the Crystal IDE plugin still makes sense. I might still bring it to a 1.0 release, but I haven’t worked on it for the last few weeks because I was so caught up in developing my GTK4 applications.
What I’m currently struggling with is a much more fundamental question: Does it still make sense for me to invest a lot of time in deeply learning another programming language and its ecosystem? Or should I increasingly let AI handle the implementation and instead focus on improving my development tools and workflows, learning how to use AI more effectively, and gaining experience in designing software architectures that AI can work with effectively?
At the moment, it increasingly looks like the actual programming itself is becoming secondary for me. My focus seems to be shifting from how to implement software myself towards how to design software, define requirements, and create the right conditions for AI to implement it effectively. This also changes my relationship with programming languages and their ecosystems.
I’ve never been so uncertain about the direction I should take in my life as a software developer. We are going through a fundamental transition, and it’s really difficult to predict which skills and investments will be most valuable in a few years.
Anyway, thank you for all the work you’ve put into the GTK bindings. Without them, my recent journey into desktop application development probably wouldn’t have happened in this way.
LLMs are good at writing C bindings. Even free tools can give good results (though they may use your code for training) . I’m very optimistic about the future of Crystal’s GTK bindings.
Fair, I’m not telling anyone what they should like, but I’d think that the manual memory management is an area where LLMs is likely to mess up? But maybe there’s tools to keep the LLM in line.
I’m not buying the “coding is dead” narrative. In order to design, define requirements and create the right conditions, you need to know how these things work, that is, you need programming experience. If you don’t understand the code being generated, the whole thing will eventually implode on itself.
I’m seeing people talking about AI-free days in order to stay sharp. Understanding the next level down in the abstractions has always been an advantage, and I bet it’s the same with AI.