-
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.
-
Rust also has something similar which is where I believe Zig drew inspiration from as well: https://github.com/rust-lang/rustlings
-
> 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.
-
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.
-
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