⚠️ Этот репозиторий поддерживается одним человеком, в свободное время, без финансирования, команды или внешней поддержки.

Каждый пакет и обновление собирается и публикуется бесплатно. Если эти пакеты экономят вам время, рассмотрите возможность поддержки проекта.

Buy me a coffee

🇿 Установить последнюю версию Zig в Ubuntu

Получайте самые актуальные пакеты языка программирования Zig

Последняя версия: 0.14.1 (Выпущена в марте 2025)
← Вернуться на главную

Что такое 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 is rapidly evolving with significant performance improvements, new language features, and critical bug fixes in each release. The latest 0.14.1 includes major enhancements like improved cross-compilation, faster compilation times, and enhanced debugging capabilities.

🔥 Ключевые возможности 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

📦 Установка из debian.griffo.io

Шаг 1: Добавить репозиторий

curl -sS https://debian.griffo.io/EA0F721D231FDD3A0A17B9AC7808B4DD62C41256.asc | sudo gpg --dearmor --yes -o /etc/apt/trusted.gpg.d/debian.griffo.io.gpg echo "deb https://debian.griffo.io/apt $(lsb_release -sc 2>/dev/null) main" | sudo tee /etc/apt/sources.list.d/debian.griffo.io.list sudo apt update
curl -sS https://debian.griffo.io/EA0F721D231FDD3A0A17B9AC7808B4DD62C41256.asc | gpg --dearmor --yes -o /etc/apt/trusted.gpg.d/debian.griffo.io.gpg echo "deb https://debian.griffo.io/apt $(lsb_release -sc 2>/dev/null) main" | tee /etc/apt/sources.list.d/debian.griffo.io.list apt update

Шаг 2: Установить Zig

# Установить последнюю стабильную версию Zig sudo apt install zig # Или установить ночные сборки для передовых функций sudo apt install zig-master
# Установить последнюю стабильную версию Zig apt install zig # Или установить ночные сборки для передовых функций apt install zig-master

🎯 Примеры базового использования

Create a new project:

# Create and enter project directory mkdir my-zig-project && cd my-zig-project # Initialize new Zig project zig init # Build and run zig build run

Compile a single file:

# Create hello.zig echo 'const std = @import("std"); pub fn main() void { std.debug.print("Hello, Zig!\n", .{}); }' > hello.zig # Compile and run zig run hello.zig

Use as C compiler:

# Compile C code with Zig zig cc -o program program.c # Cross-compile for different targets zig cc -target x86_64-windows -o program.exe program.c

🚀 Почему стоит выбрать debian.griffo.io?

⚠️ Official Debian Lag: Official Debian repositories often contain outdated Zig versions that may be months or even years behind the latest release, missing critical features and performance improvements.

📦 Репозиторий сборки пакетов

Пакеты Ubuntu автоматически собираются и поддерживаются в этих репозиториях GitHub:

🔗 Связанные пакеты

Также доступно из debian.griffo.io:

🎯 Идеально для: Systems programming, game development, embedded systems, performance-critical applications, and anyone wanting a modern alternative to C with better safety and tooling.