
We rewrote the Ghostty GTK application
tosh
created: Aug. 14, 2025, 9:19 p.m. | updated: Aug. 15, 2025, 10:57 p.m.
August 14, 2025We just completed rewriting the Ghostty GTK application fully embracing the GObject type system from Zig and also verifying with Valgrind every step of the way.
On Linux and BSD, Ghostty is a multi-thousand line GTK application leveraging direct integrations with X11, Wayland, etc.
For full motivation on why Ghostty was the way it was before and why we decided to rewrite the GTK application now, see the original "gtk-ng" PR.
There was an entire class of bug that kept popping up in the Ghostty GTK application that could basically be summed up as: the Zig memory or the GTK memory has been freed, but not both.
Running Valgrind on a GTK application is pretty nasty.
1 day, 15 hours ago: Hacker News: Front Page