TutorialsPreview
LearnReferenceintermediate6 min

Introduction to Zig

A modern systems language with no hidden control flow.

You will learn

What Zig is, why it matters, and how to navigate this track.

Zig is a modern systems language with no hidden control flow and no hidden allocations — what you write is what runs.

What is Zig?

Zig is a small, explicit, statically-typed language aimed at replacing C for systems work.

It has no macros, no preprocessor, and no hidden memory allocation — everything is visible in the code.

Your first example

Here is Zig saying hello. Read it top to bottom — every line earns its place.

const std = @import("std");

pub fn main() void {
    std.debug.print("Hello, world!\n", .{});
}
Hello, world!

Why learn Zig?

  • Simpler and safer than C, with comparable performance.
  • Seamless C interop — it can even compile C.
  • Compile-time code execution without a separate macro language.

Where it is used

  • Systems programming
  • Embedded
  • Replacing C
  • Cross-compilation

How this track works

Every topic here has four views, switchable with the tabs at the top of each page:

  • Learn — the clear, practical walkthrough you are reading now.
  • Deep — every detail: edge cases, the full API, and what is really happening.
  • Reference — a scannable, no-fluff lookup for when you already know the shape.
  • Cheatsheet — the one-page summary, printable, for quick recall.

More like this

H
Reference·beginner·8 min

HTML Headings

h1 through h6 are the page’s table of contents. Use them for structure, never for size — that’s what CSS is for.

H
Reference·intermediate·18 min

HTML Headings

h1–h6 are instances of HTMLHeadingElement. They take no special attributes — only the global set and ARIA — but there’s real depth in how they form the document outline and what you can do with them from JavaScript.

H
Reference·beginner·2 min

HTML Headings

Headings, distilled to what you must remember.

Liked this one?

Pass it on

Discussion

Be the first to ask

Your questions stay private with the team. We can pin answers to share with everyone.

Sign in to ask a question privately on this tutorial.

Sign in

No pinned answers yet for this tutorial.