Zig

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.

A Simple Language

Focus on debugging your application rather than debugging your programming language knowledge.

  • No hidden control flow.
  • No hidden memory allocations.
  • No preprocessor, no macros.

Comptime

A fresh approach to metaprogramming based on compile-time code execution and lazy evaluation.

  • Call any function at compile-time.
  • Manipulate types as values without runtime overhead.
  • Comptime emulates the target architecture.

Maintain it with Zig

Incrementally improve your C/C++/Zig codebase.

  • Use Zig as a zero-dependency, drop-in C/C++ compiler that supports cross-compilation out-of-the-box.
  • Leverage zig build to create a consistent development environment across all platforms.
  • Add a Zig compilation unit to C/C++ projects; cross-language LTO is enabled by default.

Details for Zig

License
  • MIT

Last updated
  • 4 August 2023 - latest/beta
  • Yesterday - latest/edge

Websites

Contact

Share this snap

Generate an embeddable card to be shared on external websites.


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