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++.
: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
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.
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.
GUI Pong written in Zig, using the SDL2 C API
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 (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:
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.
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
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
5 projects | news.ycombinator.com | 30 Jun 2022