Zig

From ArchWiki


From Wikipedia:

Zig is an imperative, general-purpose, statically typed, compiled system programming language designed by Andrew Kelley. It is intended to be a replacement for the C programming language, with the goals of being even smaller and simpler to program in while also offering modern features, new optimizations and a variety of safety mechanisms while not as demanding of runtime safety as seen in other languages.

Installation

Install zig, or zig-gitAUR for the latest development version.

zls provides the Zig Language Server, a Language Server Protocol implementation.

Usage

Zig Build System

The Zig Build System provides a cross-platform, dependency-free way to declare the logic required to build a project. See [1].

Cross compiling

See [2]. For the latest list of supported targets, see [3].

See also