Programming language · 2016

Zig

Programming language.

Official site ›
Zig logo
C++, Zig, LLVMWritten in
2016First released
Andrew KelleyDeveloper
staticTyping
MIT LicenseLicense
Built from Zig C++ZigLLVMCRust
CompilerInfluence

What is Zig written in?

The Zig compiler is written in C++, Zig, and LLVM (documented). It has been rewritten in Zig. Zig is self-hosting.

What Zig is used for

Zig is a modern systems language positioned as a simpler, safer alternative to C, with manual memory control, no hidden allocations, and excellent C interop and cross-compilation.

Notable software: the Bun JavaScript runtime is written in Zig, and it is increasingly used for low-level tooling and game development.

Quick Facts

Developer
Andrew Kelley
First released
2016
Typing
static
License
MIT License
Filename extension
.zig, .zon
Website
ziglang.org

About Zig

Zig is a programming language. It is a statically typed language that compiles ahead of time to native machine code. It supports imperative and systems programming.

Zig first appeared in 2016. Development is led by Andrew Kelley. Zig is now used mainly in specialized niches and by dedicated communities.

How Zig is implemented

In the Language Lineage dataset, Zig is self-hosting, so its own compiler is written in Zig itself and it was later rewritten in Zig. Reaching self-hosting, where a language is mature enough to compile itself, is a milestone that proves the language can handle a large, real-world program.

Zig in the language family tree

Zig drew on ideas from Rust and C.

Sources: Wikipedia · Wikidata · Official site

Frequently Asked Questions

What language is Zig written in?
Zig is primarily implemented in C++ and Zig and LLVM. See the implementation section above for details and source references.
What languages influenced Zig?
Zig was influenced by Rust, C among others. See the influence section above for the full list.
Is Zig self-hosting?
Yes, Zig is self-hosting, its compiler can compile itself.
When was Zig first released?
Zig was first released in 2016.

Evidence Sources

Discover More

Embed this graph

Paste this iframe into any HTML page to show the Zig relationship graph.

<iframe src="https://www.languagelineage.org/embed?lang=zig" width="100%" height="500" loading="lazy" style="border:0" title="Zig relationship graph"></iframe>

Please attribute the visualization to Language Lineage and link to the Zig source record.

Explore Zig in Graph →