# Zig

> reference implementation of the Zig programming language

**Wikidata**: [Q104604630](https://www.wikidata.org/wiki/Q104604630)  
**Source**: https://4ort.xyz/entity/zig-q104604630

## Summary
Zig is the reference implementation of the Zig programming language, providing the official compiler and toolchain for the language. It is free software released under the MIT License, using LLVM as its backend, and runs on Unix-like operating systems and Microsoft Windows.

## Key Facts
- **Type**: Reference implementation, compiler, and free software for the Zig programming language
- **License**: MIT License
- **Backend**: Uses LLVM
- **Latest Stable Version**: 0.15.1 (released August 29, 2025)
- **Source Repository**: https://codeberg.org/ziglang/zig (hosted on Forgejo)
- **Official Website**: https://ziglang.org/
- **Operating Systems**: Unix-like operating systems, Microsoft Windows
- **Language Creator**: Andrew Kelley (also created the Zig programming language in 2015)
- **Issue Tracker**: https://codeberg.org/ziglang/zig/issues

## FAQs

### Q: Is Zig free to use?
A: Yes, Zig is free software distributed under the MIT License, allowing users to freely run, study, change, and distribute it and modified versions.

### Q: What operating systems can run Zig?
A: Zig runs on Unix-like operating systems and Microsoft Windows.

### Q: Where is Zig's source code hosted?
A: Zig's source code is hosted at https://codeberg.org/ziglang/zig on the Forgejo platform.

### Q: What is the relationship between Zig (the implementation) and Zig (the language)?
A: Zig (this entity) is the reference implementation of the Zig programming language. They are distinct but closely related—the implementation is the compiler and toolchain that brings the language specification to life.

## Why It Matters
Zig serves as the authoritative implementation of the Zig programming language, meaning it defines how the language behaves in practice. As the reference implementation, it is the standard against which other implementations would be measured. The project's choice to use LLVM as its backend ensures robust optimization and broad platform support, while the MIT License fosters adoption and contribution from the open-source community.

The availability of Zig across numerous package managers—including Arch Linux, Fedora, Gentoo, Nixpkgs, FreeBSD, OpenBSD, Alpine Linux, Homebrew, and others—demonstrates its wide reach and accessibility to developers across different computing environments. This broad distribution makes it easy for developers to install and begin using Zig without complex setup procedures.

As a compiler and toolchain created by Andrew Kelley, who also designed the Zig language in 2015, the implementation represents nearly a decade of development effort. The active version history, with releases spanning from 0.11.0 in August 2023 to 0.15.1 in August 2025, shows ongoing maintenance and evolution of the toolchain.

## Notable For
- **Reference Implementation**: Serves as the definitive implementation of the Zig programming language, establishing the behavioral standard for the language
- **MIT Licensed**: Released under a permissive open-source license, enabling broad adoption and modification
- **LLVM-Powered**: Leverages the LLVM compiler infrastructure for optimization and cross-platform support
- **Cross-Platform Availability**: Distributed through over a dozen package managers spanning Linux distributions, BSD variants, and macOS
- **Active Development**: Regular stable releases with version 0.15.1 released in August 2025

## Body

### Technical Architecture
Zig is implemented as a compiler that uses LLVM as its backend infrastructure. This architecture allows it to benefit from LLVM's mature optimization passes and target support. The implementation is written in the Zig programming language itself, making it self-hosting.

### Licensing and Distribution
The implementation is released under the MIT License, classifying it as free software. This permits users to freely run, study, modify, and distribute both the original and modified versions. Despite being free software, the project maintains copyrighted status.

### Version History
The implementation has seen regular stable releases:
- **0.11.0**: August 4, 2023
- **0.12.0**: April 20, 2024
- **0.12.1**: June 8, 2024
- **0.13.0**: June 7, 2024
- **0.14.0**: March 5, 2025
- **0.14.1**: May 23, 2025
- **0.15.1**: August 29, 2025 (current preferred stable version)

### Platform Support
Zig operates on:
- Unix-like operating systems
- Microsoft Windows

### Package Availability
Zig is available through numerous package repositories:
| Platform | Package Name(s) |
|----------|----------------|
| Arch Linux | zig |
| AUR | zig-static, zig-git |
| Fedora | zig |
| Gentoo | dev-lang/zig |
| openSUSE | zig |
| Parabola | zig |
| Alpine Linux | zig, zig-doc |
| Nixpkgs | zig |
| Guix | zig |
| FreeBSD | lang/zig |
| OpenBSD | lang/zig |
| MacPorts | zig |
| Homebrew | zig |
| Snap | zig |

### Project Infrastructure
- **Source Code Repository**: Hosted on Codeberg at https://codeberg.org/ziglang/zig using Forgejo
- **Issue Tracker**: https://codeberg.org/ziglang/zig/issues
- **Official Website**: https://ziglang.org/ (English)

### Origins
The Zig programming language, which this implementation serves, was created by Andrew Kelley, a computer programmer. The language's inception dates to 2015, with the first commit recorded on August 5, 2015.

## Schema Markup
```json
{
  "@context": "https://schema.org",
  "@type": "SoftwareApplication",
  "name": "Zig",
  "description": "Reference implementation of the Zig programming language, providing the official compiler and toolchain.",
  "url": "https://ziglang.org/",
  "license": "https://opensource.org/licenses/MIT",
  "applicationCategory": "Compiler",
  "operatingSystem": ["Unix-like", "Microsoft Windows"],
  "author": {
    "@type": "Person",
    "name": "Andrew Kelley"
  },
  "softwareVersion": "0.15.1",
  "codeRepository": "https://codeberg.org/ziglang/zig"
}

## References

1. [Source](https://api.github.com/repos/ziglang/zig)
2. [Release 0.11.0. 2023](https://github.com/ziglang/zig/releases/tag/0.11.0)
3. [2024](https://github.com/ziglang/zig/releases/tag/0.12.0)
4. [Release 0.12.1. 2024](https://github.com/ziglang/zig/releases/tag/0.12.1)
5. [Release 0.13.0. 2024](https://github.com/ziglang/zig/releases/tag/0.13.0)
6. [Release 0.14.0. 2025](https://github.com/ziglang/zig/releases/tag/0.14.0)
7. [Release 0.14.1. 2025](https://github.com/ziglang/zig/releases/tag/0.14.1)
8. [Release 0.15.1. 2025](https://github.com/ziglang/zig/releases/tag/0.15.1)
9. [Source](https://ziglang.org/news/migrating-from-github-to-codeberg/)