zig
zig copied to clipboard
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
### Zig Version 0.11.0-dev.1970+962299157 ### Steps to Reproduce and Observed Behavior Apply this diff: ```diff --- a/test/tests.zig +++ b/test/tests.zig @@ -1370,11 +1370,9 @@ pub fn addCAbiTests(b: *std.Build, skip_non_native: bool, skip_release:...
https://github.com/ziglang/zig/blob/962299157840979ba659d478785f5ed0759d5401/lib/std/os/linux/io_uring.zig#L2027 https://github.com/ziglang/zig/blob/962299157840979ba659d478785f5ed0759d5401/lib/std/os/linux/io_uring.zig#L2519 https://github.com/ziglang/zig/blob/962299157840979ba659d478785f5ed0759d5401/lib/std/os/linux/io_uring.zig#L3239 You can't just grab some arbitrary port and start using it in unit tests. That port could be used by the system causing the unit tests to...
C pointer to array `[*c][4]f32` causes compiler error when assigning to it using `cPointer.*[0] = …`
### Zig Version 0.11.0-dev.1913+95f6a5935 ### Steps to Reproduce and Observed Behavior I discovered this while investigating a compile error when trying to include `linmath.h` discovered by abcode89 on the zig...
### Zig Version 0.11.0-dev.1969+d525ecb52 ### Steps to Reproduce and Observed Behavior ```zig const std = @import("std"); const expect = std.testing.expect; pub fn main() !void { var buf: [9]u8 align(4) =...
Inspired by https://github.com/ziglang/zig/pull/5734#discussion_r446585745 The goal of the `std.log` API is to allow developers to leave log statements in finished code, without causing any performance issues or unwanted stderr/stdout for API...
Currently std.http.Client assumes that the Location header is a well formed URI. However that is not actually how it should be parsed according to the spec. https://www.rfc-editor.org/rfc/rfc9110.html#section-10.2.2 Location is a...
### Zig Version 0.11.0-dev.1929+4ea2f441d ### Steps to Reproduce and Observed Behavior The following code causes infinite recursion in the Zig compiler which causes it to run out of stack space...
### Zig Version 0.11.0-dev.1812+26196be34 ### Steps to Reproduce and Observed Behavior I've been hacking on an ARMv4t emulator in Zig. While defining the registers of that arch, i found that...
### Zig Version 0.11.0-dev.1977+db450bcad ### Steps to Reproduce and Observed Behavior Example link invocation when building zig: ``` lld-link -ERRORLIMIT:0 -NOLOGO -DEBUG -PDB:\o\fa3f0a308c6878f003bddb65e7295e69\zig.pdb -PDBALTPATH:\o\fa3f0a308c6878f003bddb65e7295e69\zig.pdb -STACK:33554432 -MACHINE:X64 -INCLUDE:_tls_index -OUT:\o\fa3f0a308c6878f003bddb65e7295e69\zig.exe -IMPLIB:\o\fa3f0a308c6878f003bddb65e7295e69\zig.lib \o\fa3f0a308c6878f003bddb65e7295e69\zig.exe.obj...
### Zig Version 0.11.0-dev.1969+d525ecb52 ### Steps to Reproduce and Observed Behavior ```zig const std = @import("std"); const ExampleStruct = struct { method: fn () void, }; fn method_impl() void {...