Jay Petacat (jayschwa) Publisher

Install latest/beta of Zig

Ubuntu 16.04 or later?

Make sure snap support is enabled in your Desktop store.

Install using the command line

sudo snap install zig --beta --classic

Don't have snapd? Get set up for snaps.

Zig is only available on the unstable beta channel. It could break and change often.

Channel Version Published

Zig Programming Language

Zig is a general-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.

Feature Highlights:

  • Small, simple language. Focus on debugging your application rather than debugging knowledge of your programming language.
  • Ships with a build system that obviates the need for a configure script or a makefile. In fact, existing C and C++ projects may choose to depend on Zig instead of e.g. cmake.
  • A fresh take on error handling which makes writing correct code easier than writing buggy code.
  • Debug mode optimizes for fast compilation time and crashing with a stack trace when undefined behavior would happen.
  • ReleaseFast mode produces heavily optimized code. What other projects call "Link Time Optimization" Zig does automatically.
  • Compatible with C libraries with no wrapper necessary. Directly include C .h files and get access to the functions and symbols therein.
  • Provides standard library which competes with the C standard library and is always compiled against statically in source form. Zig binaries do not depend on libc unless explicitly linked.
  • Optional type instead of null pointers.
  • Safe unions, tagged unions, and C ABI compatible unions.
  • Generics so that one can write efficient data structures that work for any data type.
  • No header files required. Top level declarations are entirely order-independent.
  • Compile-time code execution. Compile-time reflection.
  • Partial compile-time function evaluation which eliminates the need for a preprocessor or macros.
  • The binaries produced by Zig have complete debugging information so you can, for example, use GDB, MSVC, or LLDB to debug your software.
  • Built-in unit tests with zig test.
  • Friendly toward package maintainers. Reproducible build, bootstrapping process carefully documented. Issues filed by package maintainers are considered especially important.
  • Cross-compiling is a primary use case.
  • In addition to creating executables, creating a C library is a primary use case. You can export an auto-generated .h file.

Developer website

Contact Jay Petacat

Details for Zig

Last updated
13 December 2020

Share this snap

Generate an embeddable card to be shared on external websites.

Related blog posts

Where people are using Zig

Users by distribution (log)

Ubuntu 20.04
Ubuntu 18.04
Ubuntu 20.10
pop 20.10
Ubuntu 16.04
Ubuntu 19.10
Debian 10
pop 20.04
Linux Mint 20.1
elementary OS 5.1.7
Linux Mint 19.3
Raspbian 10

Install Zig on your Linux distribution

Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the installing snapd documentation.

Is there a problem with Zig? Report this app