zig
zig copied to clipboard
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
Properly call the entrypoint when it doesn't return an optional error, and use the per-thread copy of the arguments list.
The following are semantically equivalent: ```zig const a = T{}; const a: T = .{}; const a = @as(T, .{}); ``` I propose to remove the first possibility, and rely...
### Zig Version 0.11.0 ### Steps to Reproduce and Observed Behavior Hi, I asked a question about this at https://ziggit.dev/t/packedintarray-at-comptime/3915, and it was mentioned that this could be related to...
### Zig Version 0.9.1 ### Steps to Reproduce and Observed Behavior Try to compile my project https://github.com/foodornt/zigbug (have libpipewire v 3 installed) ### Expected Behavior To translate C code just...
## Why? With #12044 compile error notes can now be printed more compactly enabling long, multi sentence errors to be broken down into the main error, the reason for the...
Out of @Snektron's suggestion in [#19218](https://github.com/ziglang/zig/pull/19218#discussion_r1518966392) -- if math.ln is a problematic name to use for the complex-generic natural logarithm, then the existing arbitrary-base logarithm should be renamed to math.logb...
see https://github.com/ziglang/zig/pull/19218#discussion_r1519039727 If math.ln is a problematic name to use for the complex-generic natural logarithm, then the existing arbitrary-base logarithm should be renamed to math.logb so that natural logarithm can...
> Note: This first part is mostly a rephrasing of https://flatt.tech/research/posts/batbadbut-you-cant-securely-execute-commands-on-windows/ > See that article for more details On Windows, it is possible to execute `.bat`/`.cmd` scripts via CreateProcessW. When...
Fixes #16208 by adding the style's `LazyFile` (when it has one) to the step as a dependency.
*Just run*: `zig build -Dtarget=x86_64-uefi -Dsingle-threaded --zig-lib-dir lib` This PR introduces several improvements for UEFI, so far: - `std.process.ArgvIterator` support - `std.process.totalSystemMemory` support - UEFI Shell Protocol - Merged @truemedian's...