Minutes 2026-11-12

Zig by Freya!

What is it?

    Systems language made in 2016

    Very opinionated

    Still in beta after a decade

    Heavy C Compatibility

        'C killer' but not really

        Kinda like rust wanting to be C but better

    Readable

        Everything is visible

Funny things it does

    Functions as C compiler

        Good for integrating into C codebases

    C translation layer

        Use C libraries easily unlike rust

    Zig build system written in itself

        Better than cmake

    Uses metaprogramming to specify things at compile time

    Standard library

        Simple-ish

        Pretty minimal

Zig is like C if it was amde today

    Concepts of low level progrmaming but modern

What is Zig not?

    Memory safe

        Lets you mess things up

        Safety checks crash the program

    High level

        -ish

        compared to C

    Centralized

        Package system but doesn't rely on central repositories

            Takes git links

    Easy

    Also has no AI

Philosophy

    Mantra that comes with the program

    General guides on good programming style and practices

    Principles you can see in the whole language

Readability

    Still C like and symbol-heavy

    Allocators

    Values must be used

    Errors must be handled

    "unreachable" keyword to mark branches

    Easy to see where things are

    You can signal the compiler to do specific things

Correctness

    Unused variables cause errors

    Unmutated variables are errors

        Enforce use of consts

    Debug builds can check for memory errors

    Unit testing builtin

Compatibility

    Runs on anything C can

    Support Nintendo Wii

    GPU module in standard library

        Shader code

It's weird

    Doesn't shy away from being messed up

    Rewrote parts of the core language and moved them to libraries

    Moved async to a library and removed the functions

    "Juicy main"

        Main function can ask for init type

        Pre-setup allocator

        Object representing async

        Environment stuff

        Arguments

    Automatic bit-packing

        u3 and u11 structs

    Sometimes wacky

        Signed and unsigned 0-bit integers?

        Positive and Negative zero?

    Reimplements C types

    Build system done in Zig

        Usable for pure C/C++ projects

        Easier than cmake?

    Errors specified with exclamation points

    Uses @ for builtin functions

    SPIR-V backend

Things change a lot

    Breaks stuff

    Some people pin package versions

Projects:

    River (window manager)

        Gbrwm

    Mach game engine

    Raylib

    Not the most popular

Lan party 4 on Sunday

End