OpenBSD Handbook

Current snapshot · amd64 · Generated 2026-09-09

zig-0.16.0

zig compiler and toolchain

Back to search · Project homepage

Description

Zig is a general-purpose programming language and toolchain for maintaining robust, optimal, and reusable software. - Robust : behavior is correct even for edge cases such as out of memory. - Optimal : write programs the best way they can behave and perform. - Reusable : the same code works in many environments which have different constraints. - Maintainable : precisely communicate intent to the compiler and other programmers. The language imposes a low overhead to reading code and is resilient to changing requirements and environments. - 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. - Performance Meets Safety Write fast, clear code capable of handling all error conditions. - The language gracefully guides your error handling logic. - Configurable runtime checks help you strike a balance between performance and safety guarantees. - Take advantage of vector types to express SIMD instructions portably.

Package information

Ports path
lang/zig
Package architecture
amd64
Maintainer
Brandon Mercer <bmercer@openbsd.org>
Categories
lang
Available flavors
None listed
Only for architectures
amd64, arm64, powerpc64

These are ports metadata. Binary availability depends on the release, architecture and mirror. Build and test dependencies are not an installation checklist.

Direct dependencies

Build

Used by (3 dependency relationships)

Includes library, runtime, build and test relationships. Results load 100 at a time.

Installing and updating packages · Package details as JSON