zig
zig copied to clipboard
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
Extracted from #19249. [Example](https://ziglang.org/documentation/master/std/#std.array_hash_map.ArrayHashMapUnmanaged.count) ```zig pub fn count(self: Self) usize { return self.entries.len; } ``` Instead it should render like this: ```zig pub fn count(self: Self) usize { return self.entries.len;...
When all of these issues are resolved, the self-hosted x86 backend can become the default backend when Debug is chosen for optimization mode: * [x] #17646 * [ ] #17645...
https://github.com/ziglang/zig/blob/19b69959395b0ebb209815c5dbf29a5b21447df9/src/target.zig#L521-L528
Problem statement: 1. BufferedReader/BufferedWriter is instantiated many times, causing code bloat. 2. BufferedReader/BufferedWriter as a parameter requires use of anytype, and it's infectious. Proposed solution (starting point): ```diff --- a/lib/std/io/buffered_writer.zig...
Instead of striping leading root folder while unpacking tar, tar archive is unpacked as is into temporary directory. Then we check result and decide whether to skip root folder. That...
Allows Zig's sysroot to be set by `$ZIG_SYSROOT` env var, this is useful for wrapper scripts.
### Zig Version 0.12.0-dev.2928+6fddc9cd3 ### Steps to Reproduce and Observed Behavior Minimum reproducible example: ```zig const std = @import("std"); const json = std.json; pub const Foo = struct { can_only_be_null:...
### Zig Version 0.11.0-dev.4320+6f0a613b6 ### Steps to Reproduce and Observed Behavior Single target (to be sure that I didn't mess the loop): ``` $ zig cc -target x86-linux-gnu -dM -E...
### Zig Version 0.12.0-dev.876+aaf46187a ### Steps to Reproduce and Observed Behavior I noticed a regression on my project's benchmark and bisected it via nightlies - `zig-macos-aarch64-0.12.0-dev.866+3a47bc715` produces code that runs...
### Zig Version 0.11.0-dev.3105+e46d7a369 ### Steps to Reproduce and Observed Behavior This is a follow-up to #13938 which was only fixed in release mode(which means I still have to rely...