zig
zig copied to clipboard
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
Currently runtime safety can be controlled with two mechanisms: * build mode: debug and release-safe to enable all safety checks and release-fast and release-small for disabling all * `@setRuntimeSafety` for...
### Zig Version 0.11.0-dev.52+42755a194 ### Steps to Reproduce and Observed Behavior ``` ./build/zig2 build test-cases -Dskip-non-native -Dskip-release -Dskip-single-threaded ```  ### Expected Behavior using the full terminal width
### Zig Version 0.11.0-dev.5 ### Steps to Reproduce and Observed Behavior ```zig const U = union(enum) {}; fn f2(u: U) void { _ = u; } pub fn main() void...
### Zig Version 0.10.0 ### Steps to Reproduce and Observed Behavior Compiling the below program results in an error but while the stage1 compiler correctly shows the whole call chain...
I think I found a failing C abi test for Zig. I'm not using the latest build, and I'd like my approach to be confirmed first. But if it holds,...
This fix (proposed independently by @Vexu here (https://github.com/ziglang/zig/issues/13216#issuecomment-1282297305) and @marler8997 here (https://github.com/marler8997/ziglibc/pull/3#issuecomment-1294881409) allows one to pass `os.SIG.IGN` or other non-pointer aligned values for the `handler_fn` on word-aligned architectures like aarch64....
Closes #4663 not sure what's wrong with Drone CI. that may be a cache issue
### Zig Version 0.11.0-dev.49+b19161ba9 ### Steps to Reproduce and Observed Behavior ```zig const std = @import("std"); test "overflow" { const x = std.math.minInt(i8) / @as(i8, -1); std.debug.print("{}\n", .{x}); } ```...
### Zig Version 0.11.0-dev.48+678f3f6e6 ### Steps to Reproduce and Observed Behavior ```zig // repro.zig const std = @import("std"); const RndGen = std.rand.DefaultPrng; pub fn main() void { var rng =...
fix: https://github.com/ziglang/zig/issues/12812 some message: https://github.com/ziglang/zig/issues/12812#issuecomment-1256006923 runtime-known index case is too hard for me now, so simple add TODO and assert for it. 😊