zig
zig copied to clipboard
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
### Zig Version 0.10.0-dev.3981+60678f5ba ### Steps to Reproduce Given the example source: ```zig const std = @import("std"); test "this passes" { var tmp: u8 = undefined; try std.testing.expect(tmp == 0xAA);...
This is a proposal to add a function that enables you to index an array with a vector, producing a vector of the array's elements as its output.
Closes #12722
This is relevant to the fix and discussion in #12735 (and supersedes it). @ifreund noticed that `align(1)` is missing from `translate-c` output. Hoewever that bug is present with both stage1...
Second attempt at #11533 with feedback from previous review and self hosted compiler meeting. 
This change adds support for POSIX timers to the standard library. It adds the required structure and enum definitions to call the timer_* API on linux. It also fixes a...
This PR changes `std.mem.trimLeft`, `...trimRight`, and `...trim` to allow the use of both mutable and non-mutable slices. Previously, either a dangerous `intToPtr` was needed, or the slice's data had to...
Taking guidance from: ziglang/zig-spec#38, carriage returns are now allowed preceding line-feeds when found in doc-comments or multiline strings. The CRLF is also only interpreted as a newline in this case....