Cascadity Audio
← All streams

#c-library

Everything tagged c-library, across every stream.

0

Libghostty 1.0: Ghostty's terminal-emulation core becomes a stable library, already inside JetBrains IDEs and headed for Neovim

Mitchell Hashimoto explains the ABI-stability design choices in detail and why he thinks a shared terminal core helps everyone.

Mitchell Hashimoto announced libghostty-vt 1.0 on November 6, the terminal-emulation library taken from the core of his Ghostty terminal. He writes that a year ago the C API didn't exist and Ghostty was its only user; now it runs in production for millions of people across hundreds of free and commercial products. Every JetBrains IDE (IntelliJ, PyCharm, GoLand and others) now has a libghostty-powered terminal, which he puts at over 12.5 million users based on a JetBrains report, and Neovim has an approved pull request replacing libvterm with libghostty-vt.

Version 1.0 means semantic versioning and an enforced ABI-stability policy: opaque handles, size-tagged structs, enums pinned to int and versioned symbols, so programs built against newer headers get an "unsupported" result instead of a crash. The library is MIT-licensed, creates no threads, and he says he ran 10,000 active terminals on a 4-core, 8 GB Linux server. Community bindings exist for Rust, Go, JavaScript, Swift, Python and more. He notes the post was written with no AI assistance.

Rabbit Holes 1
  • Application binary interface

    After exploring Libghostty 1.0, for the promise behind a 1.0 like this, read about Application binary interface.

    An application binary interface (ABI) is the interface a piece of software, often a library, exposes for in-process machine-code access by the programs that use it.

    Wikipedia · Wade · 5 min

    0