Learning Zig

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • zig

    General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.

    Does anyone know why Zig isn't up to date on homebrew? I tried pulling a very simple SDL2 project off github and building it on my macbook M1 and hit https://github.com/ziglang/zig/issues/12069.

    Homebrew has 10.1 and no option for --HEAD, so I don't know if it's a version issue or what. If anyone has recommendations or an example scaffold that shows how I can build a SDL2 zig project on a M1 with SDL2 installed via homebrew that would be cool, I don't have the mental energy to sort out what is going on.

    Rust-SDL2 doesn't seem to work either, so maybe I'm just forever cursed to use C++.

  • CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  • Rustlings

    :crab: Small exercises to get you used to reading and writing Rust code!

    Rust also has something similar which is where I believe Zig drew inspiration from as well: https://github.com/rust-lang/rustlings

  • alg

    Algebra for Zig

    > comptime doesn't allow you to create domain specific macros

    Sure it does!

    Zig's string format function is written using comptime. It parses the format string and validates the arguments at compile time. See https://github.com/ziglang/zig/blob/master/lib/std/fmt.zig

    I also toyed around with turning a math equation dsl into compiled statements at https://github.com/Laremere/alg I got matrix math working so, eg, if you multiply a 1by2 matrix by a 2by1 matrix, it returns a matrix which is typed to 2x2.

  • ZigPong

    GUI Pong written in Zig, using Raylib

    I ended up doing a GitHub search on "SDL", with language specified as "Zig", and sorted in reverse chronological order and found https://github.com/Liam-Malone/ZigPong, which ran without issues by running "zig build run" in the repository directory.

  • zvm

    zvm (Zig Version Manager) lets you easily install/upgrade between different versions of Zig.

    I tried out zvm (Zig Version Manger) on my Mac laptop earlier today, seems to work even if it’s not super polished:

    https://github.com/tristanisham/zvm

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • A Beginner’s Guide to the Solana Web3 Stack

    6 projects | dev.to | 19 Jun 2023
  • What are the unique benefits of Rust over C++?

    5 projects | /r/rust | 28 May 2023
  • GAT exercises

    4 projects | /r/rust | 11 Sep 2022
  • I'm looking for a first program language to learn, is Crab a good one to start with?

    2 projects | /r/ProgrammerHumor | 16 Jul 2022
  • Rust 1.62.0

    5 projects | news.ycombinator.com | 30 Jun 2022

Did you konow that Zig is
the 27th most popular programming language
based on number of metions?