zig
zig copied to clipboard
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
## Background The `goto` keyword was removed in #630. This remains the right call because all the control flow in Zig can be expressed in a better way: `continue` to...
This one's long overdue; I'm writing an empirical thesis on character encoding, using **ZON** for serializing / declaring various data, because of readability, comments, and nativity. In order of significance...
Enum literals are a powerful and extremely useful feature of Zig. This proposal changes their definition slightly to make them more useful in a wider variety of cases, and renames...
### Zig Version 0.12.0-dev.3381+7057bffc1 ### Steps to Reproduce and Observed Behavior When compiling to UEFI, the `ModuleBuildInfo` struct will use `std.pdb.Pdb`. This PDB struct fails to compile on UEFI because...
When adding a dependency using `zig fetch --save` I usually just want the latest thing on the `master`/`main` branch. However, when running `zig fetch --save git+https://github/abc/def#master` this gets saved verbatim...
Implements the base that should usually work that is - Check LD_LIBRARY_PATH if the binary is no setuid setgid binary - Check /lib, /usr/lib, in that order The missing parts...
version: `0.12.0-dev.3389+5005c6243` ```zig test "example" { @panic("fail"); } ``` ``` $ zig test test.zig Test [1/1] test.test.example... thread 1392965 panic: fail /home/andy/Downloads/zig/lib/compiler/test.zig:2:5: 0x1039430 in test.example (test) /home/andy/Downloads/zig/lib/compiler/test_runner.zig:158:25: 0x104479c in mainTerminal...
### Zig Version 0.12.0 ### Steps to Reproduce and Observed Behavior All of the steps and how to reproduce the bug is explained in detail here: https://github.com/ring-lang/ring/blob/master/marketing/articles/ZigCCisNotReadyYet.md The bug is...
Build the following two files and observe the behaviour: `main.zig` ```zig //! This is the entry point and root file of microzig. //! If you do a @import("microzig"), you'll *basically*...