zig
zig copied to clipboard
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
**Edit: Please see comment # 2 for a shorter code version.** ### Zig Version 0.11.0-dev.3395+1e7dcaa3a ### Steps to Reproduce and Observed Behavior I'm currently trying to port an interpreter from...
* Before, std.Target.Cpu.Arch.toCoffMachine was not used anywhere. Instead, std.coff.fromTargetCpuArch was used. After this commit this is still the case but toCoffMachine is removed and merged into std.coff.fromTargetCpuArch, making it more...
``` zig const std = @import("std"); const expect = std.testing.expect; const Node = struct { next: *Node, }; const a: Node = .{ .next = &b }; const b: Node...
### Zig Version 0.11.0-dev.3395+1e7dcaa3a ### Steps to Reproduce and Observed Behavior 1) Write to `demo.zig`: ``` pub fn main() void { var slice: []u8 = undefined; @memset(slice.ptr, 0); } ```...
Run Step already has `extra_file_dependencies` for file inputs that are known ahead of time: ```zig /// Additional file paths relative to build.zig that, when modified, indicate /// that the Run...
**Note: all new names in this proposal are very open to bikeshedding, I simply came up with them because I needed names.** ## Problem Since it's cached, ZIR is arbitrarily...
Closes #15874 At first I tried to block this kind of coercion for all types, but I ran into a case where the compiler coerces `[][:0]u8` to `[][:0]const u8` which...
### Zig Version 0.11.0-dev.3395+1e7dcaa3a ### Steps to Reproduce and Observed Behavior A minimal example: ```zig // vec.zig const std = @import("std"); const vec = @cImport(@cInclude("./vec.c")); pub fn main() void {...
Closes #15849.