1. Home
  2. Changelog

Jan 11, 2025

Why Ghostty's creator picked Zig over Rust and Go

3 min → 0:58

Overview

A prolific open-source developer explains why he chose Zig over Go and Rust for his new Ghostty terminal project, emphasizing his need for a better C and the value of developer joy.

3 things to know

Changelog says personal enjoyment drove the programming language choice

Changelog reports that the language choice combined technical needs like no garbage collection, a modernized C-like feel, and personal developer enjoyment.

▶ Watch at 0:20

Changelog guest skipped Rust because writing it feels less enjoyable

Changelog shares that the speaker ruled out Go for its garbage collector and runtime, while skipping technically impressive Rust because it is less enjoyable to read and write daily.

More

Go was ruled out due to its active runtime and garbage collector.

▶ Watch at 3:00

Changelog: Zig offers low-level system control much like C

Changelog notes that the modern programming language Zig was chosen because it provides low-level system control similar to C.

▶ Watch at 1:24

Also in this episode

Changelog: Systems work requires direct memory control without runtimes

Changelog explains that the speaker focuses on systems-level development that requires direct memory management and control without a garbage collector or runtime.

Quotes

“I wanted to get back to systems programming, but I recognized the warts that C had, and I was looking for a better C. And Zig to me always felt like that.”

▶ Watch at 1:24

“When I write and read Rust, I'm not having fun, and I want to have fun... and part of the joy is writing the code.”

▶ Watch at 3:00

“And then chooses Zig as a programming language. Like these are all things where it's like, I know why there's 25,000 people in that Discord.”

▶ Watch at 0:20

Full summary

Episode Overview

  • The speaker, a prolific open-source developer, explains his decision to use the Zig programming language for his new terminal project.
  • He discusses his background in C and his desire for a "better C" for low-level systems programming.
  • The choice of Zig is compared to other popular options like Go and Rust, detailing why they were not selected.
  • A key theme is the importance of developer joy and personal preference in choosing a programming language, beyond purely objective technical merits.

Key Concepts

  • Zig Programming Language: The discussion centers on the choice of Zig, a modern systems programming language that offers low-level control similar to C.
  • Systems Programming: The speaker's primary interest is in systems-level development, requiring direct memory management and control, without a garbage collector or runtime.
  • Language Selection Philosophy: The choice was driven by a combination of technical requirements (no garbage collection), a desire for a C-like experience with modern improvements, and the subjective element of developer enjoyment.
  • Comparison to Go and Rust: Go was ruled out due to its active runtime and garbage collector. Rust, while technically impressive, was not chosen because the speaker finds it less enjoyable to write and read on a daily basis.

Quotes

  • At 00:20 - "And then chooses Zig as a programming language. Like these are all things where it's like, I know why there's 25,000 people in that Discord." - Highlighting the combination of factors that makes the speaker's choice of Zig so compelling to the developer community.
  • At 01:24 - "I wanted to get back to systems programming, but I recognized the warts that C had, and I was looking for a better C. And Zig to me always felt like that." - Explaining the core motivation for seeking a new language and why Zig fit his mental model.
  • At 03:00 - "When I write and read Rust, I'm not having fun, and I want to have fun... and part of the joy is writing the code." - Emphasizing that the subjective experience and personal enjoyment of using a language was a primary factor in his decision over the technically respected alternative, Rust.

Takeaways

  • Prioritize developer joy in your tool selection. For long-term projects, choosing a technology that you genuinely enjoy using can be as important for success as its technical capabilities.
  • Define your non-negotiable requirements first. The speaker knew he didn't want a garbage collector, which immediately narrowed the field of potential languages and simplified the decision-making process.
  • Acknowledge that personal preference is a valid decision-making criterion. While technical benchmarks are important, the best tool is often the one that fits your personal style and makes you most productive and happy, which may differ from popular opinion.

Watch the full episode 3 min

Read along with the audio summary

There are 25,000 people in a Discord, and a prolific open-source developer chose Zig for his new terminal project. In this episode, released on January 11, 2025, the developer explains his decision.

Finding a modern replacement for the C language. He chose Zig, a modern systems programming language offering low level control like C.

Why direct control matters in systems programming. He wanted full control without an active runtime or a garbage collector.

How to narrow down your language options. The speaker combined his strict requirement of no garbage collection with a desire for modern improvements and personal enjoyment.

Why popular choices like Go and Rust lost out. Go was ruled out for its garbage collector, and the speaker skipped Rust because he does not have fun reading and writing it daily.

Choosing a tool you genuinely enjoy can be as important as its technical capabilities. When I write and read Rust, I'm not having fun, and I want to have fun, and part of the joy is writing the code.

More from Changelog

Related Episodes