alg
ziglings
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
alg
-
Learning 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.
-
Problems of C, and how Zig addresses them
Last year I dabbled in making a DSL like solution for operator overloading: https://github.com/Laremere/alg
It ends up slightly more verbose in usage, but the statements themselves remain concise. Unfortunately I got a real job that isn't using Zig, so I've stopped working on this. Others can feel free to take up the torch, though.
-
A work-around for no operator overloading
I did this at the beginning of the year: https://github.com/Laremere/alg
-
Limited Operator Overloading
I have a new project which implements a kind of operator overloading:
ziglings
-
Roadmap to master zig
Master syntax - language possibilities, so that you can read code. Ziglings (or github) does great job teaching it!
-
Problems of C, and how Zig addresses them
I am interested to learn, how Traits in Rust and Interfaces in Go behave differently from this concept.
[1] https://github.com/ratfactor/ziglings/blob/main/exercises/09...
- Learning how to use the Zig build system.
-
What's the reasoning behind the iguana mascot, and why is Zig specifically named so?
Is Zero the space lizard (dinosaur?) with the hammer in the picture in Ziglings' readme? (I like this guy)
-
List of wanted examples?
Yesterday someone introduced me to ziglings, do you mean that? https://github.com/ratfactor/ziglings/tree/main/exercises
- Looking for feedback on new Ziglings Exercise 101 (multi-object 'for' loops and data-oriented design)
-
Curious noob peeks memory and wants to understand it 😅
Hi! I am learning zig through the Ziglings repo. I was messing around exercise 54 where it shows how you can create a pointer to many items instead of a slice:
-
What “sucks” about Zig?
Also, https://github.com/ratfactor/ziglings if you missed it.
-
Ask reddit: What learning resources have taught you the most about zig?
Along with ziglearn, I also found ziglings useful.
- Bun v0.5
What are some alternatives?
zig-gamedev - Main monorepo for @zig-gamedev libs and example applications
awesome-zig
zig-infix-parser - Parse comptime infix strings
Rustlings - :crab: Small exercises to get you used to reading and writing Rust code!
bun - Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
zig - General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
zvm - zvm (Zig Version Manager) lets you easily install/upgrade between different versions of Zig.
nrf-hal - A Rust HAL for the nRF family of devices
rust-koans - Koans for the Rust programming language
tigerbeetle - The distributed financial transactions database designed for mission critical safety and performance.
xtensa-zig - Zig built against xtensa fork of LLVM for targetting ESP32