Mitchell Hashimoto宣布libghostty-vt 1.0版本正式发布,标志着该库及其C语言应用二进制接口(ABI)现已稳定 1。libghostty-vt是一个从Ghostty核心提取的高性能、可移植的C语言终端模拟库 1。
目前,JetBrains IDEs(包括IntelliJ, PyCharm等)已迁移至libghostty,拥有超过1250万活跃用户 1。此外,Neovim项目已有批准的PR计划用libghostty-vt替换libvterm 1。该项目遵循语义化版本控制规范,并通过CI流程强制检查ABI兼容性,使用libabigail等工具确保接口稳定性 1。
libghostty-vt采用MIT许可证授权,运行时仅依赖libc,支持可选无libc构建模式,且无copyleft代码 1。该库支持Linux、FreeBSD、macOS、iOS、Windows、Android及WebAssembly等多种平台 1。其WebAssembly小体积版本小于1MB,可通过编译标志移除子系统以进一步减小体积 1。在4核8GB服务器上测试显示,该库资源占用极低,成功运行了10,000个活动终端 1。
Mitchell Hashimoto has announced the official release of libghostty-vt version 1.0, a high-performance, portable terminal emulation library extracted from the core of the Ghostty project 1. This milestone marks the stabilization of both the library itself and its C Application Binary Interface (ABI) 1. The library is released under the MIT license and features minimal runtime dependencies, requiring only libc, with an optional build configuration available for environments without libc 1. There is no copyleft code in the library 1.
Adoption of libghostty-vt is already significant, having been integrated into products used by millions of users 1. JetBrains IDEs, including IntelliJ and PyCharm, have migrated to libghostty, serving over 12.5 million active users 1. Additionally, Neovim has an approved pull request in place to replace its current dependency, libvterm, with libghostty-vt 1. To maintain reliability, the project adheres to semantic versioning, and continuous integration pipelines enforce strict ABI compatibility checks using tools like libabigail 1.
The library supports a wide array of operating systems and architectures, including Linux, FreeBSD, macOS, iOS, Windows, Android, and WebAssembly 1. For WebAssembly targets, the small-size binary remains under 1 MB, and further reduction is possible through compilation flags that remove specific subsystems 1. Resource efficiency is also a key design goal; testing demonstrated that 10,000 active terminals could run on a server equipped with 4 cores and 8 GB of RAM 1.
评论
还没有评论,欢迎留下第一条。