Что такое Zig?
Zig is a general-purpose programming language and toolchain designed for maintaining robust, optimal, and reusable software. Created by Andrew Kelley, Zig aims to be a better alternative to C, offering modern language features while maintaining the simplicity and performance that systems programmers need.
🔥 Ключевые возможности Zig
⚡ Simple & Fast
No hidden control flow, no hidden memory allocations, no preprocessor. Focus on debugging your application, not your language knowledge.
🔧 Comptime Magic
Compile-time code execution and lazy evaluation. Call any function at compile-time and manipulate types as values without runtime overhead.
🌐 Cross-Compilation
Built-in cross-compilation support for dozens of targets. No external dependencies needed for most platforms.
🔄 C/C++ Interop
Use Zig as a drop-in C/C++ compiler with better cross-compilation. Incrementally adopt Zig in existing codebases.
🆕 Что нового в Zig 0.14.1
- Labeled Switch Statements: New control flow for finite state machines and performance-critical code
- Enhanced x86 Backend: 98% test suite compatibility with dramatically faster compilation
- Incremental Compilation: Experimental support for faster edit-compile-debug cycles
- File System Watching: Automatic rebuilds when source files change
- Improved Target Support: Better support for ARM, MIPS, PowerPC, and RISC-V architectures
- Enhanced Build System: More flexible module system and better dependency management
📦 Установка из debian.griffo.io
Шаг 1: Добавить репозиторий
Шаг 2: Установить Zig
🎯 Примеры базового использования
Create a new project:
Compile a single file:
Use as C compiler:
🚀 Почему стоит выбрать debian.griffo.io?
- ✅ Always Latest: Get Zig 0.14.1 immediately, not months later
- ✅ Nightly Builds: Access cutting-edge features with zig-master package
- ✅ Automatic Updates: Packages updated within hours of upstream releases
- ✅ Proper Dependencies: Correctly packaged with all required dependencies
- ✅ Multi-Distribution: Works on Jammy and Noble
- ✅ Zero Hassle: No manual compilation or complex setup required
📦 Репозиторий сборки пакетов
Пакеты Ubuntu автоматически собираются и поддерживаются в этих репозиториях GitHub:
- 🇿 zig-debian (stable) - Stable release builds
- 🇿 zig-master-debian (nightly) - Nightly development builds
🔗 Связанные пакеты
Также доступно из debian.griffo.io:
- ZLS Language Server - Поддержка IDE для Zig
- Ghostty Terminal - Быстрый эмулятор терминала
- Yazi File Manager - Файловый менеджер для терминала