Our great sponsors
- InfluxDB - Collect and Analyze Billions of Data Points in Real Time
- Onboard AI - Learn any GitHub repo in 59 seconds
- SaaSHub - Software Alternatives and Reviews
-
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++.
-
Rust also has something similar which is where I believe Zig drew inspiration from as well: https://github.com/rust-lang/rustlings
-
InfluxDB
Collect and Analyze Billions of Data Points in Real Time. Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.
-
> 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:
-
Onboard AI
Learn any GitHub repo in 59 seconds. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at www.getonboard.dev.