zig
zig copied to clipboard
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
### Zig Version 0.11.0-dev.3724+32cb9462f ### Steps to Reproduce and Observed Behavior `zig run` the following code: ```zig const std = @import("std"); pub fn main() void { const fields = switch...
This is the current progress in my `InternPool` optimization branch. Last I checked, it makes up for about half of the losses from `InternPool`. Opening this now before it gets...
Fixes #16095 Previously the case of signed integers was ignored ignored as "out of range" for auto-numbered enums.
This PR implements the `@depositBits` and `@extractBits` builtins, which correspond to the `pdep` and `pext` instructions in the x86 BMI2 extension (see #14995). On architectures where these instructions are unavailable,...
Opaque and `noreturn` make sense since they don't represent real values, but `null` and `undefined` are perfectly normal comptime-only values. Closes #16088
## Musl v1.2.4 release notes This release adds TCP fallback to the DNS stub resolver, fixing the longstanding inability to query large DNS records and incompatibility with recursive nameservers that...
### Zig Version 0.11.0-dev.3704+729a051e9 ### Steps to Reproduce and Observed Behavior ```zig fn main() anyerror!noreturn { return error.a; } test { switch (@typeInfo(@typeInfo(@TypeOf(main)).Fn.return_type.?)) { .ErrorUnion => { const result =...
Resolve #4501
This is an attemp to simplify the SeekableStream interface, this is the kick start part of the try, request for advice. This pull request managed to use the conventional lseek...
### Zig Version 0.10.1 ### Steps to Reproduce and Observed Behavior this bug https://github.com/ziglang/zig/issues/11920 was closed, and still fails with this error. I have not tried from master, just from...